Cleanlog
Overview
Trojan:Win32/Cleanlog is a specialized defense evasion tool utilized by advanced attackers (often post-exploitation) to deliberately cover their tracks. Its explicit purpose is to systematically delete, alter, or corrupt Windows Event Logs, application logs, and firewall histories (`T1070.001`). It is not an initial infection vector, but rather a utility used to hinder incident response investigations.
Understanding Cleanlog (Indicator Removal Tools)
To an end-user, the execution of Cleanlog is completely invisible. For a security operations center (SOC), the sudden clearing of security logs is the equivalent of a fire alarm. The presence of Cleanlog definitively proves that an attacker had full administrative or SYSTEM level access to the endpoint and is actively trying to hide malicious activity (like lateral movement or credential dumping).
Execution and Evasion Mechanics
Cleanlog must run with elevated privileges. It uses various Windows APIs and built-in tools (like `wevtutil.exe cl`) to target specific logs (Security, System, Application). Advanced variants may not just clear the logs, but selectively delete specific Event IDs related to the attacker's actions (`T1070.002`), making the tampering harder to detect than a massive log clearing event. It may also securely wipe dropped payloads from the disk (`T1070.004`).
Indicators of Compromise & Impact
The impact is a severely degraded forensic trail, making it difficult to determine the scope of the breach or the root cause. Host-based IoCs are highly specific: Event ID 1102 (The audit log was cleared) in the Security log, or Event ID 104 (The Application/System log was cleared) in the System log. EDR should flag the execution of `wevtutil` or unexpected API calls related to event log manipulation by non-standard processes.
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
| Technique | Name | Tactic |
|---|---|---|
T1070.001 | Indicator Removal: Clear Windows Event Logs (The primary function of the tool) | Defense Evasion |
T1070.004 | Indicator Removal: File Deletion (Securely wiping dropped payloads from disk) | Defense Evasion |
T1562.001 | Impair Defenses: Disable or Modify Tools (Stopping logging services temporarily) | Defense Evasion |
Generated Detections (Boilerplate)
These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.
YARA Rule
rule MALWARE_WIN_CLEANLOG {
meta:
description = "Detects Cleanlog (trojan)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "cleanlog" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Cleanlog Activity
id: 77629507a2edd59e42acfcf9abc85f6f
status: experimental
description: Detects generic indicators of the cleanlog malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*cleanlog*"
condition: selection
level: mediumContainment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Isolate the endpoint immediately; if logs are being cleared, a high-severity breach has already occurred, and the attacker holds administrative privileges.
- Do not reboot the machine, as this may overwrite vital artifacts remaining in volatile memory (RAM). Capture a live memory dump immediately.
- Rely on centralized, forward-deployed log aggregation (SIEM) to reconstruct the timeline, as the local logs on the endpoint are no longer trustworthy.
- Hunt across the network for the administrative credentials the attacker used to deploy the Cleanlog utility.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not assume an endpoint is clean just because the local AV scans are negative; the attacker likely used Cleanlog to wipe the tools after using them.
- Avoid storing critical security logs solely on the endpoints; they must be forwarded to a centralized, immutable SIEM.
References & External Analysis
- Search "cleanlog" on VirusTotal (External Analysis)
Frequently Asked Questions
How do I remove the Cleanlog Trojan from Windows?
Manual removal of Cleanlog is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Cleanlog a virus or a Trojan?
Cleanlog is classified as a Trojan. Unlike traditional viruses that infect files, modern malware like Cleanlog typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Cleanlog infection?
Symptoms of Cleanlog can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Related Families (Category: trojan)
Explore other malware families in the same category:
Protect Your Network Against Trojans
Want to prevent Cleanlog and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/cleanlog.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.