-
Notifications
You must be signed in to change notification settings - Fork 125
Adding Crypto Query/Library #284
Conversation
I am also getting a build error when checking if all QL and Go code is autoformatted, but I have checked multiple times that all of these files have been autoformatted. Is there something else that needs to be autoformatted as well that I am missing? Thanks! |
ql/src/experimental/CWE-327/BrokenCryptoAlgorithmCustomizations.qll
Outdated
Show resolved
Hide resolved
|
Hi @intrigus-lgtm yes that's correct |
@intrigus-lgtm https://github.com/github/codeql/blob/master/javascript/ql/src/Security/CWE-327/BrokenCryptoAlgorithm.ql also provides context for how the library is used, if that helps! |
ql/src/experimental/CWE-327/BrokenCryptoAlgorithmCustomizations.qll
Outdated
Show resolved
Hide resolved
ql/src/experimental/CWE-327/BrokenCryptoAlgorithmCustomizations.qll
Outdated
Show resolved
Hide resolved
ql/src/experimental/CWE-327/BrokenCryptoAlgorithmCustomizations.qll
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! This is certainly a query we'd like to have, and as an experimental contribution we hope to get it merged fairly quickly. I don't really understand a core part of the modelling, though; see my question below.
ql/src/experimental/CWE-327/BrokenCryptoAlgorithmCustomizations.qll
Outdated
Show resolved
Hide resolved
Something went wrong with your last commit I think:
|
Hi @intrigus-lgtm, sorry about that I noticed this as soon as it pushed. Correcting it right now it should be fixed in just a minute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broadly LGTM, just a few remaining minor comments.
Had a little build error there on the last submission, all fixed now though 👍 |
Many thanks for your contribution! |
Hello! In this PR I have begun writing basic support for detecting dangerous crypto algorithms. Included is a simple dataflow query as well as a library that will hopefully eventually include a variety of dangerous algorithms (I based this off of the JavaScript library for crypto). So far I have included detection for a couple of dangerous algorithms (MD5 and DES) along with respective tests, and was just hoping I could get some feedback on this before expanding upon the library. Thanks!