Agenttesla
Overview
Executive Summary
Agent Tesla is a highly prevalent, commercially available Information Stealer (InfoStealer) and advanced Keylogger written in .NET. It is sold openly on underground forums under a Malware-as-a-Service (MaaS) model, making it accessible to low-skill threat actors. It is designed to comprehensively harvest sensitive data from infected machines, focusing heavily on corporate email credentials, web browser data, and capturing user keystrokes.Infection Vector and Technical Capabilities
Agent Tesla is overwhelmingly distributed via targeted phishing and broad malspam campaigns. The emails typically contain malicious ZIP files, ISO images, or weaponized Office documents (using equation editor exploits or macros) that execute the initial dropper. Once active, it operates as a stealthy data vacuum:- Extensive Credential Harvesting: Agent Tesla targets dozens of specific applications. It decrypts and steals saved passwords from web browsers (Chrome, Edge, Firefox), email clients (Outlook, Thunderbird), FTP clients, and VPN software.
- Surveillance (Keylogging & Screen Capture): It features a robust keylogger that captures every keystroke. It also routinely takes covert screenshots of the victim's desktop, compiling all this data into hidden, encrypted log files.
- Diverse Exfiltration Methods: To evade network detection, Agent Tesla supports multiple exfiltration channels. It can send the stolen data back to the attacker via traditional SMTP (email), upload it to a compromised FTP server, or increasingly, abuse the legitimate Telegram API or Discord webhooks to exfiltrate data through trusted encrypted channels.
Threat Assessment
An Agent Tesla infection is a severe data privacy and security breach. The theft of valid corporate email credentials leads directly to catastrophic Business Email Compromise (BEC) fraud, while stolen VPN credentials provide attackers with direct access to the internal network.Incident Response and Remediation
- Mandatory Credential Reset: Assume all passwords typed or saved on the infected machine are compromised. Immediately force a password reset for the user's Active Directory account, corporate email, VPN access, and any relevant third-party services.
- MFA Enforcement: Ensure strict Multi-Factor Authentication (MFA) is enforced across all corporate portals to mitigate the risk of stolen passwords being reused.
- Egress Traffic Analysis: Because Agent Tesla often uses Telegram or SMTP for exfiltration, review firewall logs for anomalous outbound connections from the endpoint. Block unauthorized use of the Telegram API or non-standard SMTP traffic.
Known aliases
Threat reports may refer to this family under multiple names:
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1056.001: Implement Endpoint Detection and Response (EDR) to monitor for suspicious API calls related to keystroke interception. Enforce Multi-Factor Authentication (MFA) to render stolen passwords useless.
- T1566.001: Scan email attachments for malicious macros, scripts, or suspicious archive files.
Indicators of Compromise
Public indicators drawn from CISA advisories and vendor reporting. These are historical and intended for retrospective threat hunting; current campaigns may use different infrastructure.
Delivery vectors
Phishing with ISO/IMG/RAR attachmentsOffice documents exploiting CVE-2017-11882 (Equation Editor)Loaders like GuLoader and Snake Keylogger droppers
Network indicators
SMTP to attacker-controlled mailbox (often a free webmail account)FTP uploads to compromised legitimate hostsTelegram Bot API calls to api.telegram.org
Persistence mechanisms
Copy to %APPDATA% with randomized filenameRun key under HKCU\Software\Microsoft\Windows\CurrentVersion\RunScheduled task with hidden window
Detection Guidance
Detection ideas drawn from public reporting. Tune to your environment before deploying.
- YARA rule AgentTesla_Stealer from public repos
- Network rule for SMTP authentication from non-mail-server hosts
- EDR rule for RegAsm.exe or AppLaunch.exe with no parent IDE process
Generated Detections (Boilerplate)
These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.
YARA Rule
rule MALWARE_WIN_AGENTTESLA {
meta:
description = "Detects Agenttesla (infostealer)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "agenttesla" ascii wide nocase
$s2 = "infostealer.agenttesla" ascii wide nocase
$s3 = "keylogger.agenttesla" ascii wide nocase
$s4 = "msil/agenttesla" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Agenttesla Activity
id: 6aafae42beb96c4465d1982306e7285b
status: experimental
description: Detects generic indicators of the agenttesla malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*agenttesla*"
- "*infostealer.agenttesla*"
- "*keylogger.agenttesla*"
- "*msil/agenttesla*"
condition: selection
level: mediumContainment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Isolate host and capture memory if possible
- Rotate all credentials stored in browsers, FTP clients, email clients on the host
- Revoke and reissue VPN certificates used on the host
- Block known SMTP/FTP exfil endpoints and Telegram if not business-essential
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not just delete the binary — credentials are likely already exfiltrated
- Do not assume free webmail SMTP destinations are benign
- Do not skip user notification — phishing targeting their contacts often follows
References & External Analysis
- MITRE ATT&CK: Agent Tesla (S0331)
- Search "agenttesla" on VirusTotal (External Analysis)
Frequently Asked Questions
What is Agent Tesla?
A .NET-based spyware trojan, observed since at least 2014, used to steal credentials and log activity on infected machines.
What does Agent Tesla steal?
Saved credentials from browsers and email/FTP clients, keystrokes, clipboard contents, and screenshots.
How is Agent Tesla delivered?
Mainly through phishing emails carrying malicious documents or archive attachments.
How does it send stolen data out?
Commonly over email (SMTP), FTP, or messaging services to attacker-controlled accounts.
How can I protect against keyloggers like Agent Tesla?
Use multi-factor authentication so stolen passwords alone are insufficient, be cautious with attachments, and keep endpoint protection updated.
Where is the authoritative reference?
MITRE ATT&CK's Agent Tesla entry (S0331), linked on this page.
How do I remove the Agenttesla Infostealer from Windows?
Manual removal of Agenttesla is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Agenttesla a virus or a Infostealer?
Agenttesla is classified as a Infostealer. Unlike traditional viruses that infect files, modern malware like Agenttesla typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Agenttesla infection?
Symptoms of Agenttesla can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Related Families (Category: infostealer)
Explore other malware families in the same category:
Protect Your Network Against Infostealers
Want to prevent Agenttesla and similar threats from compromising your organization? Read our comprehensive defensive guide: Infostealer Protection Guide.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/agenttesla.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.