Skip to content

fix: detect ADSI local user creation in PowerShell rule#6064

Open
raylee-hawkins wants to merge 1 commit into
SigmaHQ:masterfrom
raylee-hawkins:raylee/issue-6057-posh-local-user-adsi-winnt
Open

fix: detect ADSI local user creation in PowerShell rule#6064
raylee-hawkins wants to merge 1 commit into
SigmaHQ:masterfrom
raylee-hawkins:raylee/issue-6057-posh-local-user-adsi-winnt

Conversation

@raylee-hawkins

Copy link
Copy Markdown

Summary

Updates the PowerShell Create Local User rule to also detect ADSI/WinNT local user creation patterns in script block telemetry, while preserving the existing New-LocalUser cmdlet coverage.

Closes #6057.

Validation

  • python tests/test_logsource.py
  • python tests/test_rules.py
  • sigma check --fail-on-error --fail-on-issues --validation-config tests/sigma_cli_conf.yml rules*

@github-actions github-actions Bot added Rules Review Needed The PR requires review Windows Pull request add/update windows related rules labels Jun 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome @raylee-hawkins 👋

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

Please make sure to read the SigmaHQ conventions 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! 😃

If you want to engage more with the community for official support, general discussions or announcements:

👉 Join our Discord server

@raylee-hawkins raylee-hawkins marked this pull request as ready for review June 13, 2026 09:13
@raylee-hawkins raylee-hawkins force-pushed the raylee/issue-6057-posh-local-user-adsi-winnt branch from d956457 to ceafda8 Compare June 13, 2026 11:29
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.

Coverage gap: posh_ps_create_local_user.yml misses local account creation via ADSI/WinNT provider

1 participant