Developers
Browser agent integrity for your payment pages
The FRAPE browser agent runs on your checkout, so it belongs in your payment page script inventory. Here is what you need to show that the file your visitors load is exactly the file we published: a signed list of every version with its hash, ready-made security headers, an inventory entry to paste and a tool to check it all.
Why
What this pack is for
The Payment Card Industry Data Security Standard (v4.0.1), requirements 6.4.3 and 11.6.1, asks you to list every script on your payment pages with a reason for it, to authorise each one and assure its integrity, and to detect unauthorised changes to those scripts and to the page's security headers. This pack is evidence for those duties as far as the FRAPE agent goes. It does not cover your other scripts, and FRAPE does not certify your compliance: your assessor decides.
- Signed version manifest: every version with its URL, size, SHA-384 hash, release date and status, signed with Ed25519.
- Verification: a small tool with no dependencies, and the same checks with
curlandopenssl. - Security headers: a Content-Security-Policy that allows exactly this agent file, with violation reports, for nginx, Apache, Cloudflare, Express and Next.js.
- Inventory entry: what the script is, why you need it, how its integrity is assured and how you watch for changes.
Manifest
Every published version
From https://frape.io/agent/manifest.json, updated 2026-11-04. A published version never changes: any change to the agent is a new version at a new URL, so the hash in your script tag stays valid. The default address https://frape.io/agent/frape-agent.js always serves the current version, so it has no fixed hash; use a version's own URL below when you need one.
| Version | Status | Released | Size | Integrity and changes |
|---|---|---|---|---|
| 0.6.1 | current | 22,848 bytes | sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQThe blocker check also notices fingerprinting protection and is now described as an ad, tracker or fingerprinting blocker; still one yes or no. | |
| 0.6.0 | supported | 21,720 bytes | sha384-TmAGV5SidzkUJ8DP54BNzsPrfpVrR/BIEj9tbr0uwG9GKUe0Z94P6p/U1ufsThGOTwo more counts in the interaction rhythm summary, to help avoid mistaking autofill, password managers and phone keyboards for automated tools. | |
| 0.5.0 | supported | 21,392 bytes | sha384-QllQEO7dLBREaWI4BdCBJ2GM5Uo0bNCSg0Rs1ylpkvcvuB1a5h7MElb+dVFldbhZPayload v5: adds an interaction rhythm summary computed in the browser as counts, an ad or tracker blocker check, and one cookie-less connection check to FRAPE's edge; hashing now uses the browser's SubtleCrypto only. | |
| 0.4.0 | supported | 18,396 bytes | sha384-M7GuC2RdT8BeJsvjINZMJ93ug0thIPNNlUEx+frEvqGxaKx1nRQyeZEVKNJ/pxqrPayload v3: more web signals and a WebRTC network check (stunUrls option). | |
| 0.3.0 | supported | 14,102 bytes | sha384-MBh5+bfI8vzpWMgUvyiLwHipGJqmF0HNMivbqQVm0AX+JuB3yQP1/Q+mJGBHNz/LFirst version served from frape.io: device and browser signals for the score request. |
- current
- The version to use for new installs.
- supported
- Still fine to load. Move to the current version when you next touch the page.
- deprecated
- Plan the move to the current version; support will end.
- revoked
- Do not load it. The file stays at its URL so nothing breaks unseen, but no page should use it.
Signature
How the manifest is signed
The manifest is generated from our source repository on every release and signed in our release pipeline with an Ed25519 key that is held only there. The signature file holds the raw 64-byte signature over the exact bytes of manifest.json.
- Manifest: https://frape.io/agent/manifest.json
- Signature: https://frape.io/agent/manifest.json.sig
- Public key: https://frape.io/agent/manifest-signing-key.pem
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAKvWzWrZm4xfoGVIJJ7dKS2g5C3AZ0UiGD43OEIOX+Sc=
-----END PUBLIC KEY-----SHA-256 fingerprint of the key: 596afbe819f83b897dc5da2aed48c86e93c8ec27fb79aea906cd2948118c7742
Save the key once, compare its fingerprint with this page and record it in your inventory entry. After that, verify against your saved copy: a key fetched together with the manifest only shows that the two match each other. If we ever replace the key, we announce it here with the date and the new fingerprint; confirm the new one with your FRAPE contact before you rely on it.
{
"manifest_version": 1,
"name": "frape-agent",
"origin": "https://frape.io",
"updated": "2026-11-04",
"current": "0.6.1",
"signature": {
"algorithm": "Ed25519",
"signature_url": "https://frape.io/agent/manifest.json.sig",
"public_key_url": "https://frape.io/agent/manifest-signing-key.pem",
"signed_bytes": "the exact bytes of manifest.json as served (raw 64-byte signature, no encoding)"
},
"versions": [
{
"version": "0.6.1",
"status": "current",
"url": "https://frape.io/agent/frape-agent-0.6.1.js",
"integrity": "sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ",
"bytes": 22848,
"released": "2026-11-04",
"changelog": "https://frape.io/developers/agent-integrity/#v0.6.1",
"notes": "The blocker check also notices fingerprinting protection and is now described as an ad, tracker or fingerprinting blocker; still one yes or no."
},
…
]
}Verify
Check it yourself
# Node.js 20 or newer, no dependencies
curl -fsSO https://frape.io/developers/agent-integrity/downloads/verify-frape-agent.mjs
# Once: save the public key, compare its fingerprint with this page, keep the file
curl -fsSO https://frape.io/agent/manifest-signing-key.pem
# Every check after that, against your saved key
node verify-frape-agent.mjs --public-key manifest-signing-key.pem --version 0.6.1
# All versions, or a local copy of the files
node verify-frape-agent.mjs --public-key manifest-signing-key.pem
node verify-frape-agent.mjs --public-key manifest-signing-key.pem --dir ./copyDownload verify-frape-agent.mjs. It is one short file: read it before you run it. It exits with 0 when every check passes and 1 when a signature, size or hash does not match or when the version you asked for is revoked.
# OpenSSL 3. The LibreSSL that ships with macOS has no -rawin: use Homebrew openssl@3.
curl -fsSO https://frape.io/agent/manifest.json
curl -fsSO https://frape.io/agent/manifest.json.sig
# Fingerprint of your saved key (compare with this page)
openssl pkey -pubin -in manifest-signing-key.pem -outform DER | openssl dgst -sha256
# Signature over the exact bytes of manifest.json
openssl pkeyutl -verify -pubin -inkey manifest-signing-key.pem -rawin \
-in manifest.json -sigfile manifest.json.sig
# Signature Verified Successfully
# Size and SHA-384 of the file your pages load; compare with "bytes" and
# "integrity" (after "sha384-") for that version in manifest.json
curl -fsS https://frape.io/agent/frape-agent-0.6.1.js | wc -c
curl -fsS https://frape.io/agent/frape-agent-0.6.1.js | openssl dgst -sha384 -binary | openssl base64 -ASecurity headers
Ready-made security headers
On a payment page that must authorise every script change, load the fixed version with its integrity attribute, and send a Content-Security-Policy whose script-src allows exactly the agent's addresses. Each snippet below allows the default address and the agent 0.6.1 file; replace the report address and the page path with your own.
<script src="https://frape.io/agent/frape-agent-0.6.1.js"
integrity="sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ"
crossorigin="anonymous"></script>- The browser refuses to run the file if a single byte differs from the integrity value. Keep
crossorigin="anonymous": the check needs it. - The default address
https://frape.io/agent/frape-agent.jsgets each new version without a change on your side, but it cannot carry an integrity value. If you use it, each new version reaches your page when we release it; record that in your script inventory, or use the fixed version. connect-src: from agent 0.5.0 the agent sends one request without cookies to collect.frape.io for its connection check (collectUrlsets your own host,collectUrl: falseturns it off). If your policy restrictsconnect-src, allow that host. Agent 0.4 and older make no HTTP requests of their own.connect-srcdoes not govern the WebRTC STUN traffic of its network check;stunUrls: []turns that check off.- Start with
Content-Security-Policy-Report-Only: it changes nothing for your visitors and reports what an enforced policy would block. Switch to the enforcing header once the reports are clean. - Already send a CSP? Add the agent URL to your existing
script-srcinstead of sending a second policy, and keep your init code in your own script file or give it a nonce.
# FRAPE browser agent 0.6.1: security headers for the pages that load it (checkout, login, sign-up).
# Built from the signed manifest https://frape.io/agent/manifest.json. Guide: https://frape.io/developers/agent-integrity/
#
# script-src allows two exact agent URLs and no other FRAPE path. Load one of them:
# Default (always the current version, updates arrive without a change on your side):
# <script src="https://frape.io/agent/frape-agent.js"></script>
# Fixed version with integrity (recommended for payment pages that must authorise every script change):
# <script src="https://frape.io/agent/frape-agent-0.6.1.js"
# integrity="sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ" crossorigin="anonymous"></script>
# Using only one of them? You can remove the other URL from script-src.
# This policy allows no inline script: keep the init code in your own script file ('self') or add a nonce.
# Already send a CSP? Add the agent URL to your existing script-src instead of sending a second policy.
#
# connect-src: from agent 0.5.0 the agent sends one request without cookies to collect.frape.io for its
# connection check (collectUrl sets your own host, collectUrl: false turns it off). If your policy restricts
# connect-src, allow that host. Agent 0.4 and older make no HTTP requests of their own.
# connect-src does not govern the WebRTC STUN traffic of the network check; stunUrls: [] turns that check off.
#
# Rollout: step 1 sends Content-Security-Policy-Report-Only and changes nothing for visitors. Read the reports
# for a week or two, then step 2 switches to the enforcing Content-Security-Policy header.
# Replace https://merchant.example/csp-reports with your own report collector, and /checkout/ with your payment page paths.
# With the fixed version: when you move to a new agent version, update the URL and the integrity value together.
location /checkout/ {
add_header Reporting-Endpoints 'csp-endpoint="https://merchant.example/csp-reports"' always;
# Step 1: report only.
add_header Content-Security-Policy-Report-Only "script-src 'self' https://frape.io/agent/frape-agent.js https://frape.io/agent/frape-agent-0.6.1.js; report-to csp-endpoint; report-uri https://merchant.example/csp-reports" always;
# Step 2: enforce (replace the line above).
# add_header Content-Security-Policy "script-src 'self' https://frape.io/agent/frape-agent.js https://frape.io/agent/frape-agent-0.6.1.js; report-to csp-endpoint; report-uri https://merchant.example/csp-reports" always;
}
# FRAPE browser agent 0.6.1: security headers for the pages that load it (checkout, login, sign-up).
# Built from the signed manifest https://frape.io/agent/manifest.json. Guide: https://frape.io/developers/agent-integrity/
#
# script-src allows two exact agent URLs and no other FRAPE path. Load one of them:
# Default (always the current version, updates arrive without a change on your side):
# <script src="https://frape.io/agent/frape-agent.js"></script>
# Fixed version with integrity (recommended for payment pages that must authorise every script change):
# <script src="https://frape.io/agent/frape-agent-0.6.1.js"
# integrity="sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ" crossorigin="anonymous"></script>
# Using only one of them? You can remove the other URL from script-src.
# This policy allows no inline script: keep the init code in your own script file ('self') or add a nonce.
# Already send a CSP? Add the agent URL to your existing script-src instead of sending a second policy.
#
# connect-src: from agent 0.5.0 the agent sends one request without cookies to collect.frape.io for its
# connection check (collectUrl sets your own host, collectUrl: false turns it off). If your policy restricts
# connect-src, allow that host. Agent 0.4 and older make no HTTP requests of their own.
# connect-src does not govern the WebRTC STUN traffic of the network check; stunUrls: [] turns that check off.
#
# Rollout: step 1 sends Content-Security-Policy-Report-Only and changes nothing for visitors. Read the reports
# for a week or two, then step 2 switches to the enforcing Content-Security-Policy header.
# Replace https://merchant.example/csp-reports with your own report collector, and /checkout/ with your payment page paths.
# With the fixed version: when you move to a new agent version, update the URL and the integrity value together.
# Needs mod_headers.
<Location "/checkout/">
Header always set Reporting-Endpoints 'csp-endpoint="https://merchant.example/csp-reports"'
# Step 1: report only.
Header always set Content-Security-Policy-Report-Only "script-src 'self' https://frape.io/agent/frape-agent.js https://frape.io/agent/frape-agent-0.6.1.js; report-to csp-endpoint; report-uri https://merchant.example/csp-reports"
# Step 2: enforce (replace the line above).
# Header always set Content-Security-Policy "script-src 'self' https://frape.io/agent/frape-agent.js https://frape.io/agent/frape-agent-0.6.1.js; report-to csp-endpoint; report-uri https://merchant.example/csp-reports"
</Location>
# FRAPE browser agent 0.6.1: security headers for the pages that load it (checkout, login, sign-up).
# Built from the signed manifest https://frape.io/agent/manifest.json. Guide: https://frape.io/developers/agent-integrity/
#
# script-src allows two exact agent URLs and no other FRAPE path. Load one of them:
# Default (always the current version, updates arrive without a change on your side):
# <script src="https://frape.io/agent/frape-agent.js"></script>
# Fixed version with integrity (recommended for payment pages that must authorise every script change):
# <script src="https://frape.io/agent/frape-agent-0.6.1.js"
# integrity="sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ" crossorigin="anonymous"></script>
# Using only one of them? You can remove the other URL from script-src.
# This policy allows no inline script: keep the init code in your own script file ('self') or add a nonce.
# Already send a CSP? Add the agent URL to your existing script-src instead of sending a second policy.
#
# connect-src: from agent 0.5.0 the agent sends one request without cookies to collect.frape.io for its
# connection check (collectUrl sets your own host, collectUrl: false turns it off). If your policy restricts
# connect-src, allow that host. Agent 0.4 and older make no HTTP requests of their own.
# connect-src does not govern the WebRTC STUN traffic of the network check; stunUrls: [] turns that check off.
#
# Rollout: step 1 sends Content-Security-Policy-Report-Only and changes nothing for visitors. Read the reports
# for a week or two, then step 2 switches to the enforcing Content-Security-Policy header.
# Replace https://merchant.example/csp-reports with your own report collector, and /checkout/ with your payment page paths.
# With the fixed version: when you move to a new agent version, update the URL and the integrity value together.
#
# Option A, Cloudflare Pages: add these lines to your _headers file.
# Option B, a proxied zone: Rules > Transform Rules > Modify Response Header > Create rule.
# When: URI Path starts with "/checkout/". Then: Set static, once per header below (name, then value).
# Step 2 is the same rule with the header name Content-Security-Policy.
/checkout/*
Reporting-Endpoints: csp-endpoint="https://merchant.example/csp-reports"
Content-Security-Policy-Report-Only: script-src 'self' https://frape.io/agent/frape-agent.js https://frape.io/agent/frape-agent-0.6.1.js; report-to csp-endpoint; report-uri https://merchant.example/csp-reports
// FRAPE browser agent 0.6.1: security headers for the pages that load it (checkout, login, sign-up).
// Built from the signed manifest https://frape.io/agent/manifest.json. Guide: https://frape.io/developers/agent-integrity/
//
// script-src allows two exact agent URLs and no other FRAPE path. Load one of them:
// Default (always the current version, updates arrive without a change on your side):
// <script src="https://frape.io/agent/frape-agent.js"></script>
// Fixed version with integrity (recommended for payment pages that must authorise every script change):
// <script src="https://frape.io/agent/frape-agent-0.6.1.js"
// integrity="sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ" crossorigin="anonymous"></script>
// Using only one of them? You can remove the other URL from script-src.
// This policy allows no inline script: keep the init code in your own script file ('self') or add a nonce.
// Already send a CSP? Add the agent URL to your existing script-src instead of sending a second policy.
//
// connect-src: from agent 0.5.0 the agent sends one request without cookies to collect.frape.io for its
// connection check (collectUrl sets your own host, collectUrl: false turns it off). If your policy restricts
// connect-src, allow that host. Agent 0.4 and older make no HTTP requests of their own.
// connect-src does not govern the WebRTC STUN traffic of the network check; stunUrls: [] turns that check off.
//
// Rollout: step 1 sends Content-Security-Policy-Report-Only and changes nothing for visitors. Read the reports
// for a week or two, then step 2 switches to the enforcing Content-Security-Policy header.
// Replace https://merchant.example/csp-reports with your own report collector, and /checkout/ with your payment page paths.
// With the fixed version: when you move to a new agent version, update the URL and the integrity value together.
// No extra dependency. Mount it before the routes of the pages that load the agent.
const FRAPE_AGENT_CSP = "script-src 'self' https://frape.io/agent/frape-agent.js https://frape.io/agent/frape-agent-0.6.1.js; report-to csp-endpoint; report-uri https://merchant.example/csp-reports";
app.use("/checkout", (req, res, next) => {
res.setHeader("Reporting-Endpoints", 'csp-endpoint="https://merchant.example/csp-reports"');
// Step 1: report only. Step 2: change the header name to "Content-Security-Policy".
res.setHeader("Content-Security-Policy-Report-Only", FRAPE_AGENT_CSP);
next();
});
// FRAPE browser agent 0.6.1: security headers for the pages that load it (checkout, login, sign-up).
// Built from the signed manifest https://frape.io/agent/manifest.json. Guide: https://frape.io/developers/agent-integrity/
//
// script-src allows two exact agent URLs and no other FRAPE path. Load one of them:
// Default (always the current version, updates arrive without a change on your side):
// <script src="https://frape.io/agent/frape-agent.js"></script>
// Fixed version with integrity (recommended for payment pages that must authorise every script change):
// <script src="https://frape.io/agent/frape-agent-0.6.1.js"
// integrity="sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ" crossorigin="anonymous"></script>
// Using only one of them? You can remove the other URL from script-src.
// This policy allows no inline script: keep the init code in your own script file ('self') or add a nonce.
// Already send a CSP? Add the agent URL to your existing script-src instead of sending a second policy.
//
// connect-src: from agent 0.5.0 the agent sends one request without cookies to collect.frape.io for its
// connection check (collectUrl sets your own host, collectUrl: false turns it off). If your policy restricts
// connect-src, allow that host. Agent 0.4 and older make no HTTP requests of their own.
// connect-src does not govern the WebRTC STUN traffic of the network check; stunUrls: [] turns that check off.
//
// Rollout: step 1 sends Content-Security-Policy-Report-Only and changes nothing for visitors. Read the reports
// for a week or two, then step 2 switches to the enforcing Content-Security-Policy header.
// Replace https://merchant.example/csp-reports with your own report collector, and /checkout/ with your payment page paths.
// With the fixed version: when you move to a new agent version, update the URL and the integrity value together.
// next.config.js. headers() needs a Next.js server; a static export sets headers on its host instead.
const FRAPE_AGENT_CSP = "script-src 'self' https://frape.io/agent/frape-agent.js https://frape.io/agent/frape-agent-0.6.1.js; report-to csp-endpoint; report-uri https://merchant.example/csp-reports";
module.exports = {
async headers() {
return [
{
source: "/checkout/:path*",
headers: [
{ key: "Reporting-Endpoints", value: 'csp-endpoint="https://merchant.example/csp-reports"' },
// Step 1: report only. Step 2: change the key to "Content-Security-Policy".
{ key: "Content-Security-Policy-Report-Only", value: FRAPE_AGENT_CSP },
],
},
];
},
};
Inventory
Script inventory entry
Paste this into your payment page script inventory and fill in the bracketed parts. It records what the script is, why you need it, how its integrity is assured and how you watch for changes.
Payment page script inventory entry: FRAPE browser agent
Script name: FRAPE browser agent (frape-agent.js)
Provider: FRAPE, https://frape.io
Version: 0.6.1 (released 2026-11-04)
URL: https://frape.io/agent/frape-agent-0.6.1.js
Integrity (SRI): sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ
Size: 22848 bytes
Pages: [list the pages that load it, for example /checkout/]
Authorised by: [name and role], on [date]
Why it is needed
Fraud prevention. The script collects device and browser signals on the page and returns them as one string.
Our backend sends that string to the FRAPE scoring API with the order, and FRAPE returns a risk decision. It
does not read card numbers, typed values, which keys are pressed, clipboard contents or location. What it collects:
https://frape.io/legal/device-signals/
How its integrity is assured
1. We load the fixed-version file above, not FRAPE's default URL (https://frape.io/agent/frape-agent.js, which always serves the newest
version and so carries no integrity value). The script tag carries integrity="sha384-fOp30z/+FH0QyBq5QeLIRQ4rBUxOc3ox30xJArjPaNyW20XUFLGTu74u2LxNA4mQ"
and crossorigin="anonymous". The browser refuses to run the file if a single byte differs.
2. The URL names the version and FRAPE never changes a published version, so the hash stays valid.
3. Our Content-Security-Policy script-src allows this exact URL and no other FRAPE path.
4. The hash is the one listed in FRAPE's signed version manifest:
https://frape.io/agent/manifest.json
signature (Ed25519): https://frape.io/agent/manifest.json.sig
public key: https://frape.io/agent/manifest-signing-key.pem (fingerprint recorded below)
Public key SHA-256 fingerprint: [copy it from https://frape.io/developers/agent-integrity/]
How changes are monitored
- CSP violation reports go to [your report endpoint] and are reviewed by [team], [how often].
- [How often, for example monthly and before each release]: re-verify the signed manifest and the file hash with
verify-frape-agent.mjs (or the openssl steps on the guide) and check the version status. A deprecated
version is scheduled for replacement; a revoked version is removed from our pages at once.
- An agent upgrade is a change: update the URL, the integrity value and this entry together.
Requirements this entry supports
Payment Card Industry Data Security Standard (v4.0.1), requirements 6.4.3 and 11.6.1. Requirement 6.4.3 covers the
inventory, authorisation and integrity of payment page scripts; 11.6.1 covers detecting changes to those scripts and
to the page's security headers. This entry is evidence for our own controls. FRAPE does not certify our compliance;
our assessor decides.
Releases
How a release is protected
- Each version is built from our source repository and published once at its own URL. Our build checks fail if a published file, the manifest and the hash shown in the admin console disagree, or if the default address does not serve exactly the current version.
- The files are served by our static file host, named on the sub-processors page. Someone who took over that account could change a file but could not sign a matching manifest, and your visitors' browsers would refuse the changed file because of the integrity attribute.
- A revoked version stays at its URL, because published files never change or disappear, but the manifest marks it revoked and the verification tool fails when you check it. If we revoke the current version, the default address goes back to the previous version.
- The integrity attribute is what protects your visitors. Without it the browser runs whatever the URL returns, so on payment pages use the fixed version with its integrity attribute and keep the policy above.
Get started
Start stopping fraud today.
Start free with test keys, then see every decision explained on your own live traffic, with Decision Core advising in watch mode until you switch it on. Or tell us what you need to protect, and we will walk you through how FRAPE would decide it. Compare plans.