This is a simulation of attack by (Stardust Chollima) APT group targeting Chilean interbank network, The attack
campaign was active in December 2018, have used PowerRatankba, a PowerShell-based malware variant that
closely resembles the original Ratankba implant. The Redbanc corporate network was infected with a version of
the PowerRatankba that was not detected by anti-malware. The way attackers delivered the malware, according to
Flashpoint a trusted Redbanc IT professional clicked to apply to a job opening found on social media (linkedin).
I relied on Security Affairs to figure out the details to make this: https://securityaffairs.com/79929/breaking-news/chilean-research-redbank-lazarus.html
This attack is based on a scenario that seems very natural and realistic.
The attackers conduct job interviews in a completely normal way, and then inform the victim that they’ve been accepted for the position. Naturally, when someone gets accepted for a job, it’s expected that they will receive access to a company email or be asked to install certain programs required to start their tasks.
The scenario appears completely logical they might add you to the company’s Slack server, or ask you to download specialized tools or software. In some cases, they even ask you to start learning a new language like Spanish, and they tell you that they’ve already purchased a chair for you. All you need to do is install a certain application and enter your personal information into it.
But in reality, that application runs in the background and silently downloads a backdoor, giving the attackers unauthorized access to your device.
And the real objective of the attack is not the job itself, but the information on your personal device.
Many people still keep sensitive data from their previous jobs on their laptops such as documents, projects, or login credentials. So, the attacker is indirectly targeting the company the victim previously worked at, or even the one they’re currently working for, by using the victim’s personal machine.
Instead of launching a direct attack on the company, they exploit normal human behavior like the desire to find a better job and target individuals who already have access or sensitive knowledge. This gives the attacker a hidden entry point to breach organizations without raising suspicion.
1. Automatic Execution: When the program starts, it automatically calls the function ExecuteBase64Script(), which is responsible for decoding
and executing the malicious payload.
2. Base64-Encoded PowerShell Script: The program contains Base64-encoded data, which is often used to hide malicious commands from antivirus and
security software.
3. Execution with Unrestricted Policy: The PowerShell script is executed with bypassed execution policy (-ExecutionPolicy Bypass), meaning it ignores any
security restrictions on running scripts.
This is a known technique used by attackers to execute unauthorized PowerShell commands without user consent.
4. Decoding and Writing to File: The Base64 string is decoded and saved as a PowerShell script file named "PowerRatankba.ps1"
| **T1566.002** | Phishing: Spearphishing Link | Delivers a malicious job opportunity through social media (LinkedIn) to lure the victim into downloading the malware. |
| **T1204.002** | User Execution: Malicious File | Requires the victim to execute the downloaded PowerRatankba dropper. |
| **T1059.001** | Command and Scripting Interpreter: PowerShell | Executes attacker-issued PowerShell commands on the compromised host. |
| **T1105** | Ingress Tool Transfer | Downloads the next-stage payload from the attacker-controlled infrastructure. |
| **T1547.001** | Registry Run Keys / Startup Folder | Establishes persistence by creating a Windows Registry Run key executed at user logon. |
| **T1071.001** | Application Layer Protocol: Web Protocols | Communicates with the C2 server over HTTPS. |
| **T1027** | Obfuscated Files or Information | Uses obfuscation techniques to hinder static analysis of the dropper and payload. |
| **T1082** | System Information Discovery | Collects basic host information before processing attacker commands. |
| **T1036** | Masquerading | Uses legitimate-looking filenames and application metadata to reduce suspicion. |