[BUG] Windows DisableAntiSpyware Registry" overlaps with and is weaker than "Disable Defender AntiVirus Registry

Open
#4,388 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@mvanhorn is already working on this.

Since Nov 4, 2026.

  • #4398 by @mvanhorn — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Domain
security

Research direction

Compare the two Defender-registry detections named in the table: Disable Defender AntiVirus Registry and Windows DisableAntiSpyware Registry, focusing on value names, value data and the path filter. Before editing, confirm with maintainers whether the non-policy Windows Defender key should be covered, since the issue leaves that open. Done means one detection is kept with the agreed coverage, the other is deprecated, and the repository's detection validation still passes.

Written by the indexing model from the issue text.

Description

bug
Summary

Both detections alert on Defender being disabled via registry. Disable Defender AntiVirus Registry covers everything the other does under the Defender policy path, with better logic. Running both produces duplicate alerts for the same event and two filter macros to tune.

Comparison
Disable Defender AntiVirus Registry Windows DisableAntiSpyware Registry
Value names DisableAntiSpyware, DisableAntiVirus DisableAntiSpyware only
Value data IN (1, 0x00000001) = "0x00000001" only
Path filter *\Policies\Microsoft\Windows Defender* none
Caveat

The second has no path filter, so it also matches DisableAntiSpyware outside the policy key (e.g. HKLM\SOFTWARE\Microsoft\Windows Defender). If that coverage is wanted, it should be added to the first detection.

Proposal

Deprecate Windows DisableAntiSpyware Registry, optionally extending the first detection's path filter to cover the non-policy key. Happy to open a PR.

Dominant language
Python
Stars
1.7k
Forks
507
Avg merge
2d 17h
Merged PRs (30d)
35

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from splunk/security_content

All issues in splunk/security_content

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.