Skip to content

fix: remove trailing spaces in selection_hidden and selection_noninteractive#5883

Open
heyyanu wants to merge 1 commit intoSigmaHQ:masterfrom
heyyanu:fix/posh-ps-trailing-spaces
Open

fix: remove trailing spaces in selection_hidden and selection_noninteractive#5883
heyyanu wants to merge 1 commit intoSigmaHQ:masterfrom
heyyanu:fix/posh-ps-trailing-spaces

Conversation

@heyyanu
Copy link

@heyyanu heyyanu commented Feb 24, 2026

…ractive fixes #5034

Summary of the Pull Request

Removed trailing spaces from selection_hidden and selection_noninteractive in posh_ps_susp_invocation_generic.yml to fix false negatives when PowerShell flags appear at the end of a command. selection_encoded was intentionally left unchanged.

Changelog

fix: Suspicious PowerShell Invocations Generic - remove trailing spaces in selection_hidden and selection_noninteractive

Example Log Event

ScriptBlockText: powershell.exe -EncodedCommand aGVsbG8gd29ybGQ= -windowstyle hidden -noninteractive

Fixed Issues

Fixes #5034

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@github-actions github-actions bot added Rules Review Needed The PR requires review Windows Pull request add/update windows related rules labels Feb 24, 2026
@heyyanu
Copy link
Author

heyyanu commented Feb 25, 2026

Hi @nasbench , just wanted to check in on this PR.
Happy to make any changes if needed. Thanks for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Needed The PR requires review Rules Windows Pull request add/update windows related rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove ending spaces from selection in posh_ps_susp_invocation_generic.yml

1 participant