Arkose Labs API Guide

Overview

This is an overview of the APIs exposed to customers on the Arkose Labs Fraud Deterrence Platform (Arkose Labs Platform), with a sample scenario for each. Note that some APIs are not applicable to Arkose Detect; these are noted in their entries. Otherwise, both Arkose Detect and Arkose Protect use the API.

Client API

The Client API is used on an application's client-side. It sets up the session, runs the detection engine, and determines if a session should receive an Enforcement Challenge (EC). If so, it loads a script that controls and runs the EC process. The EC actions do not apply for Arkose Detect.

Scenario

A user tries to sign on to a website. The application's app/webpage contacts the Arkose Labs server via the Client API in order to provide collected signals, run the detection engine, and, if running Arkose Protect, determine if an EC is served. The Client API's response determines whether an EC is served. If so, a script is loaded that controls the EC process. The Client API's response provides a session verification token to validate on the server-side for detection metrics.

More Information

For more information about the Client API and how to use it, see the Client-Side Instructions.

Verify Response API

The Verify Response API verifies a session for both Arkose Detect and Arkose Protect, the latter after the EC process. For security reasons, it is always called from the server-side. It is called for each session with the private key and session token, whether or not an EC was presented.

The response indicates if the user was verified. It can be in a simple 1 or 0 format, or in a full JSON format. The server-side code deals with handling the response.

Scenario 1

A user tries to sign on to a website. No EC is presented, either because the site is running Arkose Detect or because Arkose Protect decides not to serve them an EC. The Verify Response API is called to validate the session token, with the verification response passed back to the customer’s server.

Scenario 2

A user tries to sign on to a website configured for Arkose Protect. Arkose Protect consults its records and decides to serve them an EC. The user completes the challenge. The Verify Response API is called to inspect the user’s actions and check their response, with the verification response passed back to the customer’s server.

Scenario 3

A user tries to sign on to a website configured for Arkose Detect. The Arkose Labs Platform runs its detection engine. After completion, the Verify Response API is called to inspect the user’s response, with the verification response passed back to the customer’s server.

More Information

For more information about the Verify Response API and how to use it, see Server-Side Instructions

Data Exchange: Enhanced Detection and API Source Validation

The Data Exchange feature is a payload on the Verify Response API. Customers can pass pre-defined parameters between the customer’s servers and Arkose Labs' servers. The information can indicate a level of suspicion of the user, or it can pass information a customer knows about the user to supplement Arkose Labs' own data. In addition, customers can use it for API source validation. Both Arkose Detect and Arkose Protect can use Data Exchange.

Data Exchange information is encrypted using AES-256-GCM, which prevents fraudsters from data tampering.

Scenario 1: Supplementing the Arkose Labs Platform with additional flow-specific data.

Additional telemetry may be available in various customer flows that are not available to Arkose. Enhancing our standard telemetry with these fields can make Arkose detection more powerful. It can also make it easy to “sync up” on traffic segments between Arkose’s data and the customer’s for monitoring or pressuring purposes.

Scenario 2: Catching handovers by cross-checking standard Arkose telemetry.

Attackers may use general-purpose tools or services to get around the Arkose Platform. These can appear very much like legitimate traffic. Such attacks generally involve a handover between a special-purpose attack targeted at the customer and a general-purpose service. But it is extremely difficult to do a seamless handover as they almost always have different signatures. By cross-checking what Arkose sees against what the customer sees, Arkose can far more effectively detect handovers.

Scenario 3: API Source Validation

API Source Validation is an extension to Data Exchange. It prevents non-legitimate traffic from using the Arkose Labs API. In addition to stopping that kind of abuse, it also prevents those sessions from counting against a customer’s contractual API quota.

More Information

For more information about how to set up and use data exchange, see the Data Exchange Knowledge Base page (requires an Arkose Labs support login to access).

Truth Data API

The Truth Data API lets customers provide feedback about the accuracy of Arkose Labs' session analysis. There are two Truth Data APIs - one for legit sessions and one for non-legit sessions. Both Arkose Detect and Arkose Protect can use the Truth Data API.

Legit Sessions

Use the Truth Data API for legit sessions when Arkose Protect challenged a user, but the customer, based on their own data, thinks they should not have been challenged. The customer sends session information back to the legit session API endpoint so Arkose can analyze the details. Not applicable for Arkose Detect.

Scenario

A user tries to sign in to a website. Arkose Protect presents them with an EC. When the customer analyzes their data, they disagree that the user should have been challenged. The customer sends the session details to the legit sessions API for evaluation by Arkose's analysts. Not applicable for Arkose Detect

Non-legit Sessions

Use the Truth Data API to notify Arkose Labs about when a fraudster successfully completes a session. The customer sends session information back to the non-legit session API endpoint so Arkose can analyze the details. Applicable to both Arkose Detect and Arkose Protect.

Scenario

A fraudster tries to sign in to a website. They are not recognized by the Arkose Labs Platform and they get through. The customer sends the session details to the non-legit sessions API for evaluation by Arkose's analysts.

More Information

For more information about the Truth Data API and how to use it, see the Truth Data API Knowledge Base page (requires an Arkose Labs support login to access).

Real-Time Logging (RTL)

Real-Time Logging (RTL) is a collection of detailed user activity logs from Arkose Labs servers. It is sent asynchronously, with only a few seconds delay, to wherever the customer specifies. This can be a customer's server or a third-party service that digests and packages logging data for analysis. RTL data is raw and uninterpreted so customers can interpret the Arkose Labs Platform's effectiveness. However, the data needs to be filtered to gain the best insights into what it is telling you.

RTL provides a complete picture of all of a customer’s traffic that ever ended up on Arkose. The Verify API only provides a subset of that information.

RTL data consists of events. An event covers the entire user experience, from session creation to conclusion. They include telemetry data about the user, including what we know from their presence elsewhere on the Arkose Labs network.

Both Arkose Detect and Arkose Protect can use RTL.

Scenario 1: Fraudster Traffic

A customer wants to discover trends in their site's traffic due to fraudsters. They receive RTL data and by filtering separate out the fraudster traffic. Since this traffic tends to create a lot of noise, they also filter that out. They analyze this data to reveal information about different types of fraudsters.

Scenario 2: Non-Suspicious Traffic

A customer wants to discover insights about non-suspicious users and their traffic on the site. They receive RTL data and filter out the fraudster traffic, leaving the traffic from non-suspicious users. They then analyze this data and its trends to reveal information about their good users.

More Information

For more information about Real-Time Logging and how to use it, see the Real-Time Logging Knowledge Base page (requires an Arkose Labs support login to access).