Skip to content

JS: debugging queries #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 16, 2025
Merged

JS: debugging queries #115

merged 2 commits into from
Apr 16, 2025

Conversation

GeekMasher
Copy link
Contributor

@GeekMasher GeekMasher commented Apr 15, 2025

This pull request introduces a debugging framework for JavaScript/TypeScript in GitHub's CodeQL by adding utility classes and predicates for identifying sources and sinks, as well as creating debugging queries and a suite configuration. The changes are primarily focused on enhancing debugging capabilities and organizing threat modeling for data flow analysis.

Additions to Utilities and Core Framework:

  • javascript/lib/ghsl/Utils.qll: Introduced utility predicates and classes, including filterByLocation, AllSources, AllSinks, and their respective subtypes (RemoteSources, LocalSources, etc.), to support threat modeling and debugging.

Source and Sink Definitions:

Debugging Suite Configuration:

Minor Import Adjustment:

@GeekMasher GeekMasher changed the title Js/debugging queries JS: debugging queries Apr 15, 2025
@GeekMasher GeekMasher marked this pull request as ready for review April 16, 2025 17:06
@Copilot Copilot AI review requested due to automatic review settings April 16, 2025 17:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (5)
  • javascript/lib/ghsl.qll: Language not supported
  • javascript/lib/ghsl/Utils.qll: Language not supported
  • javascript/src/debugging/Sinks.ql: Language not supported
  • javascript/src/debugging/Sources.ql: Language not supported
  • javascript/src/suites/javascript-debugging.qls: Language not supported

@GeekMasher GeekMasher merged commit 09ad708 into main Apr 16, 2025
15 checks passed
@GeekMasher GeekMasher deleted the js/debugging-queries branch April 16, 2025 17:06
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.

1 participant