mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +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
|
import experimental.quantum.Language
|
||||||
|
|
||||||
from Crypto::HashAlgorithmNode alg
|
from Crypto::HashAlgorithmNode alg
|
||||||
where not exists(alg.getHashType())
|
where
|
||||||
select alg, "Use of unknown hash algorithm or API."
|
not exists(alg.getHashType())
|
||||||
|
or
|
||||||
|
alg.getHashType() = Crypto::OtherHashType()
|
||||||
|
select alg, "Use of unknown hash algorithm."
|
||||||
|
|||||||
Reference in New Issue
Block a user