File scan report
Verdict Suspicious
Is Clear Defender History. cmd safe? Treat it as suspicious.
The script tampers with Defender history and quarantine using elevated PowerShell, but only Kaspersky flags it and no corroborated malware family or network activity appears.
Read the whole reasonShow less
Why Suspicious? One antivirus engine (Kaspersky) flags it and one of our detection rules matched it.
Moderate evidence · More than one sign points to a problem, but nothing confirms it is harmful.
If it came from a link, an attachment or a stranger, delete it.
What to do now4 steps
Some signs point to a problem, but nothing confirms it is harmful. Treat it with caution.
What to do
Don't run it unless you're sure where it came from.
Check where you got it: an unexpected attachment, a link someone sent you or a re-upload is a red flag.
If you can't confirm where it came from, delete it. If you need the program, download it again from the publisher's own website.
If you already ran it
Stop using it, run a full scan with your antivirus and watch for unexpected behavior or security alerts.
Not sure what to do?
Ask the MalwareTips community before you run it. If you already ran it, follow the cleanup guide.
- Ask for free help on the MalwareTips forumWindows malware removal help, answered by volunteers. (opens malwaretips.com in a new tab)
- Remove malware from WindowsStep-by-step cleanup with free tools. (opens malwaretips.com in a new tab)
Paste this report's link in your topic so helpers can see what was found.
Reads the latest antivirus results for this file's hash. Nothing is uploaded.
Antivirus results
1 of 61 flagged
- Flagged 1
- No detection 60
- No result 14
- Code signing Not applicable
- Test run Completed
- First seen 1y ago
Chapter 02
Why we think so
5 points against it and 5 in its favour, checked against the scan evidence.
The reasoning behind this verdict
This command script performs high-risk administrative actions: it elevates PowerShell, invokes dynamically evaluated code, uses a scheduled task, and removes Defender history, quarantine, and engine-database files. Kaspersky alone identifies Persik among 75 engines, while broader prevalence and the absence of corroborating sandbox, file it created, network, or malware-specific YARA evidence leave intent unresolved.
The strongest concern is observed tampering with Windows Defender records and quarantine, which can erase evidence and remove quarantined material. Elevated PowerShell, Invoke-Expression, and scheduled-task activity reinforce that concern, although PowerShell execution itself is not proof of malware. Kaspersky is the only one of the 61 antivirus engines that checked it to report a Persik trojan label, so there is no family consensus. The sandbox recorded no malicious verdict, and its only listed domain was explicitly attributed to analysis-environment background traffic rather than the sample. Established prevalence across 102 submitters and the lack of malware-specific external-intelligence hits make a false positive plausible, but not enough to overlook the script's endpoint-protection tampering.
What We Detected
Kaspersky was the sole detector among 75 engines, assigning the label UDS:Trojan.PowerShell.Persik. No strong major family consensus formed, and no malware-specific YARA rule or malicious file it created corroborated that label.
Threat Behavior
The completed sandbox run observed an elevation request, PowerShell using Invoke-Expression, scheduled-task activity, and commands deleting Microsoft Defender scan history, quarantine contents, and engine-database files. These are risky administrative operations because they can destroy security records and interfere with normal remediation. The only listed domain was marked as analysis-machine background traffic, so it is not attributed to the script; no sample-originated network activity was recorded.
What To Do Now
Do not run the script on a production computer unless its contents and source have been independently verified and the Defender cleanup is specifically authorized. Keep security software enabled; use documented Defender settings or management tools for legitimate history-retention changes instead of deleting security databases and quarantine folders directly.
Where this verdict could be wrong3 caveats
- Only 1 of the 61 antivirus engines that checked it flagged the script, and the named Persik family lacks multi-engine or strong major consensus.
- The file has broad, established prevalence—102 submitters and 118 submissions—rather than being or exceptionally rare.
- No sandbox run produced a malicious verdict, no malware-specific YARA rules matched, and no inspected child had a saved malicious verdict.
These are the assessment's weak points. If you believe one applies to your file, report the verdict and we'll re-review it.
- Only one of the 61 antivirus engines that checked it flagged the file, with no strong family consensus.
- The sample has been submitted by 102 sources 118 times and is roughly 355 days old.
- The completed sandbox run did not return a malicious verdict.
- No malware-specific YARA rules or corroborating external-intelligence hits were recorded.
- None of the three inspected dropped files had a saved malicious verdict, although their individual verdict coverage is incomplete.
- The script deletes Microsoft Defender scan-history, quarantine, and engine-database files.
- It requests administrator privileges and executes PowerShell through Invoke-Expression.
- It invokes scheduled-task tooling, which can support recurring execution or persistence.
- Kaspersky identifies the script as Trojan.PowerShell.Persik.
- Its name presents the security-impacting action as routine cleanup, although the commands reach into protected Defender data.
6 sources checked · all complete. See every source
Chapter 03
What it did in our test
It ran in our isolated test environment; no test environment rated what it did as risky.
Test run summary
Capture complete- 13sandbox rule tags
- 8spawned processes
- 0network contacts
- 38filesystem & mutex artifacts
What the test run showed
What the file did on a test computer
Confirmed in the test run
Moderate concern: Ran commands or a script on the test computer.
Moderate concern: Checked whether it was running on a test computer.
Note: Listed the programs running on the test computer.
Note: Read basic details of the test computer, such as its Windows version.
Note: Checked which security software was installed on the test computer.
Sandbox labels we could not confirm (common in safe files too)
Not confirmed: A sandbox rule tagged this run as creating a scheduled task; none was recorded.
Not confirmed: A sandbox rule tagged this run as contacting a server, but no contacted host was recorded.
This file was run on a test computer (a sandbox), not on yours. Labels we could not confirm are listed so you can see them, but they are not treated as evidence against the file.
Recorded behavior
What happened in the test
Grouped by step. The order is not a timeline.
- 1
Input file
The submitted object
- Evidence 1 of 5: FileSeen in the test run
ClearDefenderHistory.cmd
d1ee84596066eec095a6e8edf4d7a1c00c0dde77bfc1f2d6424b776fd2102be3
Uploaded file
- 2
Processes
What ran
- Evidence 2 of 5: ProcessSeen in the test run
cmd.exe
"C:\Windows\system32\cmd.exe" /c start /wait "" "C:\Users\<USER>\Desktop\install.bat"
Test run - Evidence 3 of 5: ProcessSeen in the test run
cmd.exe
C:\Windows\system32\cmd.exe /K "C:\Users\<USER>\Desktop\install.bat"
Test run - +1 more recorded observation
- 2
Files
Created or changed
- Evidence 4 of 5: Written fileSeen in the test run
ModuleAnalysisCache
C:\Users\<USER>\AppData\Local\Microsoft\Windows\PowerShell\ModuleAnalysisCache
Test run - Evidence 5 of 5: Written fileSeen in the test run
DWDH
C:\Windows\System32\Tasks\DWDH
Test run - +1 more recorded observation
5 facts from the test run. See the full activity list.
What this file did when executed
This file was run in a sandbox and its runtime behaviour was observed.
Techniques observed in the sandbox
13MITRE ATT&CK techniques the sandbox mapped. Highlighted ones are rare in normal software; the others are common in legitimate programs too.
- T1036
- T1053· Scheduled task
- T1057· Lists programs
- T1059· Runs commands
- T1059.001· Runs commands
- T1064
- T1071· Application protocol
- T1082· System recon
- T1106
- T1202
- T1497· Sandbox evasion
- T1518.001· Checks your AV
- T1539
Observed activity
Processes started
8Programs the file ran, with their command lines.
cmd.exe"C:\Windows\system32\cmd.exe" /c start /wait "" "C:\Users\<USER>\Desktop\install.bat"cmd.exeC:\Windows\system32\cmd.exe /K "C:\Users\<USER>\Desktop\install.bat"powershellpowershell -nop "if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { Start-Process -Verb RunAs 'cmd.exe' -ArgumentList '/c \"C:\Users\<USER>\Desktop\install.bat\" ' } else { Invoke-Expression ([System.IO.File]::ReadAllText('C:\Users\<USER>\Desktop\install.bat')) }"schtasks.exeC:\Windows\System32\schtasks.execmd.exeC:\Windows\System32\cmd.exe C:\Windows\system32\cmd.exe /c ""C:\Users\user\Desktop\run.bat" "powershell.exeC:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe powershell -nop "if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { Start-Process -Verb RunAs 'cmd.exe' -ArgumentList '/c \"C:\Users\user\Desktop\run.bat\" ' } else { Invoke-Expression ([System.IO.File]::ReadAllText('C:\Users\user\Desktop\run.bat')) }"
Show all 8 entries for processes started
cmd.exeC:\Windows\System32\cmd.exe "cmd.exe" /c rd /s /q "C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service" & rd /s /q "C:\ProgramData\Microsoft\Windows Defender\Quarantine" & del /f "C:\ProgramData\Microsoft\Windows Defender\Scans\mpenginedb.db*" & schtasks /delete /f /tn DWDHschtasks.exeC:\Windows\System32\schtasks.exe schtasks /delete /f /tn DWDH
Files
30Files the file created, changed or deleted.
- Written
C:\Users\<USER>\AppData\Local\Microsoft\Windows\PowerShell\ModuleAnalysisCache - Written
C:\Windows\System32\Tasks\DWDH - Written
C:\Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask - Written
C:\Program Files\Google\Policies - Written
C:\Program Files\Google\Temp\GUM4AC6.tmp - Written
C:\Program Files\Google\Temp\GUM7215.tmp
Show all 30 entries for files
- Written
C:\Users\<USER>\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\U0Z4AQ4FUS2D6J6EO1F2.temp - Written
C:\ProgramData\Microsoft\Network\Downloader\edb.log - Written
C:\ProgramData\Microsoft\Network\Downloader\qmgr.db - Written
C:\ProgramData\Microsoft\Network\Downloader\qmgr.jfm - Written
C:\Users\user\AppData\Local\Temp\__PSScriptPolicyTest_gji3q1md.arf.ps1 - Written
C:\Users\user\AppData\Local\Temp\__PSScriptPolicyTest_ueh0x0ty.whk.psm1 - Written
C:\Users\user\AppData\Roaming - Written
C:\Users\user\Documents\20251025 - Written
C:\Users\user\Documents\20251025\PowerShell_transcript.WIN-CX7284.Bh4TevbC.20251025074247.txt - Deleted
C:\Windows\Tasks\DWDH.job - Deleted
C:\Program Files\Google\Temp\GUM4AC6.tmp - Deleted
C:\Program Files\Google\Temp\GUM7215.tmp - Deleted
C:\ProgramData\Microsoft\Windows Defender\Quarantine - Deleted
C:\ProgramData\Microsoft\Windows Defender\Quarantine\Entries - Deleted
C:\ProgramData\Microsoft\Windows Defender\Quarantine\ResourceData\0E - Deleted
C:\ProgramData\Microsoft\Windows Defender\Quarantine\Resources - Deleted
C:\ProgramData\Microsoft\Windows Defender\Quarantine\Resources\0E - Deleted
C:\ProgramData\Microsoft\Windows Defender\Quarantine\Resources\97 - Deleted
C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service - Deleted
C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory - Deleted
C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory\17 - Deleted
C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory\22 - Deleted
C:\Users\user\AppData\Local\Temp\__PSScriptPolicyTest_gji3q1md.arf.ps1 - Deleted
C:\Users\user\AppData\Local\Temp\__PSScriptPolicyTest_ueh0x0ty.whk.psm1
Registry and auto-start
4Settings the file changed, including ways to start again after a restart.
- Set
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQMClient\Windows\AdaptiveSqm\ManifestInfo\Version - Set
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQMClient\Windows\WSqmConsLastEventTimeStamp - Set
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQMClient\Windows\WSqmConsLastRunTime - Set
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\BITS\PerfMMFileName
Mutexes
8Named locks a program uses so only one copy runs; malware families often reuse them.
Local\MSCTF.Asm.MutexDefault0Global\SQMWindowsConsolidator\BaseNamedObjects\Local\SM0:1608:304:WilStaging_02\BaseNamedObjects\Local\SM0:552:304:WilStaging_02\BaseNamedObjects\Local\SM0:552:120:WilError_03\BaseNamedObjects\Local\SM0:7040:304:WilStaging_02
Show all 8 entries for mutexes
\BaseNamedObjects\Local\SM0:4132:304:WilStaging_02\BaseNamedObjects\Global\Instance0: ESENT Performance Data Schema Version 305
Sandbox background — not the file
4The analysis machine's own processes and connections, recorded in every run.
- VM process
services.exeC:\Windows\system32\services.exe - VM process
conhost.exeC:\Windows\System32\conhost.exe C:\Windows\system32\conhost.exe 0xffffffff -ForceV1 - VM process
svchost.exeC:\Windows\System32\svchost.exe -k netsvcs -p -s BITS - VM host
dns.google
Files this sample writes at runtime
This file drops 2 children at runtime. None are currently flagged malicious in our cache. 2 have no saved verdict and were not checked; that is missing coverage, not a finding.
- 51c7f52dce02852f4b5d…2dceb5Not checkedno saved verdict
- 4e7ae7d6f887d11c6983…e7939bNot checkedno saved verdict
Chapter 04
Technical details
1 of the 61 antivirus engines that checked it flags it.
Sources checked
Every check behind this verdict
6 sources checked · all complete. Complete means the check returned a usable result; it does not mean the file is safe.
Engines that flagged it 1
- Kaspersky (major engine)UDS:Trojan.PowerShell.Persik
File fingerprint
- Last analyzed
- Oct 15, 2026, 7:32 AM UTC
- SHA-256
d1ee84596066eec095a6e8edf4d7a1c00c0dde77bfc1f2d6424b776fd2102be3- SHA-1
38fba51e3f49f797ba8b935fc1fc87161b5efc03- MD5
62c839a357979b71159c942f3e83e032
About this file
ClearDefenderHistory.cmd is a Powershell file of 2.0 kB.
- Type and size
- Powershell · 2.0 kB
- Signer
- Not applicable
- First seen
- Oct 25, 2025On VirusTotal.
- Submitted by
- 102 distinct sources
First scanned
Antivirus consensus
1 of 61 engines flagged this file
14 of the 75 engines returned no result for this file (file type not supported, or the scan did not finish), so they did not check it.
- Tier-118 engines1flagged
- Tier-232 engines0flagged
- Low-trust11 engines0flagged
View all 75 engine results
- KasperskyMalicious: UDS:Trojan.PowerShell.Persik
- AcronisClean
- AhnLab-V3Clean
- AlibabaNo result
- alibabacloudClean
- ALYacClean
- Antiy-AVLClean
- APEXNo result
- ArcabitClean
- AvastClean
- Avast-MobileNo result
- AVGClean
- AviraClean
- BitDefenderClean
- BitDefenderFalxNo result
- BkavClean
- CAT-QuickHealClean
- ClamAVClean
- CMCClean
- CrowdStrikeClean
- CTXClean
- CylanceNo result
- CynetClean
- DeepInstinctNo result
- DrWebClean
- ElasticNo result
- EmsisoftClean
- ESET-NOD32Clean
- F-SecureClean
- FortinetClean
- GDataClean
- GoogleClean
- GridinsoftClean
- huorongClean
- IkarusClean
- JiangminClean
- K7AntiVirusClean
- K7GWClean
- KingsoftClean
- LionicClean
- MalwarebytesClean
- MaxSecureClean
- McAfeeDClean
- MicrosoftClean
- MicroWorld-eScanClean
- NANO-AntivirusClean
- PaloaltoNo result
- PandaClean
- RisingClean
- SangforClean
- SentinelOneNo result
- SkyhighClean
- SophosClean
- SUPERAntiSpywareClean
- SymantecClean
- SymantecMobileInsightNo result
- TACHYONClean
- tehtrisNo result
- TencentClean
- TrapmineNo result
- TrellixENSClean
- TrendMicroClean
- TrendMicro-HouseCallClean
- TrustlookNo result
- VaristClean
- VBA32Clean
- VIPREClean
- VirITClean
- ViRobotClean
- WebrootNo result
- XcitiumClean
- YandexClean
- ZillyaClean
- ZoneAlarmClean
- ZonerClean
Signatures and behavior heuristics
A community signature or high-severity behavioral heuristic matched. Signatures identify known patterns; heuristics are strong leads but are not proof on their own.
Sample spawned PowerShell with an encoded, Base64, or Invoke-Expression payload. Near-universal first-stage malware loader pattern.
Evidencepowershell -nop "if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { Start-Process -Verb RunAs 'cmd.ex…The sandbox recorded persistence through a scheduled task. Installers set these up legitimately for their own updaters and services, so this is context, not proof of malicious intent.
EvidenceC:\Windows\System32\schtasks.exe
How widely this file has been seen
Widely seen in the wild for a long time. High prior this is legitimate; isolated detections on common-old files are usually false positives.
Chapter 05
Questions & answers
Short answers to the 6 questions people ask most about this file.
Is ClearDefenderHistory.cmd safe, or is it malware?
What is ClearDefenderHistory.cmd?
How many antivirus engines detected ClearDefenderHistory.cmd?
What should I do if I already ran ClearDefenderHistory.cmd?
What is the SHA-256 hash of ClearDefenderHistory.cmd?
How up to date is this analysis of ClearDefenderHistory.cmd?
Community
Member reviews and reports for this exact file hash.