Skip to content

Commit 8e10e19

Browse files
committed
Crypto: Adding query for unknown IV initialization.
1 parent 83ff70b commit 8e10e19

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @name Unknown nonce/iv initialization
3+
* @id java/quantum/unknown-iv-or-nonce-initialization
4+
* @description A nonce/iv is generated from a source that is not secure. Failure to initialize
5+
* an IV or nonce properly can lead to vulnerabilities such as replay attacks or key recovery.
6+
* @kind problem
7+
* @problem.severity error
8+
* @precision high
9+
* @tags quantum
10+
* experimental
11+
*/
12+
13+
import experimental.quantum.Language
14+
15+
from Crypto::NonceArtifactNode nonce
16+
where exists(nonce.getSourceNode())
17+
select nonce, "Unknown (unobserved) IV/Nonce initialization."

0 commit comments

Comments
 (0)