03Attack tests

Attack tests for your own app

yof attack tests your own running app the way an attacker would, with test accounts you make for it. It runs on your machine or in your CI.

How it works, step by step

yof attack · your machine or your CISample data

What it tests

  • authOpens each signed-in page with no sign-in and with a broken token.
  • tenantAccount A makes a test record, then account B tries to read it, find it in a list and change it.
  • rbacOpens each admin page as a normal member.
  • aiYour assistant: tries to read its hidden instructions, slip it commands, and reach another account's data.
  • surfaceOpen redirects, security headers and the sign-in cookie.

What it never does

  • It never tests your live site unless your config turns that on for this app.
  • It only reads, signs in and creates its own test records. It changes or deletes only what it made.
  • It stops at its budget: 300 requests and 110 seconds unless you set less or more.
  • It deletes its test records at the end, even when you stop it.
  • Your test accounts stay in your CI secrets. yof never stores a password or token.
$ npx @yof/cli attack http://localhost:3000
.yof/attack.json
{
  "app": "shop.example.com",
  "consent": "I own shop.example.com and allow yof attack to test it and its preview builds with my own test accounts.",
  "accounts": {
    "a": { "header": "Authorization", "env": "YOF_ATTACK_A" },
    "b": { "header": "Authorization", "env": "YOF_ATTACK_B" },
    "admin": { "header": "Authorization", "env": "YOF_ATTACK_ADMIN" }
  },

Attack tests

Run them yourself for free, or let yof run them for you as part of a report.

Run it yourself

Free

With the open-source command line tool, on your machine or in your CI, using test accounts you make.

yof runs it for you

Included

In “Security report: Full” ($499) and “Evidence pack” ($1,490). You give consent once in the app. Test accounts are optional.

Automated engagement In development

$1,990 per app Opens soon

yof runs every attack test on one app, under rules you confirm first.

Patch Continuous In development

$49 a month Opens soon

Re-attacks your app on every release.

Pricing

yof attack tests: test your own app like an attacker