Executive Summary

The Panchan cryptomining worm, first identified in 2022, continues to propagate across internet-facing systems through SSH brute force attacks and stolen SSH keys. Written in Golang as a peer-to-peer botnet, Panchan employs a rootkit for persistence and leverages Discord channels for command-and-control communications. The worm creates hidden directories with high-entropy names, demonstrates unusual resource consumption, and spreads by stealing SSH credentials from infected systems to pivot to additional hosts listed in known_hosts files. Despite its rudimentary design and detection by multiple security vendors, Panchan remains effective against unpatched and poorly secured systems.

This incident highlights the persistent threat of legacy malware families that continue to exploit fundamental security weaknesses in SSH configurations and access controls, demonstrating how basic security gaps enable widespread compromise campaigns.

Why This Matters Now

Legacy cryptomining worms like Panchan exploit persistent SSH security gaps across internet-facing infrastructure, highlighting urgent needs for passwordless authentication, proper key management, and egress filtering to prevent lateral movement and resource theft.

Attack Path Analysis

MITRE ATT&CK® Techniques

Potential Compliance Exposure

Sector Implications

Sources

Frequently Asked Questions

Panchan spreads through SSH brute force attacks and by stealing SSH private keys from infected systems, then using those credentials to pivot to other hosts listed in the victim's known_hosts file.

Cloud Native Security Fabric Mitigations and ControlsCNSF

Based on the attack progression modeled above, these are the defensive controls that would constrain each stage.

Aviatrix Zero Trust CNSF would likely constrain the Panchan worm's lateral movement and reduce its blast radius through network segmentation and controlled egress policies. The segmented architecture could limit SSH-based propagation between workloads and restrict unauthorized cryptocurrency mining communications.

Initial Compromise

Control: Cloud Native Security Fabric (CNSF)

Mitigation: Network segmentation and identity-aware access controls would likely limit the worm's ability to reach internal SSH servers from compromised perimeter systems

Privilege Escalation

Control: Zero Trust Segmentation

Mitigation: Workload isolation policies would likely constrain the rootkit's ability to access privileged system resources and communicate across network segments during privilege escalation attempts

Lateral Movement

Control: East-West Traffic Security

Mitigation: Identity-scoped network policies would likely prevent unauthorized SSH connections between workloads, even when attackers possess valid stolen private keys for lateral propagation

Command & Control

Control: Multicloud Visibility & Control

Mitigation: Centralized visibility into cross-cloud communications would likely detect and constrain unauthorized Discord-based C2 traffic patterns across the distributed infrastructure environment

Exfiltration

Control: Egress Security & Policy Enforcement

Mitigation: Controlled egress policies would likely limit the worm's ability to transmit stolen SSH credentials and private keys to external command infrastructure or peer systems

Impact (Mitigations)

Cryptocurrency mining operations would likely remain constrained to isolated network segments, reducing the overall scope of resource consumption and performance impact across the infrastructure

Impact at a Glance

Affected Business Functions

  • Server Infrastructure Operations
  • Compute Resource Management
  • Network Security Monitoring
  • SSH Remote Access Services
Operational Disruption

Estimated downtime: 3 days

Financial Impact

Estimated loss: $15,000

Data Exposure

SSH private keys, known_hosts files, system credentials, and potential lateral movement access to connected systems within the compromised network infrastructure

Recommended Actions

  • • Implement Zero Trust Segmentation to prevent SSH lateral movement by enforcing least privilege access policies and microsegmentation between systems
  • • Deploy Egress Security & Policy Enforcement to block unauthorized outbound connections to Discord and other non-business platforms used for C2 communication
  • • Enable East-West Traffic Security monitoring to detect suspicious SSH key usage and lateral movement patterns across internal networks
  • • Establish Multicloud Visibility & Control to identify anomalous SSH connection patterns and repeated authentication failures across cloud environments
  • • Implement Threat Detection & Anomaly Response capabilities to baseline normal SSH behavior and alert on credential theft activities and resource consumption spikes

Secure the Paths Between Cloud Workloads

A cloud-native security fabric that enforces Zero Trust across workload communication—reducing attack paths, compliance risk, and operational complexity.

Cta pattren Image