78trust / 100

Security Headers

by agentshelf.syntexa.ch in Security & trust

x402 APIPassing, checked 1 h ago

Call when an agent needs a security-header audit (CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy) with a 0–100 score for a public URL. Use it before sending users to a site. SSRF-safe. Send JSON {"url":"https://example.com/"}. Exact $0.004 USDC on Base. Try unpaid POST /v1/sandbox/security-headers first.

POST https://agentshelf.syntexa.ch/v1/security-headers

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
31 ms typical, 40 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentshelf.syntexa.ch/v1/security-headers" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentshelf.syntexa.ch%2Fv1%2Fsecurity-headers
const res = await pay("https://agentshelf.syntexa.ch/v1/security-headers", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://example.com/"}),
});
console.log(await res.json());

Example input

{
  "url": "https://example.com/"
}

Example output

{
  "billed": true,
  "final_url": "https://example.com/",
  "findings": [
    {
      "message": "Content-Security-Policy is present",
      "name": "content-security-policy",
      "status": "pass"
    },
    {
      "message": "HSTS max-age is at least 180 days",
      "name": "strict-transport-security",
      "status": "pass"
    },
    {
      "message": "X-Frame-Options is DENY or SAMEORIGIN",
      "name": "x-frame-options",
      "status": "pass"
    },
    {
      "message": "Referrer-Policy is set",
      "name": "referrer-policy",
      "status": "pass"
    },
    {
      "message": "Permissions-Policy is present",
      "name": "permissions-policy",
      "status": "pass"
    }
  ],
  "headers": {
    "content_security_policy": "default-src 'self'",
    "permissions_policy": "geolocation=()",
    "referrer_policy": "no-referrer",
    "strict_transport_security": "max-age=31536000; includeSubDomains",
    "x_frame_options": "DENY"
  },
  "ok": true,
  "receipt_id": "rcpt_01EXAMPLE000000000000000",
  "score": 100,
  "status": 200,
  "warnings": []
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed40232 ms$0.004
5 h agoPassed40230 ms$0.004
8 h agoPassed40235 ms$0.004
12 h agoPassed40229 ms$0.004
15 h agoPassed40230 ms$0.004
19 h agoPassed40234 ms$0.004
22 h agoPassed40230 ms$0.004
26 h agoPassed40231 ms$0.004
30 h agoPassed40240 ms$0.004
33 h agoPassed40231 ms$0.004
38 h agoPassed40228 ms$0.004
40 h agoPassed40226 ms$0.004
46 h agoPassed402341 ms$0.004