Guides
AI pentesting, in practice.
How to test web apps and APIs with autonomous agents — for free, on your own infrastructure, or managed — and what each vulnerability, stack and compliance framework actually needs.
Free, open-source and AI pentesting
Free tooling, honestlyFree pentest tools: what you get, and what you still have to doA practical guide to free pentest tools: scanners, proxies, exploitation helpers and autonomous agents, what each covers, and the hidden costs of free.Getting tested for freeFree penetration testing: the realistic ways to get oneCan you get a penetration test for free? The realistic routes: run one yourself, use open-source autonomous tools, and how to spot a 'free pentest' upsell.Open by designOpen-source pentesting: auditability, control and the trade-offsWhy security teams choose open-source pentesting: auditable code, self-hosting and no lock-in, plus the licence, maintenance and support trade-offs to plan for.The open toolkitOpen-source penetration testing tools, organised by phaseOpen-source penetration testing tools grouped by phase: recon, content discovery, web and API exploitation, secrets, and AI agents that orchestrate the rest.Your infrastructureSelf-hosted pentesting: keeping targets, traffic and findings in-houseHow self-hosted pentesting works: why teams keep testing on their own infrastructure, what you need to run it, where to place it, and who owns the upkeep.Private modelsLocal LLM pentesting: AI-driven testing with no data leaving the machineHow local LLM pentesting works, which models suit it, the hardware and quality trade-offs, and how to run an autonomous pentester on Ollama or LM Studio.Step-by-step setupOllama pentesting: a step-by-step setup for a local AI pentesterSet up Ollama pentesting step by step: pick a tool-calling model, tune context length, and run an autonomous pentester against a lab with no API key or cost.Isolated networksAir-gapped pentesting: running an AI pentester with no internetHow to run AI-assisted air-gapped pentesting: what to pre-stage, which features need connectivity, out-of-band checks, and moving reports out.Agents at workAutonomous pentesting: what it is, how it works and where it failsAutonomous pentesting explained: how AI agents plan, exploit and verify without a human at each step, where they work, where they fail, and the guardrails.Automation spectrumAutomated penetration testing: what to automate and what to leave to peopleAutomated penetration testing ranges from scheduled scripts to adaptive AI agents. What each level automates well, and how to split work with human testers.Evaluation checklistChoosing an AI pentest tool: an evaluation checklistHow to evaluate an AI pentest tool: proof of exploitation, how findings are verified, scope controls, model and data handling, reporting and cost control.Buyer's guideAI penetration testing software: deployment, licensing and total costA buyer's guide to AI penetration testing software: SaaS vs self-hosted vs managed, licence models, integrations, team fit and the full cost of ownership.Always-on testingContinuous pentesting: how to test as often as you shipWhat continuous pentesting means in practice: cadence and triggers, change-based retesting, managing noise, and running it self-hosted or as a managed service.Beyond PTaaSPTaaS alternatives: when pentest-as-a-service is not the right fitLooking for a PTaaS alternative? Compare self-hosted autonomous testing, managed AI pentesting, traditional consultancies and bug bounty, with when each suits.Pipeline securityRunning a pentest in CI/CD without slowing every buildHow to add pentesting to a CI/CD pipeline: where it belongs, time budgets, severity gates, secrets and scope, plus source-side checks that complement it.Workflow walkthroughRunning a pentest in GitHub Actions, step by stepSet up a pentest in GitHub Actions: a scheduled workflow, secrets and permissions, severity gating, and uploading SARIF so findings appear in Code Scanning.Shift-left offenceDevSecOps pentesting: putting offensive testing inside the delivery loopHow DevSecOps teams fit pentesting into the delivery lifecycle: what to run at each stage, who owns findings, feedback loops, and metrics that show progress.Budgeting a pentestPenetration testing cost: what drives the price and how to budgetWhat drives penetration testing cost: scope, test type, complexity, tester time, retests and reporting, and how self-hosted and managed AI options change it.Small-budget testingAffordable penetration testing: getting real assurance on a small budgetHow to make penetration testing affordable without buying a rebranded scan: prepare well, scope tightly, automate breadth, and pay humans only for depth.Know the differencePentest vs vulnerability scan: what each one provesPentest vs vulnerability scan: a scan lists possible weaknesses by signature, a pentest exploits and chains them to prove impact. When you need each, and why.Scanner or agentAI pentesting vs DAST: rules-based scanning versus reasoning agentsAI pentesting vs DAST compared: how each finds bugs, why DAST misses access-control flaws, where DAST is still better, and how to run the two together.Crowd or agentAI pentesting vs bug bounty: coverage, cost and control comparedAI pentesting vs bug bounty compared: crowd creativity versus on-demand coverage, pay-per-bug versus fixed cost, triage load, and why order matters.Landscape mapAI hacking tools: what exists, what each kind does, and the risksA map of AI hacking tools for authorised security testing: chat assistants, MCP tool bridges, autonomous agents and offensive frameworks, with their risks.Under the hoodHow an LLM pentesting agent works, and where it goes wrongInside an LLM pentesting agent: the tool-calling loop, memory and coordination, verification, and the failure modes (hallucination, loops, prompt injection).Claude as the enginePentesting with Claude: models, harnesses and responsible useHow to use Claude for pentesting: chat versus agent harnesses, setting it up in an autonomous pentester, cost control, data handling and Anthropic's policy.Open-weight optionPentesting with DeepSeek: hosted, API and local optionsHow to use DeepSeek models for pentesting: hosted via Together AI, through an OpenAI-compatible API, or locally with Ollama, plus tool-calling and data checks.MethodologyHow to pentest a web application, step by stepHow to pentest a web app: scoping and authorisation, mapping, authentication and sessions, access control, input handling, business logic and reporting.API methodologyHow to pentest an API: a practical method for REST and GraphQLHow to pentest an API: build an inventory, set up multi-role test users, then test object and function authorisation, auth, mass assignment, SSRF and GraphQL.Be preparedYour first pentest: a checklist for before, during and afterA first pentest checklist for teams commissioning or running their first test: goals, scope, authorisation, environments, accounts, communication and retesting.Safe practice targetsPentest lab practice with crAPI, Juice Shop, VAmPI and DVGAPractise pentesting safely on crAPI, OWASP Juice Shop, VAmPI and DVGA: what each lab teaches, how to run them, and a practice plan from manual to automated.
What to test
Web app securityWeb application pentestingWhat web application pentesting covers, how testers find and prove flaws like BOLA, injection and SSRF, and where an open-source AI pentester fits in.API securityAPI pentestingAPI pentesting explained: mapping endpoints, testing BOLA, broken authentication and mass assignment, and proving each finding against the OWASP API Top 10.REST APIsREST API pentestingHow to pentest a REST API: verb tampering, object IDs, versioned routes, JSON body abuse and how to prove BOLA and mass assignment with request pairs.GraphQL securityGraphQL pentestingGraphQL pentesting covers introspection, resolver-level authorisation, injection through arguments, batching and query depth. How to test and prove each.Multi-tenant SaaSSaaS application pentestingSaaS pentesting focuses on tenant isolation, role-based access, integrations and APIs. What to test, how to prove cross-tenant access, and how often to retest.External exposureExternal attack surface testingExternal attack surface testing discovers internet-facing hosts and services, then proves which are exploitable. How it differs from ASM and scanning.Assumed breachInternal network pentestingInternal network pentesting assumes an attacker is already inside and proves how far they can move. Scope, Active Directory paths, evidence and remediation.Cloud-hosted appsCloud application pentestingCloud application pentesting tests the app and the cloud around it: SSRF to metadata, IAM over-permission, exposed storage and Kubernetes. How it is proven.Distributed systemsMicroservices pentestingMicroservices pentesting tests the gateway, the trust between services and each internal API. Common flaws, how to prove them and how to fix them.AI app securityLLM application pentestingLLM application pentesting tests chatbots and agents for prompt injection, data leakage and unsafe tool use: what to test, what counts as proof.Mobile APIsMobile backend API pentestingMobile backend API pentesting tests the servers a mobile app talks to, where most serious mobile flaws live. Setup, common findings, proof and what it omits.React, Vue, AngularSingle-page application pentestingHow to pentest a single-page application: client-side routing, DOM XSS, token storage, JavaScript bundles and, above all, the API the SPA calls.
Vulnerability classes
Access controlIDOR testingIDOR testing checks whether changing an ID in a request exposes another user's data. CWE-639, OWASP A01:2021, how to prove it with a control request, and fixes.OWASP API1:2023BOLA testingBOLA testing proves whether an API returns objects the caller does not own. OWASP API1:2023, CWE-639, discovery at API scale, differential proof and fixes.Identity flawsBroken authentication testingBroken authentication testing covers login, session, token and password-reset flaws. CWE-287, OWASP A07:2021 and API2:2023, what proof looks like and fixes.Token securityJWT vulnerability testingJWT vulnerability testing checks signature verification, algorithm confusion, weak keys, header injection and claim handling. CWE-347, A07 and API2, with fixes.OAuth and OIDCOAuth misconfiguration testingOAuth misconfiguration testing checks redirect_uri validation, state and PKCE, token leakage and account linking. CWE mapping, OWASP A07, proof and fixes.InjectionSQL injection testingSQL injection testing finds input that changes database queries. CWE-89, OWASP A03:2021, error, union, boolean and time-based detection, proof and fixes.Cross-site scriptingXSS testingXSS testing finds input that runs as script in other users' browsers. CWE-79, OWASP A03:2021, reflected, stored and DOM variants, proof of execution and fixes.Server-side requestsSSRF testingSSRF testing finds features that make the server fetch attacker-chosen URLs. CWE-918, OWASP A10:2021 and API7:2023, out-of-band proof, cloud impact and fixes.OS command injectionCommand injection testingCommand injection testing checks whether input reaches a system shell. CWE-78, OWASP A03:2021, blind detection with callbacks and timing, proof and fixes.Directory traversalPath traversal testingPath traversal testing checks whether file parameters can escape their directory. CWE-22, OWASP A01:2021, encoding tricks, differential proof and fixes.XML parsingXXE testingXXE testing checks whether XML parsers resolve attacker-defined external entities. CWE-611, OWASP A05:2021, blind out-of-band detection, proof and fixes.Request forgeryCSRF testingCSRF testing checks whether another site can make a logged-in user's browser perform actions. CWE-352, OWASP A01:2021, SameSite, tokens, proof and fixes.Cross-origin policyCORS misconfiguration testingCORS misconfiguration testing checks whether untrusted origins can read authenticated responses. CWE-942, OWASP A05:2021 and API8:2023, proof and safe config.OWASP API3:2023Mass assignment testingMass assignment testing checks whether APIs accept fields clients should not set, like role or balance. CWE-915, OWASP API3:2023, differential proof and fixes.Workflow abuseBusiness logic vulnerability testingBusiness logic testing finds flaws in how an app's rules and workflows can be abused. CWE-840, OWASP A04:2021 and API6:2023, how to test, prove and fix.Concurrency flawsRace condition testingRace condition testing sends parallel requests to exploit check-then-act gaps, like redeeming one coupon twice. CWE-362, OWASP A04:2021, proof and fixes.OWASP API4:2023Rate limiting testingRate limiting testing checks whether APIs bound requests, resources and login attempts. CWE-770 and CWE-307, OWASP API4:2023 and A07:2021, proof and fixes.Unvalidated redirectsOpen redirect testingOpen redirect testing checks whether redirect parameters send users to attacker sites. CWE-601, OWASP A01:2021, Location-header proof, chained impact and fixes.Object injectionInsecure deserialization testingInsecure deserialization testing finds apps that deserialize untrusted data, risking remote code execution. CWE-502, OWASP A08:2021, detection, proof and fixes.Dangling DNSSubdomain takeover testingSubdomain takeover testing finds DNS records pointing at deprovisioned cloud resources an attacker could claim. Classification, detection, safe proof and fixes.
By tech stack
Stack guide: Next.jsNext.js security testing: where Next.js apps actually breakNext.js security testing for middleware auth bypass, server actions, route handlers and image optimisation, plus how to test a running app black-box.Stack guide: ReactReact SPA security testingReact SPA security testing focuses on the API behind the app: client-side-only checks, leaked keys in bundles, DOM XSS sinks and token storage choices.Stack guide: ExpressNode.js and Express penetration testingNode.js Express pentesting guide: NoSQL injection, prototype pollution, missing auth middleware, eval-style injection and JWT mistakes, tested over HTTP.Stack guide: NestJSNestJS security testingNestJS security testing: check guards on every controller, ValidationPipe whitelisting for mass assignment, exposed Swagger docs and devtools in production.Stack guide: DjangoDjango penetration testingDjango penetration testing guide: DEBUG=True leaks, raw() and extra() SQL injection, the _connector CVE, DRF permission gaps and exposed admin, tested live.Stack guide: FlaskFlask security testingFlask security testing covers the Werkzeug debugger console, Jinja2 template injection, signed-cookie sessions with weak keys and missing auth on routes.Stack guide: FastAPIFastAPI security testingFastAPI security testing: missing Depends() auth on routes, response models that overshare, Pydantic mass assignment and public /docs. How to test it live.Stack guide: RailsRuby on Rails penetration testingRails penetration testing guide: strong parameters and mass assignment, scoped finds and IDOR, unsafe raw SQL, secret_key_base exposure and open redirects.Stack guide: LaravelLaravel penetration testingLaravel penetration testing: exposed .env and APP_KEY, APP_DEBUG and Ignition RCE (CVE-2021-3129), $fillable mass assignment and Telescope or Horizon exposure.Stack guide: PHPPHP application penetration testingPHP application pentesting: file inclusion, unserialize() object injection, type juggling, file upload RCE, PHP-CGI (CVE-2024-4577) and exposed phpinfo.Stack guide: WordPressWordPress penetration testingWordPress penetration testing: vulnerable plugins and themes, user enumeration via the REST API, xmlrpc.php abuse, exposed backups and admin access controls.Stack guide: SpringSpring Boot penetration testingSpring Boot penetration testing: exposed Actuator endpoints and heapdumps, Spring Security matcher gaps, SpEL and JNDI injection, Spring4Shell and Log4Shell.Stack guide: .NETASP.NET Core security testingASP.NET Core security testing: missing [Authorize] attributes, over-posting, the Kestrel request smuggling CVE-2025-55315, Swagger exposure and error leaks.Stack guide: GoGo API security testingGo API security testing: handler auth middleware gaps, SSRF in fetchers, string-built SQL, JSON decoding quirks, timeouts and pprof exposure, tested over HTTP.Stack guide: SupabaseSupabase security testingSupabase security testing: tables with Row Level Security off, weak policies, service_role key leaks, SECURITY DEFINER functions and open storage buckets.Stack guide: FirebaseFirebase security testingFirebase security testing: open Firestore and Realtime Database rules, test-mode rules left live, public Storage buckets and unauthenticated Cloud Functions.Stack guide: AWSAWS API Gateway security testingAWS API Gateway security testing: routes with no authoriser, Lambda authoriser caching mistakes, API keys used as auth, direct execute-api access and CORS.Stack guide: ApolloApollo GraphQL security testingApollo GraphQL security testing: field-level authorisation in resolvers, introspection, alias and batching abuse, query cost limits and direct subgraph access.Stack guide: HasuraHasura security testingHasura security testing: admin secret exposure, unauthorised-role permissions, row and column rules, session variable trust, console and remote schemas.Stack guide: StrapiStrapi security testingStrapi security testing: Public role permissions, populate exposing private relations, user registration flaws, admin panel exposure and Strapi CVEs like SSTI.Stack guide: ShopifyShopify app security testingShopify app security testing: OAuth install flow and shop validation, session tokens, webhook and app proxy HMAC checks, and isolation between merchant stores.Vibe codingSecurity testing for vibe-coded appsVibe-coded app security testing: how to find open databases, client-side auth, leaked keys and missing access checks in AI-built apps without reading the code.AI-assisted devPentesting applications built with AI-generated codeAI-generated code pentesting for teams using coding assistants: which flaws slip through review, why runtime testing matters and how to test every release.Stack guide: LovableSecurity testing for Lovable appsLovable app security testing: check Supabase RLS, exposed keys, edge functions and cross-user access in your Lovable project before and after you publish it.Stack guide: BoltSecurity testing for apps built with BoltBolt app security testing: find leaked keys in Vite builds, open database rules, unauthenticated server routes and cross-user access in Bolt.new apps.Low-code platformsSecurity testing for low-code and no-code appsLow-code app security testing: privacy rules, auto-generated data APIs, public portals and workflow endpoints in Bubble, Power Apps and similar platforms.Stack guide: KubernetesKubernetes ingress security testingKubernetes ingress testing: exposed internal services, host and path routing mistakes, auth annotations, IngressNightmare and the ingress-nginx retirement.Serverless APIsServerless API security testingServerless API security testing: public function URLs, per-function auth gaps, SSRF to credentials, event injection and denial-of-wallet on Lambda and edge.
Compliance
SOC 2 evidenceSOC 2 penetration testing: what the criteria say and what auditors expectSOC 2 does not name a mandatory pentest, but auditors often expect one as evidence for CC4.1 and CC7.1. What to test, how often, and where AI testing fits.ISO/IEC 27001:2022ISO 27001 penetration testing under the 2022 Annex A controlsISO/IEC 27001:2022 does not mandate a pentest, but Annex A 8.8 and 8.29 make security testing the usual evidence. How to scope it and what certifiers look for.PCI DSS v4.0.1PCI DSS penetration testing: what requirement 11.4 asks forPCI DSS v4.0.1 requirement 11.4 needs internal and external pentests yearly and after significant change, plus segmentation tests. Who may test, what to cover.HIPAA Security RuleHIPAA penetration testing: what the Security Rule requires todayThe HIPAA Security Rule does not name a pentest today; the January 2025 proposal would require one yearly. Status as of November 2026 and how to plan testing.EU DORADORA penetration testing: the testing programme and TLPTDORA requires EU financial entities to test ICT systems yearly and some to run threat-led penetration tests every three years. Who needs TLPT and who can test.EU NIS2 DirectiveNIS2 penetration testing: what Article 21 and the implementing rules requireNIS2 Article 21 requires risk-based security testing; Implementing Regulation 2024/2690 adds a testing policy for digital providers. Where pentesting fits.GDPR Article 32GDPR security testing: meeting Article 32's 'regularly testing' dutyGDPR Article 32(1)(d) requires a process for regularly testing security measures. What that means for pentesting apps that handle personal data.FedRAMPFedRAMP penetration testing: who tests, how often, and what is coveredFedRAMP requires a 3PAO-led pentest before authorisation and at least every 12 months after, across mandatory attack vectors. How to prepare and where AI fits.HITRUST CSFHITRUST penetration testing: how it fits e1, i1 and r2Whether a HITRUST assessment needs a pentest depends on its type and your scoping factors. What we know about e1, i1 and r2, and how to prepare evidence.Underwriting evidencePenetration testing for cyber insurance: what underwriters want to seeNo standard cyber insurance pentest rule exists; it comes from each insurer's form. What underwriters commonly ask and how to answer with real evidence.
By industry
Payments and bankingFintech penetration testing: APIs, money movement and regulatorsFintech penetration testing focuses on APIs, authorisation and money-movement logic, under PCI DSS, DORA and partner-bank scrutiny. What to test and how often.Health techHealthcare application pentesting: portals, FHIR APIs and integrationsHealthcare application pentesting targets patient portals, telehealth and FHIR APIs where one access-control bug can expose many records. What to test and how.B2B SaaSSaaS startup security testing that survives enterprise reviewsSaaS startup security testing means multi-tenant isolation, auth and APIs, plus the evidence enterprise buyers ask for in questionnaires and SOC 2 audits.Online retailEcommerce penetration testing for checkouts, carts and storefront APIsEcommerce penetration testing covers checkout logic, payment pages, storefront APIs and third-party plugins, with PCI DSS in mind. What attackers target.Education technologyEdTech security testing: protecting student data and learning platformsEdTech security testing focuses on student data, role-based access, LMS integrations and APIs that schools depend on. What to test and how to show schools.Off-chain securityWeb3 application pentesting beyond the smart contract auditWeb3 application pentesting tests the dApp front end, indexers, APIs, signing flows and admin panels that a smart-contract audit does not cover. What to test.Government and councilsPublic sector application testing that stays inside your boundaryPublic sector application testing must be auditable and often self-hosted. How to test citizen-facing services and APIs within procurement and data rules.Insurers and MGAsInsurance application pentesting for policy, claims and broker systemsInsurance application pentesting covers policyholder portals, claims and quote APIs and broker integrations, where personal and financial data meet.
Who it's for
Early-stage teamsPentesting for startups: a practical plan from first launch to first auditPentesting for startups, stage by stage: free automated testing early, independent tests when customers or auditors ask, and how to avoid wasting your budget.Small and mid-sizedPentesting for small and mid-sized businesses on a realistic budgetPentesting for SMBs without a security team: what to prioritise, how often to test, what affordable options exist and when to bring in an independent tester.Large organisationsEnterprise AI pentesting with the controls security leaders needEnterprise AI pentesting needs scope control, audit trails, model choice and data residency. How to evaluate autonomous pentesting for a large estate.Managed securityAI pentesting for MSSPs and managed service providersAI pentesting lets MSSPs offer continuous web and API testing across many clients with strict per-client scope and audit trails. How to build it into a service.Bug bountyAI tools for bug bounty hunters that respect programme scopeHow bug bounty hunters use AI tools for recon, triage and proof-of-concept writing without breaking programme rules, and where autonomous agents help.Testing firmsAI tools for pentest consultancies: automate breadth, keep the expertiseHow pentest consultancies use AI tools to cover more surface per engagement, verify findings faster and offer continuous testing, without losing quality.Adversary emulationAI for red teams: speeding up the application layer of an operationRed teams use AI for recon, web and API exploitation and tooling while humans run the operation. What autonomous agents do well, poorly, and safely.Capture the flagAI CTF solver: what autonomous agents can solve and how to use oneAn AI CTF solver uses agents to attempt capture-the-flag challenges, strongest on web categories. What works, competition rules, and using one to learn.Students and learnersLearn pentesting with AI without skipping the fundamentalsLearn pentesting with AI by watching agents attack legal practice labs, then reproducing each step yourself. A study path, safe labs and the habits that matter.Shift leftSecurity testing for developers, built into how you already shipSecurity testing for developers: what to automate in CI, how to test your own APIs for access-control bugs, and when to hand off to a dedicated pentest.