mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Crypto: Initial sketch for unknown hash, the model needs to recognize unknowns but where the algorithm category (e.g., hashing) is known.
This commit is contained in:
@@ -12,5 +12,8 @@ import java
|
||||
import experimental.quantum.Language
|
||||
|
||||
from Crypto::HashAlgorithmNode alg
|
||||
where not exists(alg.getHashType())
|
||||
select alg, "Use of unknown hash algorithm or API."
|
||||
where
|
||||
not exists(alg.getHashType())
|
||||
or
|
||||
alg.getHashType() = Crypto::OtherHashType()
|
||||
select alg, "Use of unknown hash algorithm."
|
||||
|
||||
Reference in New Issue
Block a user