IntermediateWeb SecurityAppSecOffensive

Black Hat GraphQL

Attacking Next Generation APIs

4 / 5

Aleks and Farhi on attacking GraphQL specifically: introspection abuse, batching, depth and complexity attacks, auth flaws, and the differences from REST that make GraphQL pentests their own discipline.

Buy on Amazon

As an Amazon Associate we earn from qualifying purchases. The link above is sponsored.

Published
2023
Publisher
No Starch Press
Pages
320
Language
English

Read this if

Anyone whose bug bounty or pentest scope includes GraphQL — and who keeps finding nothing because they're using web-app methodology. Aleks and Farhi cover introspection abuse, batching attacks, depth/complexity DoS, auth flaws, and the way GraphQL flattens the typical web threat model.

Skip this if

Readers without GraphQL exposure in their work; the book is a specialization, not a general intro.

Key takeaways

  • Disabled introspection is not a security control; the book explains how to enumerate schemas without it and why that matters.
  • Batching and aliasing attacks let one HTTP request do many things; classic rate-limit defenses fail unless GraphQL-aware.
  • Depth and complexity attacks are the GraphQL equivalent of regex DoS, usually possible, often forgotten, sometimes catastrophic.

Notes

The only book in print on GraphQL security at this depth. Pair with Hacking APIs (Ball) for the broader API-attack frame and with Real-World Bug Hunting for the disclosure-style case studies. Subscribe to GraphQL-related public bug bounty disclosures alongside reading; the field moves quickly. If you see GraphQL on a program, this book is your edge.