Penquin
- Type
- Backdoor
- Capabilities
- ExfiltrationDefense evasionReconnaissancePost exploitation
- Platforms
- Linux
Penquin_x64 is a 64-bit variant of Penquin, a GNU/Linux backdoor attributed to the Turla threat group. Publicly analyzed in 2020, it extends a family previously identified in 32-bit form. Penquin supports remote execution of downloaded programs, file exfiltration over its command-and-control channel, and reporting of the compromised host’s IP address.
Penquin uses a passive, packet-triggered activation mechanism rather than a fixed command-and-control address. It monitors network traffic for specially crafted TCP or UDP packets, validates the trigger, and extracts the command-and-control destination from the packet before initiating contact. Its activation logic tracks packet identifiers to avoid accepting the same trigger consecutively. Communications can be encrypted with Blowfish using a symmetric key established through Diffie–Hellman key exchange.
Defense-evasion behaviors include masquerading as a legitimate system scheduling component, removing identifying strings from binaries, and deleting downloaded executables after running them. Internet-facing server infections have been identified in Europe, Russia, and the United States, including virtual private servers across multiple hosting providers. Some Penquin-infected servers have also hosted command-and-control components associated with other Turla tools.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Techniques & procedures
25 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
[Penquin](https://attack.mitre.org/software/S0587) can use Cron to create periodic and pre-scheduled background jobs.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) can execute remote commands using bash scripts.(Citation: Leonardo Turla Penquin May 2020)
Persistence
4 techniques
Persistence
[Penquin](https://attack.mitre.org/software/S0587) can use Cron to create periodic and pre-scheduled background jobs.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) will connect to C2 only after sniffing a "magic packet" value in TCP or UDP packets matching specific conditions.(Citation: Leonardo Turla Penquin May 2020)(Citation: Kaspersky Turla Penquin December 2014)
[Penquin](https://attack.mitre.org/software/S0587) installs a `TCP` and `UDP` filter on the `eth0` interface.(Citation: Leonardo Turla Penquin May 2020)
This threat, despite being a compiled and relatively complex binary, has the same capabilities that are usually found in webshells. Furthermore, the group itself could be said to use them in a similar way than other less advanced groups using webshells
Privilege Escalation
1 technique
Privilege Escalation
[Penquin](https://attack.mitre.org/software/S0587) can use Cron to create periodic and pre-scheduled background jobs.(Citation: Leonardo Turla Penquin May 2020)
Stealth
8 techniques
Stealth
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.
[Penquin](https://attack.mitre.org/software/S0587) can remove strings from binaries.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) has encrypted strings in the binary for obfuscation.(Citation: Leonardo Turla Penquin May 2020)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[Penquin](https://attack.mitre.org/software/S0587) has mimicked the Cron binary to hide itself on compromised systems.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) can delete downloaded executables after running them.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) will connect to C2 only after sniffing a "magic packet" value in TCP or UDP packets matching specific conditions.(Citation: Leonardo Turla Penquin May 2020)(Citation: Kaspersky Turla Penquin December 2014)
[Penquin](https://attack.mitre.org/software/S0587) installs a `TCP` and `UDP` filter on the `eth0` interface.(Citation: Leonardo Turla Penquin May 2020)
Defense Impairment
1 technique
Defense Impairment
[Penquin](https://attack.mitre.org/software/S0587) can add the executable flag to a downloaded file.(Citation: Leonardo Turla Penquin May 2020)
Credential Access
1 technique
Credential Access
[Penquin](https://attack.mitre.org/software/S0587) can sniff network traffic to look for packets matching specific conditions.(Citation: Leonardo Turla Penquin May 2020)(Citation: Kaspersky Turla Penquin December 2014)
Discovery
6 techniques
Discovery
[Penquin](https://attack.mitre.org/software/S0587) can report the IP of the compromised host to attacker controlled infrastructure.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) can sniff network traffic to look for packets matching specific conditions.(Citation: Leonardo Turla Penquin May 2020)(Citation: Kaspersky Turla Penquin December 2014)
[Penquin](https://attack.mitre.org/software/S0587) can report the file system type of a compromised host to C2.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) can use the command code <code>do_vslist</code> to send file names, size, and status to C2.(Citation: Leonardo Turla Penquin May 2020)
Numerous entries mention enumerating drives, logical disks, disk type, free space, or volume information; examples include 'Babuk can enumerate disk volumes,' 'Cuba can enumerate local drives,' and 'TAINTEDSCRIBE can use DriveList to retrieve drive information.'
[Penquin](https://attack.mitre.org/software/S0587) can report the disk space of a compromised host to C2.(Citation: Leonardo Turla Penquin May 2020)
Command and Control
8 techniques
Command and Control
this threat does not have its own command and control server, but rather stands by waiting for a very specific packet generated by the attacker and from that packet it extracts its command and control server.
it has been observed how in servers infected by this threat, command and controls from other Turla tools have been deployed in order to use them as infrastructure in recent campaigns.
The [Penquin](https://attack.mitre.org/software/S0587) C2 mechanism is based on TCP and UDP packets.(Citation: Kaspersky Turla Penquin December 2014)(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) can execute the command code <code>do_download</code> to retrieve remote files from C2.(Citation: Leonardo Turla Penquin May 2020)
[Penquin](https://attack.mitre.org/software/S0587) will connect to C2 only after sniffing a "magic packet" value in TCP or UDP packets matching specific conditions.(Citation: Leonardo Turla Penquin May 2020)(Citation: Kaspersky Turla Penquin December 2014)
[Penquin](https://attack.mitre.org/software/S0587) installs a `TCP` and `UDP` filter on the `eth0` interface.(Citation: Leonardo Turla Penquin May 2020)
The content repeatedly describes malware and threat actors using SSL, TLS, HTTPS, RSA, AES, Blowfish, RC4, ECIES, Diffie-Hellman, OpenSSL, WolfSSL, and mutual TLS to protect command and control traffic.
[Penquin](https://attack.mitre.org/software/S0587) can encrypt communications using the BlowFish algorithm and a symmetric key exchanged with Diffie Hellman.(Citation: Leonardo Turla Penquin May 2020)
Exfiltration
1 technique
Exfiltration
[Penquin](https://attack.mitre.org/software/S0587) can execute the command code <code>do_upload</code> to send files to C2.(Citation: Leonardo Turla Penquin May 2020)
Observables
11 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
22 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.