knownprintDocs

Signals

Signals

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

Signals at a glance

The signals object of an event holds these entries. Each one is a signal object (described in Read a signal) or null.

Signalvalue typeWhat it tells youPage
suspect_scorenumber, 0 to 100How much of the visit's signals a site should worry about, as one number with its parts listed.Suspect score
botstring: bad or not_detectedWhether automation drove the browser, and what kind.Bots
tamperingbooleanThe browser misreports what it is: its name, system, hardware, screen or clock.Browser
virtual_machinebooleanThe browser runs in a virtual machine, an Android emulator, a cloud phone or a rented cloud desktop.Browser
developer_toolsbooleanDeveloper tools, or a tool that drives the browser the same way, are attached to the page.Browser
incognitobooleanThe visit comes from a private (incognito) window.Browser
privacy_settingsstringThe 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
vpnbooleanThe request did not leave from the device's own line: a VPN service, a privacy relay, Tor or a datacenter.Network
proxybooleanThe 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
torbooleanThe address is a Tor exit.Network
datacenterbooleanThe address belongs to a hosting company or a cloud, not to an access network.Network
ip_blocklistbooleanThe address, or the network around it, is a known recent source of abuse.Network
ip_geolocationstringThe country the address is used in (unknown when none), with the network operator in detail.Network
high_activitybooleanThe visitor is among the busiest on your site today.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.
  • integrity: whether the request was replayed or altered, and the origin it ran on. See Integrity.

Read a signal

A signal is an object with these members:

FieldTypeMeaning
valueboolean, number or stringThe finding. Its type depends on the signal (see the table above).
confidencenumber, 0 to 1How 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".
reasonsarray of stringsShort machine-readable codes for what decided the value. Often empty when the value is false.
cappedboolean, optionalPresent and true when the confidence is lowered for this kind of install. Only bot and tampering are capped. See Connection availability.
detailobject, optionalExtra 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.

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

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.

curl
curl "$KNOWNPRINT_API/v1/events/$REQUEST_ID" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY"
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 and in the events API reference.

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:

SignalCan change
incognitoIt can be refined within about ten seconds of the identification.
botA not_detected verdict can turn to bad for up to 30 minutes after the identification.
suspect_scoreIt 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.

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.

SignalWhen it is null
suspect_scoreNever on a new event. Absent on events stored before the score existed.
botWhen nothing about the browser could be read. Rare.
tamperingWhen nothing about the browser could be read. Rare.
virtual_machineWhen it could not be evaluated on this visit.
developer_toolsWhen the browser gives no answer. Expect null on some browsers and platforms.
incognitoWhen the browser gives no answer. Expect null on some browsers and platforms.
privacy_settingsWhen the browser shows no recognised privacy mode. This is the normal value for most visitors.
vpn, proxy, tor, datacenterWhen knownprint's network data is temporarily unavailable. Otherwise always present.
ip_blocklistWhen knownprint's abuse data is temporarily unavailable. Otherwise always present.
ip_geolocationWhen knownprint's location data is unavailable. When the address has no known country the value is unknown, not null.
high_activityNever 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). The event's profile field says which one ran.

ProfileSignals
full (the default)Every signal, with everything the agent can read.
securityEvery signal is still produced. The agent collects less from the page, and some signals can be less sure than under full.

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 modeSignals
security_onlyEvery signal.
consentedEvery signal, the same as security_only.
blockedNo 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.

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 and The network object).

network.availabilityEffect on signals
fullNo effect.
ip_only (the standard proxy rule), none, tls_only, hashes_onlybot 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 parameterMatches
botEvents whose signals.bot.value is bad or not_detected. The filter also accepts good, which the current bot signal never produces.
vpntrue or false: events whose signals.vpn.value is that value.
min_suspect_scoreA number from 0 to 100: events whose signals.suspect_score.value is at least that. Events stored before the score existed never match.
Shell
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.

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.

Signal pages

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