Skip to content

Replace CommandLine with real command line arguments#5219

Merged
nasbench merged 2 commits intoSigmaHQ:masterfrom
nikstuckenbrock:bugfix/wchar-execution
Jun 4, 2025
Merged

Replace CommandLine with real command line arguments#5219
nasbench merged 2 commits intoSigmaHQ:masterfrom
nikstuckenbrock:bugfix/wchar-execution

Conversation

@nikstuckenbrock
Copy link
Contributor

Summary of the Pull Request

The referenced tweet of the rule Potential PowerShell Obfuscation Via WCHAR was updated and to concrete examples were given. The first example mentions copying the special characters and directly using them, this should be covered by the windash function. To use the special dashes using the .NET datatype the [char] function is used. For me it looks like there is no (WCHAR) function for powershell.

Changelog

fix: Potential PowerShell Obfuscation Via WCHAR - replaced with correct execution using [char]

Example Log Event

Fixed Issues

SigmaHQ Rule Creation Conventions

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

@github-actions github-actions bot added Rules Windows Pull request add/update windows related rules labels Mar 3, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @nikstuckenbrock 👋

It looks like this is your first pull request on the Sigma rules repository!

Please make sure to read the SigmaHQ conventions document to make sure your contribution is adhering to best practices and has all the necessary elements in place for a successful approval.

Thanks again, and welcome to the Sigma community! 😃

@nasbench nasbench added this to the Sigma-March-Release milestone Mar 21, 2025
@nasbench nasbench merged commit c2a5f40 into SigmaHQ:master Jun 4, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Rules Windows Pull request add/update windows related rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants