Socket
Socket
Sign inDemoInstall

graphdna

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    graphdna

Fast and powerful GraphQL engine fingerprinting tool


Maintainers
1

Readme

GraphDNA PyPI CI CD

GraphDNA is a tool that uses multiple heuristics to fingerprint GraphQL endpoints.

Banner

PyPI - Python Version PyPI - Downloads

Getting Started

It takes only two simple steps to fingerprint an endpoint using GraphDNA.

pip install graphdna
graphdna -u https://example.com/graphql

Banner

Options

GraphDNA supports the following options:

graphdna \ 
# Url to fingerprint
--url/-u https://example.com/graphql \
# Header (chainable)
--header/-H "Authorization: Bearer token"

Supported engines

NameSupportedNameSupportedNameSupported
AgooApolloAriadne
AWS AppSyncCalibanDGraph
DianajlDirectusFlutter
GQLGenGrapheneGraphQLApiForWp
GraphQL-Gogopher/GraphQL-GoGraphQL-Java
GraphQL-PHPGraphQL YogaHasura
HyperGraphQLJaalJuniper
LaciniaLighthouseMercurius
MorpheusGraphQLGraphQL RubySangria
ShopifyStepzenStrawberry
TartifletteWPGraphQL

Environment Variables

Logger - No effect if you pass your own logger

NameValuesDefaultBehavior
LOG_FORMATconsole, jsonconsoleChange the log format accordingly
DEBUGTrue, FalseFalseEnable debug logging

Integration

import logging
from typing import Dict, Optional

from graphdna import detect_engine, detect_engine_async
from graphdna.entities import GraphQLEngine

def detect_engine(
    url: str,
    headers: Optional[Dict[str, str]] = None,
    logger: Optional[logging.Logger] = None,
) -> Optional[GraphQLEngine]:
    ...


async def detect_engine_async(
    url: str,
    headers: Optional[Dict[str, str]] = None,
    logger: Optional[logging.Logger] = None,
) -> Optional[GraphQLEngine]:
    ...

Local installation

git clone git@github.com:Escape-Technologies/graphdna.git
cd graphdna
chmod +x ./install-dev.sh
./install-dev.sh

Credits

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License PyPI - License

MIT

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc