Skip to content

Commit

Permalink
switch to threat matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf committed May 8, 2022
1 parent 1538872 commit a0f7315
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 444 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

# How does it work?
graphw00f (inspired by [wafw00f](https://github.com/EnableSecurity/wafw00f)) is the GraphQL fingerprinting tool for GQL endpoints, it sends a mix of benign and malformed queries to determine the GraphQL engine running behind the scenes.
graphw00f will provide insights into what security defences each technology provides out of the box, and whether they are on or off by default.
graphw00f will make use of the GraphQL Threat Matrix project to provide insight into what security defences each technology provides out of the box, and whether they are on or off by default.

Specially crafted queries cause different GraphQL server implementations to respond uniquely to queries, mutations and subscriptions, this makes it trivial to fingerprint the backend engine and distinguish between the various GraphQL implementations. (CWE: [CWE-200](https://cwe.mitre.org/data/definitions/200.html))

Expand Down Expand Up @@ -58,13 +58,9 @@ graphw00f currently attempts to discover the following GraphQL engines:
* Agoo - Ruby

# GraphQL Technologies Defence Matrices
Each fingerprinted technology (e.g. Graphene, Ariadne, ...) has an associated document ([example for graphene](https://github.com/dolevf/graphw00f/blob/main/docs/graphene.md)) which covers the security defence mechanisms the specific technology supports to give a better idea how the implementation may be attacked.
The graphw00f project uses the GraphQL Threat Matrix project as its technology security matrix database. When graphw00f successfully fingerprints a GraphQL endpoint, it will print out the threat matrix document. This document helps security engineers to identify how mature the technology is, what security features it offers, and whether it contains CVEs.

```
| Field Suggestions | Query Depth Limit | Query Cost Analysis | Automatic Persisted Queries | Introspection | Debug Mode | Batch Requests |
|-------------------|-------------------|---------------------|-----------------------------|--------------------|------------|-----------------|
| On by Default | No Support | No Support | No Support | Enabled by Default | N/A | Off by Default |
```
![GraphQL Threat Matrix](/static/threat-matrix.png?raw=true "GraphQL Threat Matrix")

# Prerequisites
* python3
Expand Down Expand Up @@ -154,15 +150,15 @@ python3 main.py -f -d -t http://localhost:5000
| Node Z |
+------------+
graphw00f - v1.0.4
graphw00f - v1.1.2
The fingerprinting tool for GraphQL
Dolev Farhi <[email protected]>
[*] Checking http://dvga.example.local:5000/graphql
[!] Found GraphQL at http://dvga.example.local:5000/graphql
[*] Attempting to fingerprint...
[*] Discovered GraphQL Engine: (Graphene)
[!] Attack Surface Matrix: https://github.com/dolevf/graphw00f/blob/main/docs/graphene.md
[!] Attack Surface Matrix: https://github.com/nicholasaleks/graphql-threat-matrix/blob/master/implementations/graphene.md
[!] Technologies: Python
[!] Homepage: https://graphene-python.org
[*] Completed.
Expand Down
17 changes: 0 additions & 17 deletions docs/agoo.md

This file was deleted.

18 changes: 0 additions & 18 deletions docs/apollo.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/ariadne.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/dgraph.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/dianajl.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/directus.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/flutter.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/gqlgen.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/graphene.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/graphql-go.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/graphql-java.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/graphql-php.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/graphql-yoga.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/graphqlapiforwp.md

This file was deleted.

19 changes: 0 additions & 19 deletions docs/hasura.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/hypergraphql.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/juniper.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/lighthouse.md

This file was deleted.

Loading

0 comments on commit a0f7315

Please sign in to comment.