Skip to content

Add more keys concerned with lsa ppl protection#5399

Open
swachchhanda000 wants to merge 5 commits intoSigmaHQ:masterfrom
swachchhanda000:lsa_ppl_disabled
Open

Add more keys concerned with lsa ppl protection#5399
swachchhanda000 wants to merge 5 commits intoSigmaHQ:masterfrom
swachchhanda000:lsa_ppl_disabled

Conversation

@swachchhanda000
Copy link
Collaborator

@swachchhanda000 swachchhanda000 commented May 1, 2025

Summary of the Pull Request

Add more keys concerned with lsa ppl protection

Changelog

update: LSA PPL Protection Setting Modification via CommandLine - Add more keys regarding LSA PPL

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 May 1, 2025
Comment on lines +36 to +39
filter:
CommandLine|contains:
- "01"
- "02"
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is filtered here? Can you give an example? (Is it a main or optional filter?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When modifying the registry using the reg command, you can pass a value using either of the following formats:

/d 0 /d 00000000

For example:

The intention of rule is to catch this commandline

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "RunAsPPL" /t REG_DWORD /d "0"

But, This means the rule will be triggered if the value is set like this:

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "RunAsPPL" /t REG_DWORD /d "00000001"

or similarly with other non-zero DWORD values like "00000002".

Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. so it's a main filter
  2. maybe you can rewrite the rule to be more robust? Maybe it works without this filter. It's a regex if it has to be.
  3. maybe use /v /d with windash

Copy link
Collaborator Author

@swachchhanda000 swachchhanda000 Dec 26, 2025

Choose a reason for hiding this comment

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

I just find out we cannot really use this logic too as it is also possible to use 0x0

Copy link
Member

Choose a reason for hiding this comment

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

You should care about any modification of these key/values via CLI. So drop the filter.

And move the rule to medium

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

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.

4 participants