Skip to content

Add security-extended to CodeQL queries - #6815

Closed
tonybaloney wants to merge 1 commit into
curl:masterfrom
tonybaloney:patch-1
Closed

tonybaloney wants to merge 1 commit into
curl:masterfrom
tonybaloney:patch-1

Conversation

@tonybaloney

@tonybaloney tonybaloney commented Mar 30, 2021 •

Copy link
Copy Markdown
Contributor

This PR adds the security-extended queries to the CodeQL CI workflow.

These queries are more aggressive, which means that they can raise false positives, which is why they are disabled by default. But they're also really helpful and find lots of security bugs that the standard queries don't. The standard queries don't really check much in the way of security scans, they're mostly for general code quality.

@tonybaloney
tonybaloney deleted the patch-1 branch March 30, 2021 23:49
@tonybaloney tonybaloney changed the title Add security-extended queries to the CodeQL CI workflow --- Mar 30, 2021
@tonybaloney tonybaloney changed the title --- Add security-extended to CodeQL queries Mar 31, 2021
@tonybaloney
tonybaloney restored the patch-1 branch March 31, 2021 07:39
@tonybaloney tonybaloney reopened this Mar 31, 2021
@tonybaloney

Copy link
Copy Markdown
Contributor Author

For the issues raised in this PR, https://docs.github.com/en/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests#dismissing-an-alert-on-your-pull-request

If someone can please confirm the status of them and I can flag (or the maintainer can), using those instructions.

Issues can be dismissed in a couple of ways:

  • won't fix - kept as an issue but flagged so it won't show again
  • false positive - closes the issue and makes sure it isn't scanned again

As some of the issues are related to file input propagating in tooling, you can also use the "show paths" command in GitHub

@bagder

bagder commented Mar 31, 2021

Copy link
Copy Markdown
Member

Thanks, I went over all of the alerts and they were all false positives. Primarily in these two categories:

  1. using a file name passed in as an argument via argv[]
  2. using a weak cipher algorithm in NTLM code

@bagder bagder added the CI Continuous Integration label Apr 9, 2021
@bagder

bagder commented Apr 9, 2021

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in 2908a82 Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration

Development

Successfully merging this pull request may close these issues.

3 participants