# Agent Tesla RAT variant evading AV detection, exfiltrating via Telegram (Deep Instinct DIANNA analysis)

> Deep Instinct analyzed an Agent Tesla variant, a .NET RAT/infostealer active since 2014, that captures keystrokes, clipboard contents, browser credentials and email passwords and sends them to operators over Telegram. Deep Instinct's DSX Brain prevented the sample a day before its VirusTotal upload, and only a small number of major vendors flagged it two days after upload.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-01T04:55:27Z
- **Last updated:** 2026-12-01T04:55:27Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7133
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7133.png
- **ID:** TL-2026-7133
- **Severity:** MEDIUM
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 17

## Description

Agent Tesla is a commodity Remote Access Trojan and information stealer written in .NET (C#) that has been observed since at least 2014. It was originally marketed as a legitimate monitoring tool and sold as malware-as-a-service with a management panel; leaked builders have since made it available to many actors, and MITRE links it to SilverTerrier (G0083) and TA2541 (G1018). Malpedia also lists SWEED as an associated actor (Cisco Talos, July 2019) and treats OriginLogger as a direct evolution that shares much of its code. In its 2025-07-16 'DIANNA Explains 2' blog, Deep Instinct describes a variant it analyzed in the prior year (exact date not published). The variant steals keystrokes, clipboard contents, browser credentials and email passwords, grabs files, uses fake dialog boxes and prompts to coax out more information, and uses Telegram as the channel to send stolen data to its operators.

Static analysis in the article shows abnormal entropy in the .text section, which points to encoded or compressed content. The import table indicates registry interaction, temporary file creation, launching other programs and ACL modification. String-level capabilities include file operations, network communication and UI manipulation. The malware includes obfuscation and anti-analysis logic, including execution-timing checks and looking for security tools and adjusting behavior when they are found. Phishing is mentioned only in general terms as the delivery vector.

Evasion outcome: Deep Instinct states its DSX Brain, using a model a few months old, prevented the file in customer environments one day before it was uploaded to VirusTotal. Most leading vendors still did not classify it as malicious after upload; two days after upload (three days after prevention) a small number of major providers began flagging it. The post notes that such detection gaps can last hours, days or weeks. This supports behavioral and pre-execution prevention over signature-only controls.

Family-level context (NOT confirmed for this specific variant): MITRE ATT&CK S0331 documents SMTP/FTP/HTTP exfiltration with 3DES-encrypted data, Rijndael string encryption, Run-key and scheduled-task persistence, process hollowing and RegAsm.exe abuse, screenshot/webcam capture, Wi-Fi and FTP-client credential theft, WMI-based system discovery, and delivery via Office exploits CVE-2017-11882 and CVE-2017-8570. Malpedia (citing Unit 42) states the family can exfiltrate over HTTP(S), SMTP, FTP or Telegram. A Splunk STRT analysis (2022) of a different CHM-delivered sample describes a CHM -> JavaScript -> PowerShell -> in-memory .NET reflection loader, Obfuscar obfuscation, SetWindowsHookEx keylogging, a Tor download for proxied HTTP, and structured exfiltration naming (CO_/SC_/KL_ prefixes).

Scope and evidence limits: the Deep Instinct article publishes no hashes, IPs, domains, bot tokens, CVEs, attribution or campaign victimology, and does not confirm in-the-wild campaign details. Severity is an analyst estimate; this is a low-novelty, commodity-malware entry.

## MITRE ATT&CK

- T1566.001 Spearphishing Attachment
- T1204.002 Malicious File
- T1059.001 PowerShell
- T1547.001 Registry Run Keys / Startup Folder
- T1027 Obfuscated Files or Information
- T1497 Virtualization/Sandbox Evasion
- T1055.012 Process Hollowing
- T1218.009 Regsvcs/Regasm
- T1140 Deobfuscate/Decode Files or Information
- T1518.001 Security Software Discovery
- T1124 System Time Discovery
- T1033 System Owner/User Discovery
- T1056.001 Keylogging
- T1555.003 Credentials from Web Browsers
- T1555.005 Password Managers
- T1113 Screen Capture
- T1071.001 Web Protocols
- T1090.003 Multi-hop Proxy

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Agent Tesla CHM Loader — hh.exe Spawning Script or LOLBin Child Process** (`TL-2026-7133-SPL-001`)

Detects the Agent Tesla (TL-2026-7133) phishing-delivered CHM loader chain, where a compiled HTML help file opened by hh.exe spawns PowerShell, cmd, wscript, cscript, mshta, rundll32 or regsvr32 (CHM -> JavaScript -> PowerShell -> in-memory .NET loader, per the Splunk STRT analysis of the family). hh.exe has almost no legitimate reason to launch interpreters, so this is a high-signal initial-execution tripwire (T1566.001 / T1204.002 / T1059.001). Family-level behaviour; not confirmed for the Deep Instinct variant, which published no delivery detail.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1566.001, T1204.002, T1059.001
- **Data sources:** sysmon, index=sysmon sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational, DeviceProcessEvents
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 earliest=-24h ParentImage="*\\hh.exe" (Image="*\\powershell.exe" OR Image="*\\pwsh.exe" OR Image="*\\cmd.exe" OR Image="*\\wscript.exe" OR Image="*\\cscript.exe" OR Image="*\\mshta.exe" OR Image="*\\rundll32.exe" OR Image="*\\regsvr32.exe")
| stats count min(_time) as first_seen max(_time) as last_seen values(ParentCommandLine) as chm_command_line values(CommandLine) as child_command_lines by host, User, ParentImage, Image
| convert ctime(first_seen) ctime(last_seen)
| table first_seen last_seen host User ParentImage Image chm_command_line child_command_lines count
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName =~ "hh.exe"
| where FileName in~ ("powershell.exe", "pwsh.exe", "cmd.exe", "wscript.exe", "cscript.exe", "mshta.exe", "rundll32.exe", "regsvr32.exe")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, SHA256
| order by Timestamp desc
```

### Sigma

```yaml
title: Agent Tesla CHM Loader - hh.exe Spawning Script or LOLBin Child Process
id: 3f6a1c2e-8b47-4d19-a5c3-71e0b9d24f01
status: experimental
description: Detects hh.exe (HTML Help) launching PowerShell, cmd, script hosts, mshta, rundll32 or regsvr32, the CHM-based loader chain used by Agent Tesla campaigns (family-level behaviour).
references:
    - https://www.deepinstinct.com/blog/dianna-explains-2-agent-tesla-a-better-rat
    - https://splunk.com/en_us/blog/security/inside-the-mind-of-a-rat-agent-tesla-detection-and-analysis.html
    - https://attack.mitre.org/software/S0331/
author: Threadlinqs Team
date: 2026-12-01
tags:
    - attack.initial-access
    - attack.t1566.001
    - attack.execution
    - attack.t1204.002
    - attack.t1059.001
    - attack.s0331
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith: '\hh.exe'
    selection_child:
        Image|endswith:
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\cmd.exe'
            - '\wscript.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\rundll32.exe'
            - '\regsvr32.exe'
    condition: selection_parent and selection_child
falsepositives:
    - Legitimate help files that launch a helper process (rare; some legacy vendor CHM documentation)
level: high
```

**Known false positives:**

- Legacy vendor help (.chm) files that legitimately launch a helper executable or script
- IT training or documentation tooling that opens CHM files with embedded launch actions

**Tuning notes:** Adjust the index name to match your Sysmon index. Allow-list known vendor CHM paths via ParentCommandLine if a legitimate help file triggers. Consider widening the child list (certutil.exe, bitsadmin.exe) after a baseline period. Prioritize hits where the child command line contains reflection, base64 or download strings.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Agent Tesla In-Memory .NET Loader — PowerShell Reflection Assembly Load with Decode or Download (locked: unlock with TL Creds)
- Agent Tesla Run-Key Persistence Pointing to User-Writable Path (locked: unlock with TL Creds)
- Agent Tesla SMTP/FTP Exfiltration — Suspicious Process Connecting to Mail or FTP Ports (locked: unlock with TL Creds)
- Agent Tesla Office Exploit Delivery — EQNEDT32.EXE Spawning Child Process (CVE-2017-11882) (locked: unlock with TL Creds)
- Agent Tesla Sample Artifacts — Keylog File and Tor Package Staged in User Profile (locked: unlock with TL Creds)
- Agent Tesla Telegram C2 — Script Host, Hollowing Host or User-Writable Binary Connecting to [indicator] (locked: unlock with TL Creds)
- Agent Tesla RegAsm/RegSvcs Launched by Script Host or User-Writable Parent (Process Hollowing Host) (locked: unlock with TL Creds)
- Agent Tesla Telegram Bot API Exfiltration — Non-Browser DNS Resolution of [indicator] (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [DIANNA Explains 2: Agent Tesla—A Better RAT](https://www.deepinstinct.com/blog/dianna-explains-2-agent-tesla-a-better-rat)
- [MITRE ATT&CK: Agent Tesla (S0331)](https://attack.mitre.org/software/S0331/)
- [Splunk: Inside the Mind of a RAT - Agent Tesla Detection and Analysis](https://splunk.com/en_us/blog/security/inside-the-mind-of-a-rat-agent-tesla-detection-and-analysis.html)
- [Malpedia: Agent Tesla (win.agent_tesla)](https://malpedia.caad.fkie.fraunhofer.de/details/win.agent_tesla)
- [ManageEngine: Agent Tesla malware profile](https://www.manageengine.com/malware-protection/adversaries/agent-tesla.md)
- [Check Point Research: Agent Tesla targeting United States and Australia](https://research.checkpoint.com/2024/agent-tesla-targeting-united-states-and-australia/)
- [Sophos: Agent Tesla amps up information stealing attacks](https://www.sophos.com/en-us/blog/agent-tesla-amps-up-information-stealing-attacks)
- [SentinelOne: Agent Tesla - Old RAT uses new tricks to stay on top](https://labs.sentinelone.com/agent-tesla-old-rat-uses-new-tricks-to-stay-on-top/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7133
