MVISION Insights: Attempts to exploit Spring4Shell vulnerability to deploy crypto miners
Technical Articles ID:
KB95682
Last Modified: 5/19/2022
Last Modified: 5/19/2022
Environment
IMPORTANT: This Knowledge Base article discusses a specific threat that is being automatically tracked by MVISION Insights technology. The content is intended for use by MVISION Insights users, but is provided for general knowledge to all customers. Contact us for more information about MVISION Insights.
Summary
Description of Campaign
A threat actor behind cryptocurrency miners is targeting devices vulnerable to the Spring4Shell remote code execution bug. The flaw is tracked under CVE-2022-22965 and lies in the Spring model-view-controller and WebFlux applications running on Java Development Kit version 9. A PowerShell script is used prior to deploying the miner to turn off the firewall, kill processes belonging to other miners, download a binary, and create a scheduled task for persistence.
Our ATR Team gathers and analyzes information from multiple open and closed sources before disseminating intelligence reports. This campaign was researched by Trend Micro 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 MVISION 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:
Endpoint Security - Exploit Prevention:
Host Intrusion Prevention:
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:
Endpoint Security - Access Protection Rules:
A threat actor behind cryptocurrency miners is targeting devices vulnerable to the Spring4Shell remote code execution bug. The flaw is tracked under CVE-2022-22965 and lies in the Spring model-view-controller and WebFlux applications running on Java Development Kit version 9. A PowerShell script is used prior to deploying the miner to turn off the firewall, kill processes belonging to other miners, download a binary, and create a scheduled task for persistence.
Our ATR Team gathers and analyzes information from multiple open and closed sources before disseminating intelligence reports. This campaign was researched by Trend Micro 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 = "ditekSHen" description = "Detects coinmining malware" strings: $s1 = "%s/%s (Windows NT %lu.%lu" fullword ascii $s2 = "\\Microsoft\\Libs\\WR64.sys" wide $s3 = "\\\\.\\WinRing0_" wide $s4 = "pool_wallet" ascii $s5 = "cryptonight" ascii $s6 = "mining.submit" ascii $c1 = "stratum+ssl://" ascii $c2 = "daemon+http://" ascii $c3 = "stratum+tcp://" ascii $c4 = "socks5://" ascii $c5 = "losedaemon+https://" ascii condition: uint16(0) == 0x5a4d and (3 of ($s*) and 1 of ($c*)) } |
This Knowledge Base article discusses a specific threat that's being tracked. The list of IOCs will change over time; check MVISION Insights for the latest IOCs.
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: 208 Identify suspicious files executing from the roaming folder
Rule ID: 263 Detect processes accessing suspicious URLs
Rule ID: 263 Detect processes accessing suspicious URLs
Endpoint Security - Exploit Prevention:
Rule ID: 6083 Powershell Command Restriction - NonInteractive
Rule ID: 6081 Powershell Command Restriction - NoProfile
Rule ID: 6070 Hidden Powershell Detected
Rule ID: 344 T1547 - New Startup Program Creation
Rule ID: 6081 Powershell Command Restriction - NoProfile
Rule ID: 6070 Hidden Powershell Detected
Rule ID: 344 T1547 - New Startup Program Creation
Host Intrusion Prevention:
Rule ID: 6085 Powershell Command Restriction - File
Rule ID: 6113 T1055 - Fileless Threat: Reflective Self Injection
Rule ID: 6083 Powershell Command Restriction - NonInteractive
Rule ID: 6081 Powershell Command Restriction - NoProfile
Rule ID: 6070 Hidden Powershell Detected
Rule ID: 6082 Powershell Command Restriction - ExecutionPolicy Unrestricted
Rule ID: 6113 T1055 - Fileless Threat: Reflective Self Injection
Rule ID: 6083 Powershell Command Restriction - NonInteractive
Rule ID: 6081 Powershell Command Restriction - NoProfile
Rule ID: 6070 Hidden Powershell Detected
Rule ID: 6082 Powershell Command Restriction - ExecutionPolicy Unrestricted
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
Prevent programs registering to autorun
Prevent programs registering to autorun
Host Intrusion Prevention:
Rule ID: 6011 Generic Application Invocation Protection
Rule ID: 1148 CMD Tool Access by a Network Aware Application
Rule ID: 6010 Generic Application Hooking Protection
Rule ID: 1020 Windows Agent Shielding - File Access
Rule ID: 1148 CMD Tool Access by a Network Aware Application
Rule ID: 6010 Generic Application Hooking Protection
Rule ID: 1020 Windows Agent Shielding - File Access
Endpoint Security - Access Protection Rules:
Remotely accessing local files or folders
Registering of programs to autorun
Registering of programs to autorun