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:
REDMOND\brodes
2025-10-16 11:03:16 -04:00
parent d2598d4f5d
commit 79ccef3a58

View File

@@ -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."