Skip to content

Commit 1c8fe05

Browse files
committed
mathias PR feedback, quwery id update
1 parent 424ba6a commit 1c8fe05

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

powershell/ql/lib/semmle/code/powershell/security/cryptography/CryptographyModule.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ class HmacAlgorithmObjectCreation extends HmacAlgorithm, CryptoAlgorithmObjectCr
180180
string algName;
181181

182182
HmacAlgorithmObjectCreation() {
183-
(
184-
objectName = "system.security.cryptography." + algName or
185-
objectName = algName
186-
) and
183+
objectName = ["", "system.security.cryptography."] + algName and
187184
isHmacAlgorithm(algName)
188185
}
189186

powershell/ql/src/queries/security/cwe-327/WeakHmac.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @problem.severity warning
66
* @security-severity 7.5
77
* @precision high
8-
* @id powershell/microsoft/security/weak-hmac
8+
* @id powershell/weak-hmac
99
* @tags security
1010
* external/cwe/cwe-327
1111
* external/cwe/cwe-328

0 commit comments

Comments
 (0)