You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Java: Update Encryption.qll in line with NIST.SP.800-131Ar2 - #13830
Also added ChaCha20 and ChaCha20Poly1305 to the list of strong algorithms, and adjusted the list according to availability (blowfish is still much underutilised)
owen-mc
changed the title
Update Encryption.qll in line with NIST.SP.800-131Ar2
Java: Update Encryption.qll in line with NIST.SP.800-131Ar2
Jul 28, 2023
While we can easily accept the changes to getSecureAlgorithmName, since they will only remove FPs (which is a good thing), the same can't be said about getAnInsecureAlgorithmName. The reason is that if we add those algorithms now, we'll be alerting users, and possibly breaking their builds, about algorithms that are not yet deprecated. This is particularly problematic because java/weak-cryptographic-algorithm runs by default in Code Scanning.
So our recommendation is that you split this PR in two: one with the getSecureAlgorithmName changes that we can merge right away, and the other one with the getAnInsecureAlgorithmName changes, that we'd hold off until next year.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fairly recent changes found in NIST.SP.800-131Ar2 deprecate 3TDEA and SKIPJACK. In Java these have a few different names, which I've placed in
getAnInsecureAlgorithmNamein the file java/ql/lib/semmle/code/java/security/Encryption.qllThis doesn't take full effect until the end of the year, technically, but I've found a need to be flagging it sooner (i.e. now).
Cheers, M.