|
| 1 | +# Self-deletion by Qakbot malware |
| 2 | + |
| 3 | +This query was originally published in the threat analytics report, *Qakbot blight lingers, seeds ransomware* |
| 4 | + |
| 5 | +[Qakbot](https://www.microsoft.com/security/blog/2017/11/06/mitigating-and-eliminating-info-stealing-qakbot-and-emotet-in-corporate-networks/) is malware that steals login credentials from banking and financial services. It has been deployed against small businesses as well as major corporations. Some outbreaks have involved targeted ransomware campaigns that use a similar set of techniques. Links to related queries are listed under [See also](#See-also). |
| 6 | + |
| 7 | +The following query detects if an instance of Qakbot has attempted to overwrite its original binary. |
| 8 | + |
| 9 | +## Query |
| 10 | + |
| 11 | +```Kusto |
| 12 | +DeviceProcessEvents |
| 13 | +| where FileName =~ "ping.exe" |
| 14 | +| where InitiatingProcessFileName =~ "cmd.exe" |
| 15 | +| where InitiatingProcessCommandLine has "calc.exe" and |
| 16 | +InitiatingProcessCommandLine has "-n 6" |
| 17 | +and InitiatingProcessCommandLine has "127.0.0.1" |
| 18 | +| project ProcessCommandLine, InitiatingProcessCommandLine, |
| 19 | +InitiatingProcessParentFileName, DeviceId, Timestamp |
| 20 | +``` |
| 21 | + |
| 22 | +## Category |
| 23 | + |
| 24 | +This query can be used to detect the following attack techniques and tactics ([see MITRE ATT&CK framework](https://attack.mitre.org/)) or security configuration states. |
| 25 | + |
| 26 | +| Technique, tactic, or state | Covered? (v=yes) | Notes | |
| 27 | +|-|-|-| |
| 28 | +| Initial access | | | |
| 29 | +| Execution | | | |
| 30 | +| Persistence | | | |
| 31 | +| Privilege escalation | | | |
| 32 | +| Defense evasion | v | | |
| 33 | +| Credential Access | | | |
| 34 | +| Discovery | | | |
| 35 | +| Lateral movement | | | |
| 36 | +| Collection | | | |
| 37 | +| Command and control | | | |
| 38 | +| Exfiltration | | | |
| 39 | +| Impact | | | |
| 40 | +| Vulnerability | | | |
| 41 | +| Misconfiguration | | | |
| 42 | +| Malware, component | | | |
| 43 | + |
| 44 | +## See also |
| 45 | + |
| 46 | +* [Registry edits by campaigns using Qakbot malware](..\Persistence\qakbot-campaign-registry-edit.md) |
| 47 | +* [Process injection by Qakbot malware](..\Defense evasion\qakbot-campaign-process-injection.md) |
| 48 | +* [Browser cookie theft by campaigns using Qakbot malware](..\Discovery\qakbot-campaign-esentutl.md) |
| 49 | +* [Outlook email access by campaigns using Qakbot malware](..\Discovery\qakbot-campaign-outlook.md) |
| 50 | +* [Javascript use by Qakbot malware](..\Execution\qakbot-campaign-suspicious-javascript.md) |
| 51 | + |
| 52 | +## Contributor info |
| 53 | + |
| 54 | +**Contributor:** Microsoft Threat Protection team |
0 commit comments