Trellix Insights: Panchan Peer-To-Peer Botnet Drops Crypto-Miners
Technical Articles ID:
KB95860
Last Modified: 2022-08-22 09:20:13 Etc/GMT
Last Modified: 2022-08-22 09:20:13 Etc/GMT
Environment
IMPORTANT: This Knowledge Base article discusses a specific threat that is being automatically tracked by Trellix Insights technology. The content is intended for use by Trellix Insights users, but is provided for general knowledge to all customers. Contact us for more information about Trellix Insights.
Summary
Description of Campaign
The Panchan peer-to-peer botnet was discovered in March 2022, is written in the Golang programming language, and uses SSH keys to move laterally. The malware was discovered to attack the telecom and education sectors with a focus on targets in Asia. Peer-to-peer communication is carried out over TCP port 1919, and the XMRig or nbhash malware is dropped to mine for cryptocurrency.
Our ATR team gathers and analyzes information from multiple open and closed sources before disseminating intelligence reports. This campaign was researched by Akamai Technologies and shared publicly.
How to use this article:
This Knowledge Base article discusses a specific threat that's being tracked. The list of IOCs will change over time; check Trellix Insights for the latest IOCs.
Campaign IOC
Minimum Content Versions
Detection Summary
Minimum set of Manual Rules to improve protection to block this campaign:
IMPORTANT: Always follow best practices when you enable new rules and signatures.
When you implement new rules or signatures, always set them to Report mode first and check the alerts generated. Resolve any issues that arise and then set the rules to Block. This step mitigates against triggering false positives and allows you to refine your configuration.
For more information, see KB87843 - List of and best practices for Endpoint Security Dynamic Application Containment rules.
Endpoint Security - Advanced Threat Protection:Rule ID: 239 Identify suspicious command parameter execution
Rule ID: 4 Use GTI file reputation to identify trusted or malicious files
Endpoint Security - Exploit Prevention:Rule ID: 6127 Suspicious LSASS Access from PowerShell
Rule ID: 6113 T1055 - Fileless Threat: Reflective Self Injection
Rule ID: 6143 T1003 - Attempt to Dump Password Hash from SAM Database
Rule ID: 8004 Fileless Threat: Malicious PowerShell Behavior Detected
Host Intrusion Prevention:Rule ID: 6070 Hidden PowerShell Detected
Rule ID: 6083 PowerShell Command Restriction - NonInteractive
Rule ID: 6113 T1055 - Fileless Threat: Reflective Self Injection
Rule ID: 6081 PowerShell Command Restriction - NoProfile
Aggressive set of Manual Rules to improve protection to block this campaign:
IMPORTANT: Always follow best practices when you enable new rules and signatures.
When you implement new rules or signatures, always set them to Report mode first and check the alerts generated. Resolve any issues that arise and then set the rules to Block. This step mitigates against triggering false positives and allows you to refine your configuration.
For more information, see KB87843 - List of and best practices for Endpoint Security Dynamic Application Containment rules.
VirusScan Enterprise - Access Protection Rules:Prevent creation of new executable files in the Windows folder
Host Intrusion Prevention:Rule ID: 1020 Windows Agent Shielding - File Access
Rule ID: 6010 Generic Application Hooking Protection
Rule ID: 412 Double File Extension Execution
Rule ID: 1148 CMD Tool Access by a Network Aware Application
Endpoint Security - Access Protection Rules:Creating new executable files in the Windows folder
The Panchan peer-to-peer botnet was discovered in March 2022, is written in the Golang programming language, and uses SSH keys to move laterally. The malware was discovered to attack the telecom and education sectors with a focus on targets in Asia. Peer-to-peer communication is carried out over TCP port 1919, and the XMRig or nbhash malware is dropped to mine for cryptocurrency.
Our ATR team gathers and analyzes information from multiple open and closed sources before disseminating intelligence reports. This campaign was researched by Akamai Technologies and shared publicly.
How to use this article:
- If a Threat Hunting table has been created, use the rules contained to search for malware related to this campaign.
- Review the product detection table and confirm that your environment is at least on the specified content version.
To download the latest content versions, go to the Security Updates page. - Scroll down and review the "Product Countermeasures" section of this article. Consider implementing them if they are not already in place.
- Review
KB91836 - Countermeasures for entry vector threats . - Review KB87843 - Dynamic Application Containment rules and best practices.
- Review KB82925 - Identify what rule corresponds to an Adaptive Threat Protection and Threat Intelligence Exchange event.
meta: author = "Stiv Kupchik" filetype = "ELF" version = "1.0" reference = "" strings: $go_magic = "\xFF Go buildinf:" ascii // All go binaries have this magic header - we use this to verify we have a Go binary $str_p2p_header = "pan-chan's mining rig hi!" ascii $str_sharepeer = "sharepeer" ascii $str_sharerigconfig = "sharerigconfig" ascii $str_godmode_login = "(*゚ー゚)/)/\" ascii $public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwaZwxk7A5U7cejo/8STO\x0a6TjEArLaG+EXhWQxjg2jwgtmNfYTOHg5Ss9e3vHdZCTEo/OIdJQC6If7POa+NbbR\x0a9HkagE0ZYjTXTWNP0PgUxEmcboYkO38fxMpI7Gp+331xzaYT4VY8t5Ko01lvkIoV\x0amxjDKJhSiUbCnFkz76qbjZHpLa0hcpXgO1sXx1IciwaVqlLpzncbmK7Ok3ymS3Ee\x0aG3KWQ/NEm4x8yHx07NI6b/cV/z5YOja9jul7POK8Owo17HuFIhfICgFk8Goc1VnM\x0aiypx91Thqz7IWaF5fTFdBp+0p/cUajcA6vDd3TM0FDzT4HafWppjsofOSoLvTwnq\x0aCwIDAQAB" condition: $go_magic and (all of ($str*) or $public_key) } |
This Knowledge Base article discusses a specific threat that's being tracked. The list of IOCs will change over time; check Trellix Insights for the latest IOCs.
Campaign IOC
Type | Value |
Minimum Content Versions
Content Type | Version |
Detection Summary
IOC | Scanner | Detection |
IOC | Scanner | Detection |
IOC | Scanner | Detection |
IOC | Scanner | Detection |
Minimum set of Manual Rules to improve protection to block this campaign:
IMPORTANT: Always follow best practices when you enable new rules and signatures.
When you implement new rules or signatures, always set them to Report mode first and check the alerts generated. Resolve any issues that arise and then set the rules to Block. This step mitigates against triggering false positives and allows you to refine your configuration.
For more information, see KB87843 - List of and best practices for Endpoint Security Dynamic Application Containment rules.
Endpoint Security - Advanced Threat Protection:
Rule ID: 4 Use GTI file reputation to identify trusted or malicious files
Endpoint Security - Exploit Prevention:
Rule ID: 6113 T1055 - Fileless Threat: Reflective Self Injection
Rule ID: 6143 T1003 - Attempt to Dump Password Hash from SAM Database
Rule ID: 8004 Fileless Threat: Malicious PowerShell Behavior Detected
Host Intrusion Prevention:
Rule ID: 6083 PowerShell Command Restriction - NonInteractive
Rule ID: 6113 T1055 - Fileless Threat: Reflective Self Injection
Rule ID: 6081 PowerShell Command Restriction - NoProfile
Aggressive set of Manual Rules to improve protection to block this campaign:
IMPORTANT: Always follow best practices when you enable new rules and signatures.
When you implement new rules or signatures, always set them to Report mode first and check the alerts generated. Resolve any issues that arise and then set the rules to Block. This step mitigates against triggering false positives and allows you to refine your configuration.
For more information, see KB87843 - List of and best practices for Endpoint Security Dynamic Application Containment rules.
VirusScan Enterprise - Access Protection Rules:
Host Intrusion Prevention:
Rule ID: 6010 Generic Application Hooking Protection
Rule ID: 412 Double File Extension Execution
Rule ID: 1148 CMD Tool Access by a Network Aware Application
Endpoint Security - Access Protection Rules: