Logo von Auditing Graphql Attack Surface

Auditing Graphql Attack Surface

Organisation
UnboundCompute
auditing-graphql-attack-surface

Audit the attack surface a GraphQL API exposes that a plain endpoint does not: schema introspection left open, unbounded query depth and recursion, aliasing and field duplication that multiply cost, query batching that defeats rate limits and enables brute force, field-level authorization that a resolver skips even when the object check passed, and mutations reached without the guard their action needs. Covers the query and variables as the source, the resolver and the data or work it triggers as the sink, and the missing depth, cost, batch, or field guard as the bug. Use when reviewing a GraphQL schema, its resolvers, or a gateway that fronts one. Introspection and cost limits are one audit; per-field and per-mutation authorization is the other.

Übersicht

HerausgeberUnboundCompute
Repositorysecurity-agent-skills
Skill-Nameauditing-graphql-attack-surface
Sterne
27
Forks
8
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von UnboundCompute auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Auditing Graphql Attack Surface in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-graphql-attack-surface
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-graphql-attack-surface .claude/skills/auditing-graphql-attack-surface
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Auditing Graphql Attack Surface in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Auditing Graphql Attack Surface automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Auditing Graphql Attack Surface nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Auditing GraphQL attack surface: the schema is the map, the resolver is the guard

A GraphQL API gives the client a query language over your data graph, and with it a set of failure modes a fixed endpoint never had. The client, not the server, decides the shape and depth of each request, so cost is client-controlled. The schema describes every type and field, so leaving introspection open hands an attacker the map. And authorization now lives per field and per resolver, so a check that held at the object level can be skipped one field deeper. Two audits sit here: the surface and cost audit (what the client can see and how expensive it can make a request), and the authorization audit (whether every field and mutation enforces the access its data needs).

When to use

  • You are reviewing a GraphQL schema, its resolvers, or a gateway that fronts one.
  • The client controls query shape, depth, aliasing, or batching.
  • Authorization is enforced in resolvers, per field or per mutation, not only at a route.

Scope check

Audit a GraphQL surface only in systems you own or are authorized to test, with accounts across roles and tenants and permission to send shaped and batched queries. If you can't name the authorization, stop.

The loop

  1. Recover the schema and the surface. Determine what the client can learn: is introspection enabled, do field suggestions leak type names on error, is there a published schema? Recover the types, fields, and mutations reachable. The schema is the attacker's map; if it is open, inventory it, and if it is closed, note whether errors still leak it piecemeal.

  2. Map query cost to the client. Trace how a query's shape drives work: nested and recursive selections that fan out, a relation that can be walked in a cycle, aliasing that requests the same expensive field many times in one query, and connection fields with no page bound. The client chooses depth and repetition, so the ceiling on cost is whatever the server does not cap.

  3. Check the depth, complexity, and rate limits. Is there a maximum query depth, a complexity or cost budget, a cap on aliases, and a page-size limit on lists? Absent any of these, a single crafted query is a denial-of-service, and batching or aliasing multiplies it. Confirm the limits exist and bind before the resolvers run.

  4. Check batching against rate and brute-force limits. Can one request carry many operations, or one query alias the same mutation dozens of times? If rate limiting counts requests rather than operations, batching defeats it, turning one request into a password-spray, coupon-brute-force, or enumeration engine. The unit the limit counts is the bug.

  5. Audit authorization per field and per mutation. For each sensitive field and every mutation, is there a resolver-level check that the caller may read that field or perform that action, or does authorization stop at the object or the route? A type whose object check passes can still expose a field (another user's email, an internal flag) whose resolver skips the check, and a mutation reached in a batch can skip a guard the primary path applied. The unguarded field or mutation is the bug.

  6. Confirm and record. Confirm a surface issue by recovering the schema or driving cost with a shaped query; confirm an authorization issue by reading a field or invoking a mutation you should not, across users or tenants. Kill the lead if introspection is closed, depth and cost and batch are bounded, and every field and mutation enforces its own authorization. Record with the exact query and the schema, cost, or data it exposed.

Where a GraphQL surface leaks

  • Introspection open in production is the map handed over. It is not a bug alone, but it turns every other weakness into a targeted one.
  • Cost is client-controlled unless you cap it. Depth, recursion, aliasing, and unpaged lists each multiply work; without a complexity budget one query is an outage.
  • Batching changes the unit the limit must count. Per-request rate limits are meaningless when one request carries a hundred operations. Count operations, not requests.
  • Authorization moved to the field. An object-level check does not cover a field resolver that fetches deeper; per-field and per-mutation checks are where horizontal access hides.
  • Errors leak the schema a closed introspection hid. Field suggestions and verbose type errors rebuild the map one message at a time.

Worked example (a confirm and a kill)

Confirm. Introspection is disabled, but the user type's email field resolver fetches the address with no check that the caller is that user or an admin. Querying user(id: <other>) { email } returns another user's email; aliasing the field across a batch dumps many at once. Confirmed field-level authorization gap with batch amplification, high, remediation = enforce per-field authorization in the email resolver and count batched operations against the rate limit.

Kill. Introspection is off in production and errors do not suggest fields; query depth, complexity, and alias count are bounded before resolvers run; lists are paged; the rate limiter counts operations, so batching gains nothing; every sensitive field and every mutation enforces its own caller check, verified across users and tenants. Shaped, batched, and cross-user queries all fail. Killed, kill_reason = "closed introspection, bounded depth/complexity/batch, operation-counted limits, per-field and per-mutation authorization."

Rationalizations to reject

  • "Introspection is off, the schema is secret." → Field suggestions and error messages leak it, and a determined client rebuilds it. Treat the schema as known and guard the resolvers.
  • "We rate-limit the endpoint." → Per request or per operation? Batching turns one request into many; the limit has to count operations.
  • "Authorization is handled at the route." → GraphQL has one route. The check has to live in the resolver, per field and per mutation.
  • "Nobody would write a query that deep." → The client writes the query. Depth and cost are yours to cap, not theirs to spare.
  • "It is only a read." → A read of a field the caller may not see is a data-exposure bug, and aliasing makes it a bulk one.

Executing this in practice

You need the schema (recovered or provided), the resolver map from each field and mutation to the data or work it triggers, the server's depth/complexity/alias/page and rate limits, and accounts across roles and tenants to test field and mutation access. A view that traces a query field to its resolver and the data access beneath it, and flags which resolvers apply an authorization check and which do not, turns the authorization half into a coverage pass; the surface-and-cost half is the schema recovery and the shaped-query test.

Related

  • mapping-attack-surface - the general recon this specializes for a GraphQL schema and its resolvers.
  • hunting-broken-object-level-authorization - the object-reference bug, here reached through a query argument instead of a path id.
  • hunting-mass-assignment-and-property-authz - the mutation-input analog: which fields a mutation lets the client write.
  • hunting-business-logic-flaws - batching and replay as an abuse of permitted operations at scale.
  • FINDING-SCHEMA.md - source = the query and variables, sink = the resolver and the data or work it triggers, evidence = the schema, cost, or field exposed.

Häufig gestellte Fragen

Was macht der KI-Skill Auditing Graphql Attack Surface?

Audit the attack surface a GraphQL API exposes that a plain endpoint does not: schema introspection left open, unbounded query depth and recursion, aliasing and field duplication that multiply cost, query batching that defeats rate limits and enables brute force, field-level authorization that a resolver skips even when the object check passed, and mutations reached without the guard their action needs. Covers the query and variables as the source, the resolver and the data or work it triggers as the sink, and the missing depth, cost, batch, or field guard as the bug. Use when reviewing a G...

Warum Auditing Graphql Attack Surface in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Auditing Graphql Attack Surface besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Auditing Graphql Attack Surface in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-graphql-attack-surface ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Auditing Graphql Attack Surface nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Auditing Graphql Attack Surface verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Auditing Graphql Attack Surface damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Auditing Graphql Attack Surface kostenlos?

Ja. Der Skill wird von UnboundCompute auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇