Skip to content

Commit 62d5d95

Browse files
committed
added java cryptographic discovery queries
1 parent a359a24 commit 62d5d95

12 files changed

Lines changed: 24 additions & 12 deletions

java/ql/src/experimental/quantum/InventorySlices/KnownAsymmetricAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Operations using known asymmetric cipher algorithms (slice)
33
* @description Outputs operations where the algorithm used is a known asymmetric cipher algorithm.
44
* @id java/quantum/slices/known-asymmetric-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

java/ql/src/experimental/quantum/InventorySlices/KnownAsymmetricCipherAlgorithm.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
* @name Known asymmetric cipher algorithms (slice)
33
* @description Outputs known asymmetric cipher algorithms.
44
* @id java/quantum/slices/known-asymmetric-cipher-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/
910

1011
import java
1112
import experimental.quantum.Language
13+
/* import codeql.quantum.experimental.Model */
1214

1315
from Crypto::KeyOperationAlgorithmNode a
1416
where a.getAlgorithmType() instanceof Crypto::KeyOpAlg::AsymmetricCipherAlgorithmType

java/ql/src/experimental/quantum/InventorySlices/KnownAsymmetricOperationAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Operations using known asymmetric algorithms (slice)
33
* @description Outputs operations where the algorithm used is a known asymmetric algorithm.
44
* @id java/quantum/slices/known-asymmetric-operation-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

java/ql/src/experimental/quantum/InventorySlices/KnownCipherAlgorithm.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
* @name Known cipher algorithms (slice)
33
* @description Outputs known cipher algorithms.
44
* @id java/quantum/slices/known-cipher-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/
910

1011
import java
1112
import experimental.quantum.Language
13+
import codeql.quantum.experimental.Model
1214

1315
// TODO: should there be a cipher algorithm node?
1416
from Crypto::KeyOperationAlgorithmNode a

java/ql/src/experimental/quantum/InventorySlices/KnownEllipticCurveAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Known elliptic curve algorithms (slice)
33
* @description Outputs known elliptic curve algorithms.
44
* @id java/quantum/slices/known-elliptic-curve-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

java/ql/src/experimental/quantum/InventorySlices/KnownHashingAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Known hashing algorithms (slice)
33
* @description Outputs known hashing algorithms.
44
* @id java/quantum/slices/known-hashing-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

java/ql/src/experimental/quantum/InventorySlices/KnownHashingOperationAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Operations using known hashing algorithms (slice)
33
* @description Outputs operations where the algorithm used is a known hashing algorithm.
44
* @id java/quantum/slices/operation-with-known-hashing-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

java/ql/src/experimental/quantum/InventorySlices/KnownKeyDerivationAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Known key derivation algorithms (slice)
33
* @description Outputs known key derivation algorithms.
44
* @id java/quantum/slices/known-key-derivation-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

java/ql/src/experimental/quantum/InventorySlices/KnownKeyDerivationOperationAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Operations using known key derivation algorithms (slice)
33
* @description Outputs operations where the algorithm used is a known key derivation algorithm.
44
* @id java/quantum/slices/operation-with-known-kdf-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

java/ql/src/experimental/quantum/InventorySlices/KnownSymmetricCipherAlgorithm.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Known symmetric cipher algorithms (slice)
33
* @description Outputs known symmetric cipher algorithms.
44
* @id java/quantum/slices/known-symmetric-cipher-algorithm
5-
* @kind table
5+
* @kind problem
6+
* @severity recommendation
67
* @tags quantum
78
* experimental
89
*/

0 commit comments

Comments
 (0)