Skip to main content
Mallory
Malware

TextShell

Tracked since Feb 13, 2026 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK20Techniques
IOCs0Tracked
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.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

20 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

1 technique
T1189Drive-by CompromiseEvidence2

“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
T1059Command and Scripting InterpreterEvidence1

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

T1059.001PowerShellEvidence1

Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory

T1059.003Windows Command ShellEvidence1

Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory

T1059.009Cloud APIEvidence1

Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory

T1059.012Hypervisor CLIEvidence1

Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory

T1106Native APIEvidence2

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
T1055Process InjectionEvidence3

Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory

Stealth

10 techniques
T1027Obfuscated Files or InformationEvidence5

The packer also embedded a simple anti-debug trap... Besides, the first stage employs common techniques such API hammering and dynamic API resolution.

T1027.002Software PackingEvidence3

The report outlines four stages: a packed obfuscator (TextShell), a shellcode layer that inflates content with LZMA

T1027.007Dynamic API ResolutionEvidence1

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.

T1036MasqueradingEvidence1

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.

T1055Process InjectionEvidence3

Stage 1: A packer known as TextShell that loads obfuscated shellcode into memory

T1140Deobfuscate/Decode Files or InformationEvidence1

The report outlines four stages: a packed obfuscator (TextShell), a shellcode layer that inflates content with LZMA...

T1497Virtualization/Sandbox EvasionEvidence1

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.

T1497.001System ChecksEvidence1

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.

T1620Reflective Code LoadingEvidence4

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.

T1622Debugger EvasionEvidence3

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
T1497Virtualization/Sandbox EvasionEvidence1

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.

T1497.001System ChecksEvidence1

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.

T1622Debugger EvasionEvidence3

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
T1071Application Layer ProtocolEvidence1

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.

T1104Multi-Stage ChannelsEvidence1

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.

T1105Ingress Tool TransferEvidence1

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.

Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matchingMatch every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping20Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.