---

title: Signals
description: Every signal knownprint attaches to an event, what its value means, when it can be null, and how to read it from your backend.
---

Every identification produces an event, and every event carries a `signals` object: one entry per finding about the visit, such as whether a bot drove the browser, whether the request came through a VPN, or whether the browser lies about itself. knownprint reports these findings and never acts on them. Your backend reads them and decides what to allow, challenge or refuse.

Signals are never sent to the browser. The page only receives a request id; your server reads the event, signals included, with a secret key (see [Verify a request in your backend](/install/server)).

## Signals at a glance

The `signals` object of an event holds these entries. Each one is a signal object (described in [Read a signal](#read-a-signal)) or `null`.

| Signal             | `value` type                    | What it tells you                                                                                                                                | Page                                         |
| ------------------ | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------- |
| `suspect_score`    | number, 0 to 100                | How much of the visit's signals a site should worry about, as one number with its parts listed.                                                  | [Suspect score](/signals/suspect-score)      |
| `bot`              | string: `bad` or `not_detected` | Whether automation drove the browser, and what kind.                                                                                             | [Bots](/signals/bots)                        |
| `tampering`        | boolean                         | The browser misreports what it is: its name, system, hardware, screen or clock.                                                                  | [Browser](/signals/browser#tampering)        |
| `virtual_machine`  | boolean                         | The browser runs in a virtual machine, an Android emulator, a cloud phone or a rented cloud desktop.                                             | [Browser](/signals/browser#virtual-machine)  |
| `developer_tools`  | boolean                         | Developer tools, or a tool that drives the browser the same way, are attached to the page.                                                       | [Browser](/signals/browser#developer-tools)  |
| `incognito`        | boolean                         | The visit comes from a private (incognito) window.                                                                                               | [Browser](/signals/browser#incognito)        |
| `privacy_settings` | string                          | The privacy mode the browser runs in, such as Brave's shields, a Firefox protection mode, a Safari private window, Tor Browser or Lockdown Mode. | [Browser](/signals/browser#privacy-settings) |
| `vpn`              | boolean                         | The request did not leave from the device's own line: a VPN service, a privacy relay, Tor or a datacenter.                                       | [Network](/signals/network#vpn)              |
| `proxy`            | boolean                         | The address is a proxy's exit: an open proxy, a proxy seller's block, or a home or mobile line rented out as a residential proxy.                | [Network](/signals/network#proxy)            |
| `tor`              | boolean                         | The address is a Tor exit.                                                                                                                       | [Network](/signals/network#tor)              |
| `datacenter`       | boolean                         | The address belongs to a hosting company or a cloud, not to an access network.                                                                   | [Network](/signals/network#datacenter)       |
| `ip_blocklist`     | boolean                         | The address, or the network around it, is a known recent source of abuse.                                                                        | [Network](/signals/network#ip-blocklist)     |
| `ip_geolocation`   | string                          | The country the address is used in (`unknown` when none), with the network operator in `detail`.                                                 | [Network](/signals/network#ip-geolocation)   |
| `high_activity`    | boolean                         | The visitor is among the busiest on your site today.                                                                                             | [Activity](/signals/activity)                |

Besides `signals`, two other blocks of the event carry findings your code will use:

- `network`: the address, its network, its country, the operator's autonomous system number, and reasons such as `tor` or `datacenter`. See [Network signals](/signals/network#the-network-object).
- `integrity`: whether the request was replayed or altered, and the origin it ran on. See [Integrity](/signals/integrity).

## Read a signal

A signal is an object with these members:

| Field        | Type                      | Meaning                                                                                                                                                                     |
| ------------ | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `value`      | boolean, number or string | The finding. Its type depends on the signal (see the table above).                                                                                                          |
| `confidence` | number, 0 to 1            | How sure knownprint is of the `value` it states. A `false` value has a confidence too: a `false` at 0.6 means "nothing found, but not much could be checked".               |
| `reasons`    | array of strings          | Short machine-readable codes for what decided the value. Often empty when the value is `false`.                                                                             |
| `capped`     | boolean, optional         | Present and `true` when the confidence is lowered for this kind of install. Only `bot` and `tampering` are capped. See [Connection availability](#connection-availability). |
| `detail`     | object, optional          | Extra members specific to the signal, such as `bot_type` or `kind`. Each signal's page lists the members it documents.                                                      |

A signal entry can also be:

- `null`: the signal could not be evaluated on this visit. Treat `null` as unknown, never as `false`.
- absent: an event stored before a signal existed does not carry it. Read every signal defensively.

:::tip Reasons and detail
Use `value` and `confidence` for decisions, and the documented members of `detail` to refine them. The codes in `reasons`, and any member of `detail` that a page does not document, are informational: they help you understand a decision and can change as knownprint improves. Log them; do not build rules on them. The JSON examples on these pages show the documented members of `detail`; a live event can carry more.
:::

An example, abridged to a few signals, for a visit from a private Safari window behind iCloud Private Relay:

```json
{
  "request_id": "evt_ujzdegxdncf32epf3dhodzdoci",
  "visitor_id": "v_v4seh2kvj72ceuvw75efr6edt4",
  "signals": {
    "suspect_score": {
      "value": 15,
      "confidence": 1,
      "reasons": ["incognito", "vpn"],
      "detail": { "version": "v3", "parts": { "incognito": 5, "vpn": 10 }, "max": 100 }
    },
    "bot": {
      "value": "not_detected",
      "confidence": 0.7,
      "reasons": [],
      "capped": true,
      "detail": { "version": "v2" }
    },
    "vpn": {
      "value": true,
      "confidence": 0.99,
      "reasons": ["relay"],
      "detail": { "kind": "relay", "provider": "icloud-private-relay" }
    },
    "tor": { "value": false, "confidence": 0.98, "reasons": [] },
    "high_activity": { "value": false, "confidence": 1, "reasons": [] }
  }
}
```

`vpn` is `true` with `detail.kind` `relay`: the request is genuine, but it left through Apple's relay rather than the device's own line. Your rules can treat a relay differently from a VPN service (see [Network signals](/signals/network#vpn)).

## Fetch the signals

Signals are part of the event. Read it with your secret key and the request id the page sent you. The API address comes with your account.

:::tabs
```bash title="curl"
curl "$KNOWNPRINT_API/v1/events/$REQUEST_ID" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY"
```

```js title="Node"
const res = await fetch(`${process.env.KNOWNPRINT_API}/v1/events/${requestId}`, {
  headers: { Authorization: `Bearer ${process.env.KNOWNPRINT_SECRET_KEY}` },
});
if (!res.ok) throw new Error(`knownprint answered ${res.status}`);
const event = await res.json();

// A signal is true only when it is present, not null, and its value is true.
const fired = (name) => event.signals?.[name]?.value === true;

if (event.signals?.bot?.value === 'bad') {
  // automation: see /signals/bots
} else if (fired('tampering') || fired('virtual_machine')) {
  // ask for a second factor, hold for review
}
```
:::

The full event, its other fields and the errors this route returns are on [Events](/events) and in the [events API reference](/api/events).

## When signals change after the event

Most signals are final when the event is written. Three can change for a short time afterwards, and a read of the event always returns them as they are now:

| Signal          | Can change                                                                                                                      |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `incognito`     | It can be refined within about ten seconds of the identification.                                                               |
| `bot`           | A `not_detected` verdict can turn to `bad` for up to 30 minutes after the identification.                                       |
| `suspect_score` | It can be refined within about ten seconds of the identification, and it is summed again whenever `incognito` or `bot` changes. |

Read the event when the visitor acts, for example when they submit a form, rather than at the moment the page receives the request id. The `event.identified` webhook carries the event as it was at identification and is not sent again when a signal changes later, so do not rely on it for these signals. See [Webhooks](/webhooks).

## Availability

Each signal is produced on every identification unless the browser or the request gives it nothing to read. This table says when you should expect `null`.

| Signal                              | When it is `null`                                                                                                         |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `suspect_score`                     | Never on a new event. Absent on events stored before the score existed.                                                   |
| `bot`                               | When nothing about the browser could be read. Rare.                                                                       |
| `tampering`                         | When nothing about the browser could be read. Rare.                                                                       |
| `virtual_machine`                   | When it could not be evaluated on this visit.                                                                             |
| `developer_tools`                   | When the browser gives no answer. Expect `null` on some browsers and platforms.                                           |
| `incognito`                         | When the browser gives no answer. Expect `null` on some browsers and platforms.                                           |
| `privacy_settings`                  | When the browser shows no recognised privacy mode. This is the normal value for most visitors.                            |
| `vpn`, `proxy`, `tor`, `datacenter` | When knownprint's network data is temporarily unavailable. Otherwise always present.                                      |
| `ip_blocklist`                      | When knownprint's abuse data is temporarily unavailable. Otherwise always present.                                        |
| `ip_geolocation`                    | When knownprint's location data is unavailable. When the address has no known country the value is `unknown`, not `null`. |
| `high_activity`                     | Never on a new event.                                                                                                     |

### Agent profiles

The browser agent runs under one of two profiles, set with the `profile` option when you load it (see [Add the script to your pages](/install/browser)). The event's `profile` field says which one ran.

| Profile              | Signals                                                                                                                     |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `full` (the default) | Every signal, with everything the agent can read.                                                                           |
| `security`           | Every signal is still produced. The agent collects less from the page, and some signals can be less sure than under `full`. |

### Consent modes

The agent's consent mode (the `consent.mode` option, recorded in the event's `consent` block) does not change which signals an event carries:

| Consent mode    | Signals                                                         |
| --------------- | --------------------------------------------------------------- |
| `security_only` | Every signal.                                                   |
| `consented`     | Every signal, the same as `security_only`.                      |
| `blocked`       | No identification is sent, so there is no event and no signals. |

The event's `consent.effective_mode` is `security_only` for every event today. How consent works, and what each mode means for your privacy notice, is on [Privacy](/privacy).

### Connection availability

The event's `network.availability` says how the request reached knownprint. Through the standard proxy rule it is `ip_only`, which is normal (see [Install with the proxy rule](/install/proxy) and [The network object](/events#the-network-object)).

| `network.availability`                                                 | Effect on signals                                                                                                    |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `full`                                                                 | No effect.                                                                                                           |
| `ip_only` (the standard proxy rule), `none`, `tls_only`, `hashes_only` | `bot` and `tampering` have their confidence capped at 0.7 and carry `capped: true`. Every other signal is unchanged. |

`capped: true` means the confidence is lowered for this kind of install. A capped `bot` or `tampering` keeps its `value`; only the confidence is lowered.

## Search events by signal

The event search takes three filters on signals, beside its other filters:

| Query parameter     | Matches                                                                                                                                   |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `bot`               | Events whose `signals.bot.value` is `bad` or `not_detected`. The filter also accepts `good`, which the current bot signal never produces. |
| `vpn`               | `true` or `false`: events whose `signals.vpn.value` is that value.                                                                        |
| `min_suspect_score` | A number from 0 to 100: events whose `signals.suspect_score.value` is at least that. Events stored before the score existed never match.  |

```bash
curl -G "$KNOWNPRINT_API/v1/events" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY" \
  --data-urlencode "min_suspect_score=40" \
  --data-urlencode "limit=100"
```

The response is a page of events, newest first, with a `next_cursor` for the next page. The parameters, paging and errors are in the [events API reference](/api/events).

## Tell knownprint what you decided

When you learn that an event was fraud, or that a visit your rules flagged was legitimate, send it as feedback on the event (`POST /v1/events/{request_id}/feedback` with `label` `fraud` or `legit`). See [Feedback](/feedback).

## Signal pages

- [Suspect score](/signals/suspect-score): the one number, its parts, and thresholds for your own rules.
- [Bots](/signals/bots): automation, the kinds of bots, and what to do.
- [Network](/signals/network): `vpn`, `proxy`, `tor`, `datacenter`, `ip_blocklist`, `ip_geolocation` and the `network` object.
- [Browser](/signals/browser): `incognito`, `privacy_settings`, `tampering`, `virtual_machine` and `developer_tools`.
- [Activity](/signals/activity): `high_activity` and how to measure velocity yourself.
- [Integrity](/signals/integrity): replayed and altered requests, the origin, and what your backend must check.
