CORESHELL
- Type
- Downloader
- Capabilities
- PersistenceDefense evasion
- Delivery
- Spearphishing
- Platforms
- Windows
Sofacy, also known as SOURFACE and CORESHELL, is a Windows malware family used by APT28, the Russian military intelligence-linked cyberespionage group also known as Fancy Bear and Sednit. It has served as a first-stage implant and downloader, retrieving additional tools during intrusions. Its operational context includes espionage against government, military, and security organizations.
The family includes compiled C/C++ components. CORESHELL variants establish persistence through Registry autostart entries and shortcuts, and execute DLL components through the legitimate Windows Rundll32 utility. Command-and-control communications use web and mail protocols, with messages protected by custom stream ciphers using six-byte or eight-byte keys and encoded with Base64. Sofacy is also used as a name for the broader APT28 threat group; capabilities of that group's other implants are distinct from those of this malware family.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: FireEye APT28)(Citation: Secureworks IRON TWILIGHT Active Measures March 2017)
Techniques & procedures
27 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
5 techniques
Initial Access
They also send emails purportedly containing links to news items, but instead linking to malware drop sites that install toolkits onto the target's computer.
"it uses zero-day exploits..." / "used a zero-day exploit of Java..." / "utilized 'two zero-day vulnerabilities in Adobe Flash and the down-level Windows kernel.'"
Among other things, it uses zero-day exploits, spear phishing and malware to compromise targets.
APT28_2014-10_TrendMicro Operation Pawn Storm ... Case2_Military CooperationDecoy.doc ... Letter to IAEA.pdf_decoy ... International Military.rtf ... MH17.doc_decoy
The hackers used a spear phishing attack, directing emails to the false URL electronicfrontierfoundation.org.
Execution
3 techniques
Execution
Together with the help of above mentioned tools, the group gained access to the file system and registry; enumerate network resources; create processes...
Together with the help of above mentioned tools... execute shellcode...
Examples include “APT28 racing to exploit CVE-2017-11292 Flash vulnerability before patches are deployed”, “New Adobe Flash Zero-Day Used in Pawn Storm Campaign”, and “Adobe & Windows Zero-Day Exploits Likely Leveraged by Russia’s APT28”.
Persistence
1 technique
Persistence
[CORESHELL](https://attack.mitre.org/software/S0137) has established persistence by creating autostart extensibility point (ASEP) Registry entries in the Run key and other Registry keys, as well as by creating shortcuts in the Internet Explorer Quick Start folder.(Citation: Microsoft SIR Vol 19)
Privilege Escalation
2 techniques
Privilege Escalation
SIMILAR e49bce75070a7a3c63a7cebb699342b3_CVE-2014-4076_tan.exe_
[CORESHELL](https://attack.mitre.org/software/S0137) has established persistence by creating autostart extensibility point (ASEP) Registry entries in the Run key and other Registry keys, as well as by creating shortcuts in the Internet Explorer Quick Start folder.(Citation: Microsoft SIR Vol 19)
Stealth
3 techniques
Stealth
[CORESHELL](https://attack.mitre.org/software/S0137) obfuscates strings using a custom stream cipher.(Citation: FireEye APT28)
[CORESHELL](https://attack.mitre.org/software/S0137) contains unused machine instructions in a likely attempt to hinder analysis.(Citation: FireEye APT28)
[CORESHELL](https://attack.mitre.org/software/S0137) is installed via execution of rundll32 with an export named "init" or "InitW."(Citation: Microsoft SIR Vol 19)
Credential Access
2 techniques
Credential Access
Together with the help of above mentioned tools, the group gained access to the file system and registry; enumerate network resources; create processes; log keystrokes...
Together with the help of above mentioned tools... access stored credentials...
Discovery
5 techniques
Discovery
Together with the help of above mentioned tools, the group gained access to the file system and registry...
Together with the help of above mentioned tools, the group gained access to the file system and registry; enumerate network resources...
[CORESHELL](https://attack.mitre.org/software/S0137) collects hostname and OS version data from the victim and sends the information to its C2 server.(Citation: FireEye APT28)
Together with the help of above mentioned tools, the group gained access to the file system and registry; enumerate network resources...
[CORESHELL](https://attack.mitre.org/software/S0137) collects the volume serial number from the victim and sends the information to its C2 server.(Citation: FireEye APT28)
Collection
1 technique
Collection
Together with the help of above mentioned tools, the group gained access to the file system and registry; enumerate network resources; create processes; log keystrokes...
Command and Control
7 techniques
Command and Control
[CORESHELL](https://attack.mitre.org/software/S0137) can communicate over HTTP for C2.(Citation: FireEye APT28)(Citation: Microsoft SIR Vol 19)
[CORESHELL](https://attack.mitre.org/software/S0137) can communicate over SMTP and POP3 for C2.(Citation: FireEye APT28)(Citation: Microsoft SIR Vol 19)
[CORESHELL](https://attack.mitre.org/software/S0137) downloads another dropper from its C2 server.(Citation: FireEye APT28)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
[CORESHELL](https://attack.mitre.org/software/S0137) C2 messages are Base64-encoded.(Citation: FireEye APT28)
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[CORESHELL](https://attack.mitre.org/software/S0137) C2 messages are encrypted with custom stream ciphers using six-byte or eight-byte keys.(Citation: FireEye APT28)
Observables
152 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.