TextShell
- Type
- Crypter
- Capabilities
- Defense evasion
- Delivery
- Landing page
- Platforms
- Windows
TextShell is a Windows malware packer and obfuscator used as the first stage of the OysterLoader infection chain. It conceals next-stage code and executes it directly in memory. Its anti-analysis techniques include excessive calls to legitimate Windows APIs, dynamic API resolution through custom hashing, and debugger detection that can divert execution into an infinite loop. TextShell allocates executable memory, copies concealed payload data into it, and transfers execution to embedded shellcode.
In the OysterLoader chain, TextShell precedes a shellcode decompression stage, an intermediate DLL downloader, and the core loader. These later components perform payload retrieval, command-and-control communication, and scheduled-task persistence; those functions are distinct from TextShell's packing and execution role. OysterLoader campaigns distribute malicious installers through websites impersonating legitimate software downloads and have delivered Vidar and supported intrusions leading to Rhysida ransomware deployment.
Techniques & procedures
20 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
“It is mainly distributed via web sites impersonating legitimate software… The loader is disguised as a software installer and serves as a MicroSoft Installer (MSI). The MSI is often signed to appear benign.”
Execution
6 techniques
Execution
Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory Stage 2: Custom shellcode that decompresses the core payload using a modified LZMA routine
Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory
Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory
Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory
Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory
The first stage, known as TextShell, employs API call flooding with hundreds of legitimate Windows DLL calls, including GDI functions, specifically designed to evade heuristic detection systems.
Privilege Escalation
1 technique
Privilege Escalation
Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory
Stealth
10 techniques
Stealth
The packer also embedded a simple anti-debug trap... Besides, the first stage employs common techniques such API hammering and dynamic API resolution.
The report outlines four stages: a packed obfuscator (TextShell), a shellcode layer that inflates content with LZMA
Dynamic API resolution often implemented through custom hashing algorithms is a widespread technique in modern malware... the packer is no exception: it relies on dynamically imported APIs, but each sample uses a slightly different hashing algorithm.
The malware is distributed mainly through fake websites that copy legitimate software. It is disguised as a software installer and serves as a MicroSoft Installer (MSI). The MSI is often signed to appear benign.
Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory
The report outlines four stages: a packed obfuscator (TextShell), a shellcode layer that inflates content with LZMA...
The code of the initial stage is full of useless API calls to legitimate DLL, the objectives being to avoid execution in particular environments... Mislead sandboxes... The main function uses EnumProcess to count the number of running processes, if the count is below 60, the malware exits.
The first stage, known as TextShell, employs API call flooding ... specifically designed to evade heuristic detection systems, confuse sandbox analysis environments, and hinder reverse engineering efforts.
To load it, it allocates a memory area with necessary permissions (Read, Write, Execute) and makes a raw copy of the data in the newly allocated memory.
A more intentional anti-analysis mechanism is the IsDebuggerPresent() check; if a debugger is detected, the malware enters an infinite loop ( while(1); ), effectively freezing execution and preventing dynamic analysis.
Discovery
3 techniques
Discovery
The code of the initial stage is full of useless API calls to legitimate DLL, the objectives being to avoid execution in particular environments... Mislead sandboxes... The main function uses EnumProcess to count the number of running processes, if the count is below 60, the malware exits.
The first stage, known as TextShell, employs API call flooding ... specifically designed to evade heuristic detection systems, confuse sandbox analysis environments, and hinder reverse engineering efforts.
A more intentional anti-analysis mechanism is the IsDebuggerPresent() check; if a debugger is detected, the malware enters an infinite loop ( while(1); ), effectively freezing execution and preventing dynamic analysis.
Command and Control
3 techniques
Command and Control
More sophisticated command-and-control and obfuscation tactics have been integrated into the OysterLoader malware... Multiple environment checks are then conducted by an intermediate downloader, which also begins C2 communications... the malware has since pivoted to sending an empty GET request to /api/v2/init, where a fingerprint is also submitted, before beaconing to an assigned endpoint.
OysterLoader... has been deployed through an updated multi-stage infection chain... Multiple environment checks are then conducted by an intermediate downloader, which also begins C2 communications, before the delivery of the core payload as a DLL.
OysterLoader... has been deployed through an updated multi-stage infection chain... Multiple environment checks are then conducted by an intermediate downloader, which also begins C2 communications, before the delivery of the core payload as a DLL.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.