Docs

File DA-009 View as Markdown

Core

The detection engine inside the script is open source: github.com/doubleagent-so/core (MIT). Read how every verdict is made, run it yourself, or make it better.

Script or core

Script (doubleagent.js)Core
InstallOne tagCode
Verdict in the pageYesYes
Sessions across pages, consentYesYou build it
GA4, Meta, Shopify and 14 moreYesYou build it
Your own tools and backendPluginsengine.payload()
Server re-scoring, HQ, tokensWith the cloudNo

The script runs core. With data-cloud="off" it stays in the page, like core on its own.

Use it

git clone https://github.com/doubleagent-so/core && cd core && npm ci
npm run example   # live verdict page
import { createEngine } from '@doubleagent-so/core';

const engine = createEngine(window, { onVerdict: (v) => console.log(v.class, v.reasons) });
const verdict = await engine.ready;

Getting started covers the options, the verdict and sending engine.payload() to your backend.

How it works

Probes and input events become signals. Each is a log-likelihood ratio in a capped group, so correlated tells can't pile up. Fusion adds them to your site profile's priors. A policy turns the result and the action into a recommendation. How it works.

The cloud re-scores every session with evidence the browser can't forge (headers, IP ranges, Web Bot Auth). It never trusts the client's verdict.

Improve it

Found a way past it? Report it privately (Security).