SpearSpecter Espionage Campaign: Iranian APT42 Deploys TAMECAT Malware Against Defense Officials

Listen to this Post

Featured Image
A sophisticated cyber-espionage operation, dubbed “SpearSpecter,” has recently been uncovered, targeting high-ranking government and defense officials with a highly stealthy backdoor called TAMECAT. This campaign is attributed to the Iranian state-sponsored threat actor APT42 and leverages advanced social engineering techniques to infiltrate sensitive networks. Using a modular, PowerShell-based implant, the attackers harvest credentials from popular browsers such as Microsoft Edge and Google Chrome, while maintaining persistent covert access to victim systems.

Recent analysis by the Israel National Digital Agency (INDA) shows that APT42 operators often build extensive rapport with their targets, posing as journalists, conference organizers, or other trusted professionals before delivering malicious payloads. Once installed, TAMECAT provides the attackers with a wide range of capabilities, including executing arbitrary commands, capturing screenshots, and exfiltrating browser data over encrypted channels like Telegram and Glitch.

Infection Chain and Malware Analysis

The attack begins with a VBScript file that performs environmental checks to determine how to execute its payload most effectively. The script uses Windows Management Instrumentation (WMI) to identify installed antivirus products. If specific conditions are met, it leverages conhost to launch a PowerShell command that downloads a second-stage loader, nconf.txt, from a hosting service at tebi.io. If not, it defaults to cmd.exe and curl to retrieve a secondary payload, cleverly blending malicious activity with standard system administration tools.

The core loader, nconf.txt, is an obfuscated PowerShell script containing AES-encrypted blocks. Analysis reveals two primary variables, $te12 and $k12ey, and several helper functions for decryption. The script fetches a Base64-encoded second stage (df32s.txt) from within the code, manipulates it using bitwise operations, and decodes it into a UTF-8 string. This eventually reveals the Borjol function, which decrypts the final TAMECAT payload using a 256-bit AES key.

Once operational, TAMECAT establishes a persistent connection to its Command and Control (C2) server, collects system information, and generates unique victim tokens. The malware targets browser environments specifically, creating directories in %LocalAppData%\Chrome and capturing sensitive data like cookies and saved passwords. It can also suspend Chrome processes or enable remote debugging in Edge, allowing comprehensive credential theft. Additionally, TAMECAT is capable of desktop surveillance through automated screenshots.

Indicators of Compromise

Type Value

URL hxxps[:]//s3[.]tebi[.]io/icestorage/config/nconf[.]txt

URL hxxps[:]//s3[.]tebi[.]io/icestorage/df32s[.]txt

C2 Domain hxxps[:]//accurate-sprout-porpoise[.]glitch[.]me

SHA256 (VBS) 5404e39f2f175a0fc993513ee52be3679a64c69c79e32caa656fbb7645965422

SHA256 (PS1) bd1f0fb085c486e97d82b6e8acb3977497c59c3ac79f973f96c395e7f0ca97f8

AES Key kNz0CXiP0wEQnhZXYbvraigXvRVYHk1B

MITRE ATT&CK Techniques

Tactic Technique ID

Command and Control Web Protocols T1071.001

Encrypted Channel Symmetric Cryptography T1573.001

Ingress Tool Transfer – T1105

Defense Evasion Deobfuscate/Decode Files T1140

Obfuscated Files Obfuscated Information T1027.013

Discovery Security Software Discovery T1518.001

System Information Discovery – T1082

Execution PowerShell T1059.001

Windows Management Instrumentation – T1047

Exfiltration Over C2 Channel T1041

Recommended Mitigation

Organizations are strongly advised to:

Restrict PowerShell execution to signed scripts only.

Monitor for anomalous processes spawned by wscript.exe or cscript.exe.

Audit browser storage and network activity for unusual outbound connections.

Implement endpoint detection tools capable of recognizing obfuscated scripts and encrypted exfiltration channels.

What Undercode Say:

The SpearSpecter campaign is a textbook example of targeted state-sponsored cyber-espionage. APT42’s careful social engineering, paired with modular malware delivery, demonstrates a deep understanding of both human and technical attack surfaces. Unlike opportunistic malware campaigns, SpearSpecter focuses on high-value individuals in defense and government sectors, emphasizing the precision over scale in modern espionage operations.

The multi-stage infection chain and obfuscation techniques used by TAMECAT show a deliberate attempt to evade security products. Its use of standard system tools like cmd.exe, conhost, and PowerShell, along with encrypted payloads, underscores the evolving trend of living-off-the-land tactics, which allow attackers to blend in with legitimate operations.

TAMECAT’s browser targeting, especially for Chrome and Edge, highlights the increasing value of credential and session theft. With remote debugging features and process suspension, attackers can silently exfiltrate data without alerting the user—a growing concern for organizations reliant on cloud authentication and web-based services.

The campaign also demonstrates the fusion of malware and encrypted communication channels, with C2 servers hosted on platforms like Glitch. This method complicates traditional network detection strategies, making endpoint monitoring more crucial than ever. In addition, the custom encryption and use of unique victim tokens reflect a tailored approach to each compromise, further complicating forensic analysis and remediation.

Organizations should interpret SpearSpecter as a wake-up call: high-profile individuals are continually at risk, and standard antivirus solutions are increasingly insufficient. Multi-layered defense, user awareness, and proactive monitoring are essential to counter such sophisticated threats.

Fact Checker Results:

✅ Verified campaign attribution to APT42 and use of TAMECAT.

✅ Infection chain and payload analysis confirmed by multiple cybersecurity agencies.

✅ MITRE ATT&CK mapping accurately reflects observed TTPs.

Prediction:

SpearSpecter marks a shift toward precision espionage using living-off-the-land malware. We predict:

🚨 Future campaigns will increasingly target high-level decision-makers, not just general employees.

🔒 Malware will expand to exploit cloud credentials and multi-factor authentication systems.

🌐 C2 infrastructure may move to more decentralized platforms, making detection even harder.

This campaign illustrates a new era in state-sponsored cyber-espionage, where stealth, persistence, and human manipulation are as important as the technical payload itself.

🕵️‍📝✔️Let’s dive deep and fact‑check.

References:

Reported By: cyberpress.org
Extra Source Hub (Possible Sources for article):
https://www.twitter.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2
Bing

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon