-

WG Day:

Menlo Park, California
Back to Schedule

Ravi Sastry Kadali

GraphQLShield: CWE-Aware Defense in Depth for GraphQL APIs in Go

Transbay Tube
Security

Session description

GraphQL APIs face a unique threat landscape: deeply nested queries cause resource exhaustion, introspection exposes entire schemas, and mutation variables carry injection payloads past traditional WAFs. Yet most Go-based GraphQL servers ship with zero security middleware between HTTP and resolver execution. I introduce GraphQLShield, an open-source Go middleware bringing defense-in-depth to GraphQL APIs through three layers: (1) Static schema analysis detecting cyclic types, missing depth limits, and sensitive field exposure before deployment; (2) Runtime CWE-aware input sanitization catching SQL injection, XSS, command injection, path traversal, and NoSQL injection in GraphQL variables — bridging go-safeinput’s MITRE CWE Top 25 coverage to GraphQL; and (3) Resolver code auditing inspired by gosec and cryptoguard-go flagging insecure crypto, hardcoded secrets, and missing auth checks. A quick demo shows GraphQLShield intercepting 7 attack vectors against a gqlgen API, from SQL injection in mutation variables to depth-based DoS, while legitimate requests pass cleanly. Attendees leave with a zero-dependency Go library covering 14 CWE vulnerability classes across static and runtime analysis.


Session speakers

Ravi Sastry Kadali

Engineering Leader | Go Ecosystem Contributor | Security Tooling Author

Ravi Sastry Kadali is a Tech Lead, Staff Engineer at Samsung with two decades of security expertise. He built platform integrity systems at Meta protecting 3B+ users, delivered Windows releases at Microsoft, and developed intrusion detection systems for India's Defense R&D Org. An active open-source contributor to Kubernetes, etcd, gosec, gqlgen, he created the go-safeinput and cryptoguard-go libraries. Kadali is an IEEE Senior Member with awards for Outstanding Achievement in Cybersecurity.

Get your ticket

Join two transformative days of expert insights and innovation to shape the next decade of APIs!

Get tickets
COMMUNITYDEVELOPER EXPERIENCEAPIsTOOLS & LIBRARIESCOMMUNITYDEVELOPER EXPERIENCEAPIsTOOLS & LIBRARIES
OPEN SOURCEFEDERATIONECOSYSTEMSTRACING & OBSERVABILITYOPEN SOURCEFEDERATIONECOSYSTEMSTRACING & OBSERVABILITY
BEST PRACTICESWORKSHOPSSCHEMASSECURITYBEST PRACTICESWORKSHOPSSCHEMASSECURITY