Defendnot
- Capabilities
- Defense evasionProcess injectionPersistence
- Platforms
- Windows
Defendnot is a Windows security-research and defense-evasion tool that disables Microsoft Defender by abusing antivirus registration through Windows Security Center (WSC). It uses undocumented WSC interfaces to register a fictitious antivirus product as active, causing Defender to disable its protection to avoid conflicts with another antivirus provider. This behavior abuses Windows security-product trust mechanisms rather than directly exploiting Microsoft Defender.
The tool uses a loader and DLL payload to execute within a trusted Windows Task Manager process through process injection. From this trusted context, it interacts with WSC antivirus-registration interfaces. It supports optional persistence through scheduled tasks or autorun registry entries, allowing its defense-suppression behavior to continue across subsequent sessions.
Although developed as a research tool, Defendnot has been incorporated into malicious intrusion chains. MoiClient downloads and executes it with elevated privileges to attempt to disable Defender. It has also been deployed in phishing campaigns targeting Windows users in Russia that deliver Amnesia RAT and Hakuna Matata ransomware. In these operations, Defendnot serves as a defense-neutralization component; credential theft, surveillance, and file encryption are performed by separate payloads.
Techniques & procedures
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
4 techniques
Execution
The content includes "Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct."
The profile is intended to detect "scheduled-task persistence" and monitors "TaskCache\Tree" and "TaskCache\Tasks" plus the Task Scheduler TaskCache registry representation.
Open the powershell as administrator and execute any of these
MoiClient downloads defendnot.DLL and defendnot-loader.Exe from the C2 server, then executes them in PowerShell using privileges obtained through UAC bypass.
Persistence
4 techniques
Persistence
The profile is intended to detect "scheduled-task persistence" and monitors "TaskCache\Tree" and "TaskCache\Tasks" plus the Task Scheduler TaskCache registry representation.
Registry monitoring targets Security Center AV-provider keys, Windows Defender policy/configuration keys, and Task Scheduler TaskCache registry paths; Event IDs 4657 and 4663 are used to identify changes and access.
To keep the AV registration persistent after reboot, defendnot adds itself to autorun. That means the binaries have to remain on your system for the Defender "disable" to stick.
This optional phase involves creating autorun registry entries that will reactivate the malicious security product following system restarts.
Privilege Escalation
5 techniques
Privilege Escalation
The profile is intended to detect "scheduled-task persistence" and monitors "TaskCache\Tree" and "TaskCache\Tasks" plus the Task Scheduler TaskCache registry representation.
The Sysmon profile is described as detecting "process injection" and specifically collects remote-thread creation, process access, and DLL-load events involving Taskmgr.exe. DefendNot strings identify "Taskmgr.exe" as the victim process and "defendnot.dll" as the DLL name.
Specific Logs for Detection Sysmon: Event ID 7 (Image Loaded into trusted processes), Event ID 8 (CreateRemoteThread), Event ID 10 (ProcessAccess). Process Data: Unexpected modules in legitimate processes (e.g., Taskmgr.exe ).
To keep the AV registration persistent after reboot, defendnot adds itself to autorun. That means the binaries have to remain on your system for the Defender "disable" to stick.
This optional phase involves creating autorun registry entries that will reactivate the malicious security product following system restarts.
Stealth
4 techniques
Stealth
Register fake AV (Malicious Security Product) via IWscAvStatus Interface... The Windows Security Center processes the fraudulent registration request and accepts it as a legitimate security product (AV).
The Sysmon profile is described as detecting "process injection" and specifically collects remote-thread creation, process access, and DLL-load events involving Taskmgr.exe. DefendNot strings identify "Taskmgr.exe" as the victim process and "defendnot.dll" as the DLL name.
Specific Logs for Detection Sysmon: Event ID 7 (Image Loaded into trusted processes), Event ID 8 (CreateRemoteThread), Event ID 10 (ProcessAccess). Process Data: Unexpected modules in legitimate processes (e.g., Taskmgr.exe ).
You'll need to (temporarily) disable Defender's real-time and tamper protection to install.
Defense Impairment
2 techniques
Defense Impairment
Registry monitoring targets Security Center AV-provider keys, Windows Defender policy/configuration keys, and Task Scheduler TaskCache registry paths; Event IDs 4657 and 4663 are used to identify changes and access.
The detection content identifies Defender real-time protection disabled, malware/PUA scanning disabled, virus scanning disabled, Defender configuration changes, and Windows Security Center fake-AV registration tooling.
Command and Control
1 technique
Command and Control
MoiClient then receives an additional payload from the threat actor’s C2 server... MoiClient downloads an additional payload named “c.Txt” from the C2 server.
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.