How AI agent detection works inside Incode Know Your Agent
A customer asks an AI assistant to pay their bill. The assistant opens the bank's site, signs in with the customer's password, enters the one-time code the customer hands it, and pays. To the bank, the session looks like any other customer session, with valid login credentials, a known device, and the right one-time code.
Customers are sending more of these agents every month, including agentic browsers, desktop assistants, and always-on personal agents, to pay bills, trade stocks and crypto, book flights, and schedule medical appointments. Almost none of them announce themselves, so the business often can't tell an agent is in the session at all. That blind spot creates two problems. The business can't make room for the customer's assistant, and it can't stop an attacker's agent running stolen credentials through the same flow.
Agent Detection, the first of five modules in Incode Know Your Agent, closes that blind spot by showing whether an agent is in the session and which one it is. The other four modules tie each agent to a verified person and the limits that person sets, check every action, and keep a record of it. From there, the business's policy decides whether to let the customer's assistant through, step up to the person, or block. Behavior is the one layer an agent can't inherit from the customer it acts for, and it's where detection has to look. In this article, you'll learn why AI agents get past today's bot defenses, how their behavior gives them away, how we built a lab to train and test detection against them, and how Incode Agent Detection works.
Why AI agents get past traditional bot detection
For 20 years, the bots hitting a login page were scripts. They ran in a headless browser or no browser at all, originated from a data center, submitted every form field in a few milliseconds, and never generated a pointer event. Defenses matched that threat model. They fingerprinted the browser, scored the network origin, and presented a challenge a program couldn't solve.
AI agents violate each of those assumptions. There are five types of automated traffic today, and standard controls were built to catch only one of them, classic bots:
- AI in the customer's browser. An agentic browser or a browser extension (Comet, Claude in Chrome, Gemini in Chrome) that drives the customer's own authenticated session on the customer's own machine.
- AI that operates the customer's device. Desktop and mobile agents (Claude Cowork, Copilot Actions, Gemini on Android) that read the screen and control the whole operating system.
- AI in the vendor's cloud. Always-on personal agents (Meta Muse, OpenAI dots, Instinct, Grok Bot) that browse from the AI vendor's infrastructure on the customer's behalf.
- Custom-built agents. Frameworks developers use to automate the web (Browser Use, Stagehand, Browserbase).
- Classic bots. Selenium, Puppeteer, and Playwright scripts, often wrapped in anti-detect tooling.
Agents in the customer's browser and agents that operate the customer's device are the hardest to detect, and they're also where consumer adoption is heading. These AI agents run inside a real browser on real hardware, so there are no headless or webdriver flags to find. They inherit the customer's IP address, cookies, and session tokens, so device and network reputation come back clean. Their clicks and keystrokes enter through the operating system, so the browser marks every event as trusted input, the same flag a human finger produces.
They read a CAPTCHA and solve it. When a one-time code arrives, the customer relays it. Every control in the bot-management stack sees a legitimate user.
Two more things change the threat model. First, many of these sessions are legitimate, so a control that blocks on sight breaks the customer's own workflow and pushes them to a competitor. Second, almost no agent identifies itself. Fewer than 3% of personal agents declare themselves to the sites they visit, and an attacker's agent never will. Open standards such as Web Bot Auth let an agent sign its requests with HTTP Message Signatures to identify itself, which only helps when the agent chooses to sign.
How agent behavior differs from human behavior
Each kind of agent fails a different check. Cloud agents give themselves away in the first second through device and network telemetry, especially software-rendered graphics and a data-center origin. Custom frameworks leave traces of the framework itself, and their browsers make claims that contradict their TLS and HTTP fingerprints. Classic bots trip fingerprint inconsistencies and honeypot fields. Agents inside the customer's browser pass device, network, and fingerprint checks, so only behavioral analysis can separate them from the person.
An agent can't inherit the customer's behavior. Every agent works in a loop that captures the page, reasons about it, and acts, and that loop leaves traces no person produces.
Long pauses separate the agent's actions while the model runs inference, and those pauses repeat at a regular rhythm. The agent scrolls an element into view before almost every click. It moves the pointer in straight segments and lands near the geometric center of each target. It types at a constant speed across every field and never corrects a mistake. Its time on a page has nothing to do with how much content the page holds.
People produce noisy input. Their hands add sensor jitter and small fidgets during pauses, they hold some keys longer than others, they click off center, and they scroll back and forth. No single signal settles the question, because a trackpad user also scrolls smoothly. The detector reaches a verdict only when many weak signals agree.

How the Incode Fraud Lab provides ground truth, training, and adversarial testing
A detector is only as good as its labels, and production traffic can't provide them. In production, nobody knows with certainty which sessions come from agents. A label taken from another detector's verdict only teaches a new detection model to inherit the old one's blind spots.
So we built an agent testing environment inside the Incode Fraud Lab. It has three parts.
1. A test bank
It's a full banking application built for testing, with sign-in, transfers, and a payment flow. The bank randomizes its page layout on every load, which forces the model to learn from interaction patterns alone.
2. An agent farm
Every agent we can obtain runs against that bank every day. That includes consumer agents in the browser, on the device, and in the vendor's cloud, along with developer frameworks, classic bots, and agents our own red team builds to evade us. The farm holds 115 agents and tools today.
A language model generates the tasks, so they vary from run to run. We number each run, and the ground-truth label for every session comes from the test runner's records, which state which agent executed it. No detector's verdict ever becomes a label.
3. Real people on real devices
Crowdsourced testers use the same bank on their own hardware, including desktops with a mouse or a trackpad, iPhones, Android phones, touchscreen laptops, and Linux machines. More than 1,000 testers have taken part so far, on hundreds of devices. Incode also draws human labels from its identity flows, where a face check confirms that a live person is present, so those labels rest on verified ground truth.
Three lessons from training our detection model
Each of these three lessons changed how we build the detector.
A model learns whatever is easiest to separate on. In an early round, almost every human tester browsed with hardware graphics acceleration on, so the model learned that acceleration off meant agent and flagged every real person who had it disabled. We fixed the problem by collecting from a wider range of people, and device variety is now a standing requirement of the lab.
Mobile was a blind spot until we collected touch telemetry. The first mobile round flagged a large share of real people on phones because we weren't capturing taps and swipes yet. Once we added them, the mobile false-positive rate fell to near zero.
Silence looks like an agent. A person who has just landed on a page and hasn't typed yet looks, for a moment, like an agent that never types. This silent start caused most early false positives, and it's why the detector collects from the first page and keeps scoring as the session proceeds.
How we test a new detection model before it goes live
A new model never goes straight to enforcement. It trains on labeled sessions with a held-out set it never sees. It then runs in shadow mode, scoring live lab traffic alongside the current model without affecting any outcome.
We fix the decision threshold before scoring the next window, so the result can't influence it.
One rule governs every release: detect more agents without flagging more people. A detection rate in isolation is meaningless. Any detector reaches 100% by flagging everyone, so we read true positives and false positives together, at the same operating point.
Adversarial testing runs in two modes. In the white-box round, we tell the agents exactly which signals we collect. In the black-box round, we tell them only that behavioral analysis exists and leave them to reverse-engineer the page.
Over several black-box rounds, the agents reverse-engineered the collection code, and a growing share evaded detection. That rising evasion rate led us to move collection into a compiled module with signed, single-use payloads. We reproduce and label every miss and add it to the next day's training set.
How Incode Agent Detection works
Everything we learned in the lab went into Agent Detection, the first module of Incode Know Your Agent:
- One lightweight web SDK. It runs passively on the pages you choose, and needs no redirect. It collects interaction timing and device attributes, never content. In password, one-time-code, and card fields, it records how fast someone types, never which keys they press.
- More than 200 signals that have to agree. The signals span network origin, browser consistency, automation markers, and, above all, behavior. An attacker can spoof one signal. Two hundred signals that have to agree with each other can't be spoofed one at a time.
- A verdict that sharpens through the session. The detector returns a verdict in about a millisecond and classifies every activity as human, agent, pending, or unknown. Cloud agents usually show up in the first batch of signals, and agents in the customer's browser reveal themselves as they act. By the time an agent moves money, it has produced far more evidence than it did at sign-in. The detector never treats unknown as human.
- Attribution and a live check. A second model identifies the product behind the session, so policy can treat the customer's known assistant differently from an unidentified framework. For sensitive actions, policy can add a short camera check that confirms a live person is present without identifying them. An agent's only option is to inject a synthetic feed, and the check is built to detect injection.
- Your policy, your controls. Silent mode only scores, soft mode steps up to a live person, and hard mode blocks by rule. Every deployment starts in silent mode. Agent Detection sits alongside your WAF, bot management, fraud engine, and identity provider, and answers the question they leave open, which is whether an agent is acting for this person and whether the person authorized it.
Next, Agent Detection will extend coverage to agents in native mobile apps and agents that operate the device itself. We're also building a way to verify the task a person delegated against the action the agent takes. Voice agents are out of scope today.
Start in observation mode
The fastest way to understand your exposure is to run Agent Detection on your own traffic with nothing enforced. Deploy the SDK in silent mode, let it score for a few weeks, and then review the results with our team. The review shows which screens agents reach, which agents they are, and how often a legitimate customer would have been flagged. Then decide whether to register those agents, step up to the person, or block.
Want to see which agents are already reaching your sign-in and payment flows? Request a demo of Incode Know Your Agent and start in observation mode.