Skip to content

Add graphql introspection module - #2515

Merged
TheTechromancer merged 8 commits into
blacklanternsecurity:devfrom
mukesh-dream11:feat/graphql-introspection
Jul 24, 2025
Merged

Add graphql introspection module#2515
TheTechromancer merged 8 commits into
blacklanternsecurity:devfrom
mukesh-dream11:feat/graphql-introspection

Conversation

@mukesh-dream11

Copy link
Copy Markdown
Contributor

This module probes for GraphQL endpoints, and attempts to extract schemas if found. The module itself is just a starting point, there can be further improvements added such as authentication and unit tests for this module.

@TheTechromancer

Copy link
Copy Markdown
Contributor

@mukesh-dream11 thanks for the PR

@liquidsec this might be useful for lightfuzz

Also relevant: #766

@codecov

codecov Bot commented Jul 3, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 98.30508% with 1 line in your changes missing coverage. Please review.

Project coverage is 93%. Comparing base (a4201ba) to head (e984b37).
Report is 21 commits behind head on dev.

Files with missing lines Patch % Lines
bbot/modules/graphql_introspection.py 98% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #2515   +/-   ##
=====================================
+ Coverage     93%     93%   +1%     
=====================================
  Files        400     402    +2     
  Lines      33202   33261   +59     
=====================================
+ Hits       30693   30753   +60     
+ Misses      2509    2508    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mukesh-dream11

Copy link
Copy Markdown
Contributor Author

@TheTechromancer I've added unit tests and the web-basic flag to this module. Feel free to change flags if you believe this fits better under a different category. I believe web-basic is appropriate because this module is designed to send a maximum of 3 requests to any given root URL (sub-URLs are ignored for now).

I'm done with this PR, so I'm handing this off for review. :)

@TheTechromancer

Copy link
Copy Markdown
Contributor

Thanks @mukesh-dream11, solid module. I made a couple small tweaks -- one to help dedupe incoming URLs, and another rename the .json file instead of creating a separate output dir for each. Let me know if these are okay.

@mukesh-dream11

Copy link
Copy Markdown
Contributor Author

Yeah @TheTechromancer this is solid.

@ausmaster
ausmaster self-requested a review July 24, 2025 20:56

@ausmaster ausmaster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!

@TheTechromancer
TheTechromancer merged commit 460b0e6 into blacklanternsecurity:dev Jul 24, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants