heroui logo

ConvertTo-SecureString Cmdlet Usage Via CommandLine

Sigma Rules

View Source
Summary
The detection rule is designed to identify the uncommon usage of the "ConvertTo-SecureString" cmdlet through command line interfaces, notably PowerShell and its variants, like pwsh.exe. The cmdlet is primarily used for converting plaintext strings into secure strings, which helps in securely handling sensitive data like passwords. This usage is regarded with suspicion because malicious actors might exploit it to obscure malicious activities or to manage credentials in an unauthorized manner. The rule leverages process creation logs from Windows environments to capture command lines that include the usage of this cmdlet. An effective detection strategy combines the detection of process creation events where the command line contains 'ConvertTo-SecureString' and ensuring those instances are from recognized PowerShell executables.
Categories
  • Windows
  • Endpoint
Data Sources
  • Process
Created: 2020-10-11