Siloscape
- Type
- Backdoor
- Capabilities
- Privilege escalationPost exploitationDefense evasionReconnaissance
- Platforms
- Windows
Siloscape is malware that operates in compromised Windows containers and exploits a container vulnerability to escape to the underlying host. It is executed after an attacker obtains initial access to a Windows container through exploitation of a known vulnerability. Its privilege-escalation behavior includes impersonating the main thread of the Windows container execution service through the NtImpersonateThread native API. Siloscape also performs software discovery by searching for the Kubernetes command-line tool kubectl. It communicates with command-and-control infrastructure over Tor, concealing the origin and destination of its communications through anonymized routing. During execution, it uses native operating-system APIs and decrypts a command-and-control server password using a byte-by-byte XOR operation.
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
[Siloscape](https://attack.mitre.org/software/S0623) is executed after the attacker gains initial access to a Windows container using a known vulnerability.(Citation: Unit 42 Siloscape Jun 2021)
Execution
3 techniques
Execution
[Siloscape](https://attack.mitre.org/software/S0623) can run cmd through an IRC channel.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) makes various native API calls.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) can send kubectl commands to victim clusters through an IRC channel and can run kubectl locally to spread once within a victim cluster.(Citation: Unit 42 Siloscape Jun 2021)
Privilege Escalation
3 techniques
Privilege Escalation
[Siloscape](https://attack.mitre.org/software/S0623) has leveraged a vulnerability in Windows containers to perform an [Escape to Host](https://attack.mitre.org/techniques/T1611).(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) impersonates the main thread of <code>CExecSvc.exe</code> by calling <code>NtImpersonateThread</code>.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) maps the host’s C drive to the container by creating a global symbolic link to the host through the calling of <code>NtSetInformationSymbolicLink</code>.(Citation: Unit 42 Siloscape Jun 2021)
Stealth
3 techniques
Stealth
[Siloscape](https://attack.mitre.org/software/S0623) itself is obfuscated and uses obfuscated API calls.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) impersonates the main thread of <code>CExecSvc.exe</code> by calling <code>NtImpersonateThread</code>.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) has decrypted the password of the C2 server with a simple byte by byte XOR. [Siloscape](https://attack.mitre.org/software/S0623) also writes both an archive of [Tor](https://attack.mitre.org/software/S0183) and the <code>unzip</code> binary to disk from data embedded within the payload using Visual Studio’s Resource Manager.(Citation: Unit 42 Siloscape Jun 2021)
Discovery
3 techniques
Discovery
[Siloscape](https://attack.mitre.org/software/S0623) checks for Kubernetes node permissions.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) searches for the Kubernetes config file and other related files using a regular expression.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) searches for the kubectl binary.(Citation: Unit 42 Siloscape Jun 2021)
Collection
1 technique
Collection
Examples in the content include 'DropBook can unarchive data downloaded from the C2 to obtain the payload and persistence modules,' 'Molerats decompresses ZIP files once on the victim machine,' and 'Rocke has extracted tar.gz files after downloading them from a C2 server.'
Command and Control
2 techniques
Command and Control
[Siloscape](https://attack.mitre.org/software/S0623) connects to an IRC server for C2.(Citation: Unit 42 Siloscape Jun 2021)
[Siloscape](https://attack.mitre.org/software/S0623) uses [Tor](https://attack.mitre.org/software/S0183) to communicate with C2.(Citation: Unit 42 Siloscape Jun 2021)
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.