How it works

How our AI agents attack your app, and how we keep them safe

A technical walkthrough of a PentestLynx engagement: how we verify ownership, map your attack surface, run AI agents that must prove every finding, score the results and, when you need it, hand them to a senior pentester for sign-off.

The engagement at a glance

Every engagement follows the same phases, aligned with PTES and NIST SP 800-115.

  1. Verify and authorise

    You prove you own the domain and sign a scoped authorisation. Nothing is sent to your app before that.

  2. Map

    Recon builds a model of your hosts, routes, APIs, roles and login flows.

  3. Attack

    AI agents form hypotheses, try them with safe payloads and observe what happens.

  4. Prove

    A finding exists only if a replay reproduces it. Everything else is discarded.

  5. Report and sign off

    You get scored, mapped findings with fixes. For audits, a senior pentester reviews and signs.

There are three levels of depth. The free report is a light AI pass over your public attack surface. It never breaks in, sends no exploit payloads and needs no authorisation beyond the request itself. The detailed report is the full engagement described on this page: authenticated testing with test accounts you supply, real exploitation attempts and a replay for every finding. The human sign-off adds a review by one of our four senior pentesters, each with 15+ years in the industry and certifications including OSCP, OSWE, OSCE3, GXPN and CREST CRT/CCT, plus a signed letter for SOC 2, ISO 27001, PCI DSS, insurers and customer questionnaires.

Scope, ownership and authorisation

Testing a system without permission is an attack. We start with proof that you can give that permission.

Before any active test, you verify control of each domain in scope. You can either publish a DNS TXT record or serve a file from a well-known path on the host. Our platform checks the token from more than one resolver, and the check is repeated just before testing starts, so a scope that changes hands in between is caught.

# Option 1: DNS TXT record on the apex or the specific host
_pentestlynx.app.example.com.  300  IN  TXT  "pentestlynx-verify=7f3c…a91e"

# Option 2: a file served over HTTPS
https://app.example.com/.well-known/pentestlynx-verify.txt
pentestlynx-verify=7f3c…a91e

Ownership is not the same as authorisation, so you also sign a short authorisation. It names the hosts and paths in scope, anything explicitly out of scope (a payment provider's hosted page, a third-party chat widget, a shared SSO tenant), the test window, the contact who can stop the test, and the rules of engagement on this page. If your app runs on a platform you do not own, such as a cloud provider or a SaaS builder, we test only what that platform's own policy allows its customers to test.

Scope is enforced by the platform, not by the model. Every outbound request passes a scope gate that checks host, port and path against the signed scope before it leaves our network. An agent that tries to follow a link to an out-of-scope host is simply refused, and the attempt is recorded in your request log.

# Sample scope, as fixed in the authorisation
in_scope:
  - https://app.example.com/*
  - https://api.example.com/v2/*
out_of_scope:
  - https://app.example.com/billing/checkout/*   # hosted by payment provider
  - https://status.example.com/*
accounts:
  - role: member   tenant: A
  - role: admin    tenant: A
  - role: member   tenant: B
window: Mon–Thu 08:00–18:00 CET
max_rate: agreed per host
stop_contact: security@example.com

Recon

Most serious findings start with something nobody remembered was there.

Recon builds the map the agents will attack. It is the same phase a human pentester begins with (WSTG 4.1, Information Gathering), done more exhaustively because an agent does not get bored.

  • Subdomains and hosts. Certificate transparency logs, passive DNS and careful resolution of candidate names. Anything found outside your signed scope is reported to you as an observation and never touched.
  • Endpoints and JavaScript routes. We crawl the app as each role and read the shipped JavaScript bundles. Modern single-page apps carry their whole route table and most API calls in the bundle, including routes the UI never links to for your role. That is where many admin and internal endpoints surface.
  • API schema discovery. We look for OpenAPI and Swagger documents, GraphQL endpoints, and whether GraphQL introspection is enabled. If it is, the schema tells the agents every type, field and mutation. If it is not, field suggestions and client queries in the bundle often rebuild most of it.
  • Auth flow mapping. Sign-up, login, MFA, password reset, magic links, OAuth and SSO redirects, session cookies and token lifetimes. Authentication flaws tend to live in the transitions between these steps, so we map the transitions, not only the pages.
  • Technology fingerprint. Frameworks, servers and library versions, matched against known CVEs. A version match on its own is a hypothesis, not a finding.

The output is a structured model of your application: hosts, routes, parameters, object identifiers, roles, and which role can reach what. The agents plan against that model.

The agent loop

Plan, hypothesis, attempt, observe, then replay to confirm.

Our agents do not fire a fixed list of payloads at every parameter. They work the way an experienced tester does: look at what the application is, guess where it is likely to be weak, test that guess with the smallest possible request, and read the response carefully before deciding what to do next.

  1. Plan. A coordinating agent splits the attack surface into work items, for example "authorisation on invoice objects across tenants" or "password reset token handling", and assigns them to specialised agents.
  2. Hypothesis. Each agent writes down what it expects to be true if a weakness exists. For example: "If invoice access is checked only by session, a member of tenant B can read invoice 1042 of tenant A."
  3. Attempt. The agent sends the request that would confirm or refute the hypothesis, using non-destructive payloads within the rate limit.
  4. Observe. It compares the response with a baseline: status, body structure, timing, side effects visible to another role. Ambiguous results lead to a sharper hypothesis, not a finding.
  5. Replay to confirm. A candidate finding goes to a separate validator that replays the proof from a clean session. The validator is deterministic code, not a language model, and it decides whether the effect is real.

The models behind the agents are open-weight models hosted in the EU. We evaluate model families continuously against public benchmarks and our own lab apps, and route each kind of task to the model that does it best. No customer data is used to train any model.

# Sample agent trace (abridged and redacted)
plan        authz/invoices: compare object access across tenants A and B
hypothesis  GET /api/v2/invoices/{id} checks session only, not tenant
attempt     GET /api/v2/invoices/1042   as member@tenant-B
observe     200 OK, body schema = invoice, tenant_id = A  (baseline: 404 expected)
replay      validator: fresh session tenant-B -> 200, tenant_id = A   CONFIRMED
evidence    request + response stored, customer fields redacted

No exploit, no finding

The one rule that keeps our reports free of scanner noise.

A scanner reports what might be wrong. A pentester reports what is wrong and shows how. We hold our agents to the second standard: if a weakness cannot be demonstrated with a safe, reproducible proof, it does not appear as a finding in your report.

What counts as proof depends on the class. For an authorisation flaw, it is another role's object returned in a response. For stored XSS, it is a harmless marker script that a headless browser actually executes in a second user's session. For SSRF, it is a callback to infrastructure we control, never a read of your internal services. For injection, it is a controlled, repeatable timing difference or a boolean difference, never extracted data.

Things we see but cannot prove, such as a missing header or an outdated library with no reachable exploit path, go into a separate hardening section. They are labelled as observations, not vulnerabilities, so your team does not waste a sprint on them.

# Time-based proof instead of data extraction (sample)
baseline   GET /api/v2/search?q=report              median 182 ms  (n=5)
probe      GET /api/v2/search?q=report'+AND+…(5s)    median 5,190 ms (n=5)
control    GET /api/v2/search?q=report'+AND+…(0s)    median 179 ms  (n=5)
result     delay tracks the injected value -> SQL injection confirmed
extracted  nothing

Multi-role testing for IDOR and BOLA

Broken object level authorisation is first on the OWASP API Top 10 2023. Finding it needs more than one account.

An unauthenticated scanner cannot see most authorisation bugs, because the bug is that one logged-in user can do something only another user should. So for the detailed report we ask for test accounts: ideally two tenants, and in each tenant the roles that matter (for example member and admin).

The agents build an access matrix. For every object type and action they find (read invoice, update user, export report, invite member), they record which role created it and which roles should be able to touch it. Then they try every cell that should be denied: tenant B reading tenant A's objects (horizontal), a member calling an admin function (vertical, BFLA), and a user changing fields they should not control, such as role or tenant_id (mass assignment, BOPLA).

Identifiers are rarely just sequential integers today. Agents harvest UUIDs and opaque IDs from one role's traffic and replay them from another, check GraphQL node IDs and batch queries, and test every alternative path to the same object: the REST route, the GraphQL field, the export endpoint and the websocket message.

Chaining findings into attack paths

Real breaches are rarely one bug. They are three small ones in a row.

After individual findings are confirmed, a dedicated pass looks for combinations. A low-severity information leak that exposes user IDs, plus an IDOR that needs a valid user ID, plus a password reset that trusts a user-supplied email field, is an account takeover. Each link is replayed in order as one chain, and the chain is scored on its combined impact.

The report shows these chains as an attack-path diagram, so you can see which single fix breaks the most paths. Often it is not the highest-scored individual finding.

Deduplication and false-positive elimination

You should read each problem once, with its real root cause.

Parallel agents often reach the same weakness from different directions. Before reporting, we group findings by root cause rather than by URL: the same missing tenant check behind twenty endpoints is one finding with twenty affected locations, not twenty findings. Variants that need different fixes stay separate.

False positives are removed in layers. The replay validator rejects anything it cannot reproduce. Findings whose proof depends on our own test data being unusual are rechecked with fresh data. Findings that hold up are compared against the baseline behaviour of a correctly authorised request, so "returns 200" is never mistaken for "returns someone else's data".

CVSS 3.1 scoring and CWE mapping

Standard scores, so your auditor and your engineers read severity the same way.

Every finding gets a CVSS 3.1 base score with its full vector, calculated from the proof we actually obtained rather than from the worst case of the class. A reflected XSS that needs a click carries UI:R. An IDOR that leaks read-only data scores integrity as none. Each finding also maps to a CWE weakness and to the relevant OWASP category, for example API1:2023 for object level authorisation.

Finding    Cross-tenant invoice read via /api/v2/invoices/{id}
CVSS 3.1   6.5 Medium   AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE        CWE-639  Authorization Bypass Through User-Controlled Key
OWASP      API1:2023 Broken Object Level Authorization
WSTG       WSTG-ATHZ-04 Testing for Insecure Direct Object References

Scoring follows the FIRST CVSS v3.1 specification; categories follow the OWASP API Security Top 10 2023.

Report generation

Written for two readers: the engineer who fixes it and the person who has to explain it.

  • Executive summary. What an attacker could do today, in plain language, and the few fixes that matter most.
  • Findings. Exact location, the request and response that prove it (with customer data redacted), impact, CVSS vector, CWE and OWASP mapping, and a fix with code for your stack.
  • Attack paths. The chains described above, as a diagram.
  • Coverage matrix. Which test categories ran, against which hosts and roles, and which were out of scope or blocked.
  • Exports. PDF for people, JSON for tooling, and tickets for Jira or Linear.

The report text is drafted by a model from structured, validated findings. It never invents a finding: the language model writes about evidence the validator has already confirmed.

Human review for the sign-off

For auditors, insurers and enterprise customers, a qualified person stands behind the result.

For the sign-off tier, one of our senior pentesters takes the AI output as a starting point, not a conclusion. They re-validate every finding, adjust severity where context changes the risk, and hand-test the critical paths, especially authentication, payments and anything an agent flagged as unusual but could not prove. They then write an overview of your architecture and top risks, and sign an attestation letter that states the scope, dates, methodology and results.

Our four senior pentesters have 15+ years in the pentest industry, protecting Fortune 500 companies and many smaller businesses. Their certifications cover web and API exploitation with source review (OSWE), advanced exploitation (OSCE3, GXPN), and penetration testing to CREST standards (CREST CRT/CCT).

Safety controls

Rules the agents cannot override, because they are enforced outside the agents.

Rate limits and throttling

Every host has a request ceiling agreed in your scope. Agents back off automatically on errors, slow responses or rate-limit headers.

No destructive payloads

Payloads are checked against a deterministic blocklist before they are sent. Anything that could delete, overwrite or exhaust is refused.

Proof, not extraction

Injection is proven with timing or boolean differences. We stop at the first record that proves access and redact it in the evidence.

Fixed EU egress IPs

All test traffic leaves from a small, fixed set of EU addresses listed in your authorisation, so you can allowlist or monitor them.

Kill switch

You or we can stop every agent on your engagement at once. Traffic stops at the egress gateway, not only in the agents.

Full request log

Every request we send, with time, source IP and the agent's stated purpose, is available to you for the engagement.

What we never do

  • No denial of service, load testing or resource exhaustion.
  • No deleting, overwriting or corrupting your data.
  • No mass data extraction or bulk downloads.
  • No social engineering, phishing or contact with your staff or users.
  • No persistence: no backdoors, web shells or long-lived accounts.
  • No testing outside the signed scope, including your third parties.

How you stay in control

  • Test windows. Testing runs only inside the window you set, in your time zone.
  • Staging support. Point us at a staging or preview environment if you prefer. We note it in the report.
  • Your test accounts. We act only as the accounts you give us, and you can revoke them at any time.
  • Redacted evidence. Customer data in proofs is masked before it is stored or shown.
  • A named stop contact. Your contact can ask us to halt testing at any time, and we confirm when traffic has stopped.

Coverage matrix

What each report covers, mapped to the OWASP Web Security Testing Guide and the OWASP API Security Top 10 2023.

CategoryWhat we testFree reportDetailed report
WSTG 4.1 Information GatheringSubdomains, tech fingerprint, exposed files, JS routesPublic surface onlyFull, per role
WSTG 4.2 Configuration and DeploymentTLS, headers, CORS, admin interfaces, cloud storage exposurePassive checksActive, non-destructive
WSTG 4.3 Identity ManagementRegistration, account enumeration, role provisioningNot testedTested
WSTG 4.4 AuthenticationLogin, MFA bypass, password reset, lockoutNot testedTested
WSTG 4.5 AuthorizationIDOR, privilege escalation, path traversalNot testedMulti-role, multi-tenant
WSTG 4.6 Session ManagementCookies, JWT, fixation, CSRF, logoutCookie flags onlyTested
WSTG 4.7 Input ValidationSQLi, NoSQLi, SSTI, command injection, XSS, SSRF, XXENot testedTested with safe proofs
WSTG 4.8 Error HandlingStack traces, verbose errorsPassive checksTested
WSTG 4.9 Weak CryptographyTLS configuration, weak token signingTLS onlyTested
WSTG 4.10 Business LogicPrice, coupon and workflow abuse, limitsNot testedTested
WSTG 4.11 Client-sideDOM XSS, open redirects, clickjacking, postMessageClickjacking headersTested
WSTG 4.12 API TestingREST and GraphQL, introspection, batchingSchema exposureTested
API1:2023 Broken Object Level AuthorizationCross-user and cross-tenant object accessNot testedTested
API2:2023 Broken AuthenticationToken handling, reset flows, credential stuffing protectionNot testedTested
API3:2023 Broken Object Property Level AuthorizationMass assignment, excessive data exposureNot testedTested
API4:2023 Unrestricted Resource ConsumptionMissing rate limits, pagination limitsNot testedTested within rate ceiling, no load testing
API5:2023 Broken Function Level AuthorizationMember calling admin functionsNot testedTested
API6:2023 Unrestricted Access to Sensitive Business FlowsAutomatable flows such as sign-up, purchase, inviteNot testedTested
API7:2023 Server Side Request ForgeryWebhooks, URL fetchers, file importsNot testedTested with external callbacks
API8:2023 Security MisconfigurationCORS, headers, verbose errors, defaultsPartialTested
API9:2023 Improper Inventory ManagementOld API versions, undocumented hostsPublic surface onlyTested
API10:2023 Unsafe Consumption of APIsTrust in third-party API data you processNot testedWhere reachable in scope

Categories from OWASP WSTG v4.2 and the OWASP API Security Top 10 2023.

FAQ

Is it safe to run against production?

Yes, it is designed for production. Traffic is rate-limited, payloads are non-destructive and checked against a blocklist before they are sent, and proofs use timing or a single redacted record instead of extracting data. If your production data or side effects are sensitive, point us at staging instead.

What do you need from us?

Proof that you control the domain (a DNS TXT record or a file), a signed authorisation with your scope and test window, and for the detailed report, test accounts. Ideally two tenants with the roles that matter, such as member and admin.

Does the free report test anything actively?

No. The free report is a light pass over your public attack surface. It never logs in, never breaks in and sends no exploit payloads. It names a handful of issues without locations or proof.

Which AI models do you use?

Open-weight models hosted in the EU. We evaluate several model families against public benchmarks and our own lab apps, and route each kind of task to the one that performs best. Your data never trains any model.

How do you avoid false positives?

A finding exists only if a deterministic validator can replay the proof from a clean session. Anything we see but cannot prove is listed separately as a hardening observation, not as a vulnerability.

Can the agents go outside our scope?

No. Scope is enforced by a gateway that checks every outbound request against the signed scope before it leaves our network. Out-of-scope attempts are refused and appear in your request log.

Will our WAF or monitoring see the test?

Yes, and that is fine. All traffic comes from a fixed set of EU egress IPs listed in your authorisation. You can allowlist them for depth, or leave your defences on to see what they catch.

What standards does the methodology follow?

Phases follow PTES and NIST SP 800-115. Test categories follow the OWASP Web Security Testing Guide v4.2 and the OWASP API Security Top 10 2023. Findings are scored with CVSS 3.1 and mapped to CWE.

Is the AI report enough for an auditor?

For audits, insurers and enterprise questionnaires, choose the human sign-off: a senior pentester re-validates the findings, hand-tests the critical paths and signs an attestation letter.

15-minute call

Talk to our team

A 15-minute call about your app, your deadline and what your auditor, insurer or customer needs to see.