Update DoNotUseInvokeExpression.ql

This commit is contained in:
dilanbhalla
2025-02-06 12:04:29 -08:00
committed by GitHub
parent c43b682862
commit 14ab30ce1f

View File

@@ -5,7 +5,7 @@
* @problem.severity error
* @security-severity 9.8
* @precision high
* @id powershell/do-not-use-invoke-expression
* @id powershell/microsoft-public/do-not-use-invoke-expression
* @tags security
*/
import powershell
@@ -13,4 +13,4 @@ import semmle.code.powershell.dataflow.DataFlow
from CmdCall call
where call.getName() = "Invoke-Expression"
select call, "Do not use Invoke-Expression. It is a command injection risk."
select call, "Do not use Invoke-Expression. It is a command injection risk."