CostaBricks
- Type
- Loader
- Capabilities
- Defense evasionProcess injection
- Platforms
- Windows
CostaBricks is a custom Windows malware associated with the CostaRicto intrusion set. It is part of a bespoke toolset that has been used alongside other CostaRicto malware, including SombRAT and PS1. Publicly documented behavior shows that CostaBricks uses bytecode-based decryption to reveal embedded payloads at runtime, helping conceal its functionality until execution. It also employs a custom virtual-machine-style obfuscation mechanism to complicate analysis and hinder reverse engineering. CostaBricks is capable of injecting a payload directly into the memory of a compromised host, indicating use as an in-memory execution component and a defense-evasion mechanism. Reported API usage includes memory allocation and dynamic loading functions consistent with unpacking, runtime resolution, and payload execution. Available information supports characterization of CostaBricks as a custom loader used in targeted intrusions by CostaRicto against Windows systems.
Techniques & procedures
6 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
[CostaBricks](https://attack.mitre.org/software/S0614) has used a number of API calls, including `VirtualAlloc`, `VirtualFree`, `LoadLibraryA`, `GetProcAddress`, and `ExitProcess`.(Citation: BlackBerry CostaRicto November 2020)
Privilege Escalation
1 technique
Privilege Escalation
[CostaBricks](https://attack.mitre.org/software/S0614) can inject a payload into the memory of a compromised host.(Citation: BlackBerry CostaRicto November 2020)
Stealth
4 techniques
Stealth
[CostaBricks](https://attack.mitre.org/software/S0614) has added the entire unobfuscated code of the legitimate open source application Blink to its code.(Citation: BlackBerry CostaRicto November 2020)
[CostaBricks](https://attack.mitre.org/software/S0614) can implement a custom-built virtual machine mechanism to obfuscate its code.(Citation: BlackBerry CostaRicto November 2020)
[CostaBricks](https://attack.mitre.org/software/S0614) can inject a payload into the memory of a compromised host.(Citation: BlackBerry CostaRicto November 2020)
[CostaBricks](https://attack.mitre.org/software/S0614) has the ability to use bytecode to decrypt embedded payloads.(Citation: BlackBerry CostaRicto November 2020)
Command and Control
1 technique
Command and Control
[CostaBricks](https://attack.mitre.org/software/S0614) has been used to load [SombRAT](https://attack.mitre.org/software/S0615) onto a compromised host.(Citation: BlackBerry CostaRicto November 2020)
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.