Kevin is a Windows malware family associated with command-and-control over DNS and covert data exfiltration. It can transmit data from compromised hosts through a DNS-based C2 channel and exfiltrate information in small fixed-size chunks, including Base32-encoded chunks of output files, indicating an emphasis on fitting data into constrained protocol fields and reducing visibility. The malware also uploads logs and other collected data to its operators and supports hard-coded fallback domains to preserve C2 resiliency when primary infrastructure is unavailable.
Kevin incorporates multiple defense-evasion features. It can hide its active window from the victim by calling the ShowWindow API, generate dummy HTTP requests to obscure malicious traffic patterns, and delay between C2 communication attempts by sleeping for configurable intervals. It also uses masquerading-related tradecraft by renaming an image of cmd.exe with a randomized name and a nonstandard extension to reduce detection.
For persistence, Kevin can compile randomly generated MOF files into the Windows Management Instrumentation repository, enabling malware execution through WMI-based mechanisms. The observed behaviors support characterization of Kevin as a backdoor-oriented implant focused on stealthy communications, persistence, and exfiltration on Windows systems.
26 distinct techniques documented for this family, organized by ATT&CK tactic.
[Kevin](https://attack.mitre.org/software/S1020) can use a renamed image of `cmd.exe` for execution.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can use the `ShowWindow` API to avoid detection.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can compile randomly-generated MOF files into the WMI repository to persistently run malware.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can compile randomly-generated MOF files into the WMI repository to persistently run malware.(Citation: Kaspersky Lyceum October 2021)
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
[Kevin](https://attack.mitre.org/software/S1020) has Base64-encoded its configuration file.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) has renamed an image of `cmd.exe` with a random name followed by a `.tmpl` extension.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can delete files created on the victim's machine.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can sleep for a time interval between C2 communication attempts.(Citation: Kaspersky Lyceum October 2021)
Kevin can sleep for a time interval between C2 communication attempts.
[Kevin](https://attack.mitre.org/software/S1020) can hide the current window from the targeted user via the `ShowWindow` API function.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can collect the MAC address and other information from a victim machine using `ipconfig/all`.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can enumerate the OS version and hostname of a targeted machine.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can sleep for a time interval between C2 communication attempts.(Citation: Kaspersky Lyceum October 2021)
Kevin can sleep for a time interval between C2 communication attempts.
[Kevin](https://attack.mitre.org/software/S1020) can upload logs and other data from a compromised host.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can create directories to store logs and other collected data.(Citation: Kaspersky Lyceum October 2021)
BabyShark has encoded data using certutil before exfiltration... KONNI has used a custom base64 key to encode stolen data before exfiltration... Mafalda can encode data using Base64 prior to exfiltration.
[Kevin](https://attack.mitre.org/software/S1020) can generate a sequence of dummy HTTP C2 requests to obscure traffic.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can assign hard-coded fallback domains for C2.(Citation: Kaspersky Lyceum October 2021)
Variants of [Kevin](https://attack.mitre.org/software/S1020) can communicate with C2 over HTTP.(Citation: Kaspersky Lyceum October 2021)
Variants of [Kevin](https://attack.mitre.org/software/S1020) can communicate over DNS through queries to the server for constructed domain names with embedded information.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can download files to the compromised host.(Citation: Kaspersky Lyceum October 2021)
C2 traffic from ADVSTORESHELL is encrypted, then encoded with Base64 encoding... APT19 HTTP malware variant used Base64 to encode communications to the C2 server... APT33 has used base64 to encode command and control traffic.
[Kevin](https://attack.mitre.org/software/S1020) can Base32 encode chunks of output files during exfiltration.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can use a custom protocol tunneled through DNS or HTTP.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can exfiltrate data to the C2 server in 27-character chunks.(Citation: Kaspersky Lyceum October 2021)
[Kevin](https://attack.mitre.org/software/S1020) can send data from the victim host through a DNS C2 channel.(Citation: Kaspersky Lyceum October 2021)
Cannon exfiltrates collected data over email via SMTP/S and POP3/S C2 channels... CURIUM has used IMAP and SMTPS for exfiltration via tools such as IMAPLoader... Kevin can send data from the victim host through a DNS C2 channel... NightClub can use SMTP and DNS for file exfiltration and C2.
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.