Skip to main content
Mallory
Malware

Bagle

Tracked since Jan 29, 2026 · Updated 26 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
Vulns0Associated
Actors0Associated
ATT&CK16Techniques
IOCs4Tracked
Type
Worm
Capabilities
PersistenceDefense evasionSpoofing
Delivery
Malspam
Platforms
Windows

Bagle, also known as Beagle, is a large family of mass-mailing worms targeting Microsoft Windows. Its first variant, Bagle.A, was discovered on January 18, 2004. Bagle spreads primarily through malicious executable email attachments, using social engineering and benign-looking icons or file-type disguises to encourage execution. It harvests recipient addresses from local address books, text documents, and HTML files, then distributes itself using its own SMTP engine. Early variants perform direct mail-exchanger lookups and spoof sender addresses rather than relying on the victim’s email client configuration.

After execution, early Bagle variants copy themselves into the Windows system directory and establish startup persistence through registry Run entries. Bagle.A launches Windows Calculator to conceal its malicious activity. The family installs a backdoor that permits remote access; Bagle.A specifically supports downloading and executing arbitrary programs. Early variants also contact predefined web servers to report infection information. Many variants contain programmed dates after which propagation stops, although their behavior differs substantially across the family.

Bagle-infected systems were subsequently used in large spam-sending botnets, including campaigns advertising pharmaceuticals and replica watches. The family is also associated with a public rivalry involving the authors of Netsky and Mydoom, characterized by insulting messages embedded in malware and competing infection-removal routines. Bagle propagated internationally rather than targeting a specific industry.

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

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

Resource Development

3 techniques
T1583.001DomainsEvidence1

Early January saw a rise in activity from both the Lethic and Bagle spambots... it is currently responsible for about eight to ten per cent of the spam in our traps... The Bagle 2 botnet was only responsible for around 1.9 per cent of spam sent.

T1584.005BotnetEvidence1

These expanding networks of zombie PCs (dubbed 'botnets' by the computer underground) are most often used for spam distribution but they also serve as effective platforms for DDoS attacks.

T1585.002Email AccountsEvidence1

The "From" address field is spoofed, and may appear to be from someone you know.

Initial Access

1 technique
T1566.001Spearphishing AttachmentEvidence3

The attachment is an executable file with a random file. Once the user executes the file, the virus mails itself to all of the names found on the users hard drive | The new variant arrives in an e-mail with a spoofed sending address and a subject line that contains the term “ID” followed by a string of random characters. The text of the message simply says: “Yours ID” followed by another bunch of random characters. The attachment is an executable file with a random file.

Execution

1 technique
T1059Command and Scripting InterpreterEvidence1

It can be used to download and execute arbitrary programs from the Internet.

Persistence

1 technique
T1547.001Registry Run Keys / Startup FolderEvidence2

When a user executes Bagle's attachment, the virus puts copies of itself called "bbeagle.exe" into the Windows System folders and adds the following registry keys to allow it to run when the system is started: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run, "d3update.exe" = "%system%\bbeagle.exe"

Privilege Escalation

1 technique
T1547.001Registry Run Keys / Startup FolderEvidence2

When a user executes Bagle's attachment, the virus puts copies of itself called "bbeagle.exe" into the Windows System folders and adds the following registry keys to allow it to run when the system is started: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run, "d3update.exe" = "%system%\bbeagle.exe"

Stealth

1 technique
T1036MasqueradingEvidence2

The attachment has the Windows Calculator icon, and will launch the Calc.exe program to fool the user into thinking that's all they got.

Discovery

2 techniques
T1083File and Directory DiscoveryEvidence1

Bagle recursively searches all drives on the infected computer to locate Windows Address Book (WAB) files, text and HTML.

T1087.003Email AccountEvidence1

It parses these files and collects all email addresses it can find.

Collection

1 technique
T1114Email CollectionEvidence2

Once the user executes the file, the virus mails itself to all of the names found on the users hard drive, with the exception of addresses in the Hotmail, MSN, Microsoft and AVP domains.

Command and Control

6 techniques
T1071Application Layer ProtocolEvidence2

Once running, Bagle will attempt to connect with a PHP script on a series of internally hard-coded web sites.

T1071.001Web ProtocolsEvidence1

When the worm is started it connects to a list of predefined web servers and tries to access a PHP file with certain parameters. One of the parameters is the TCP port where the backdoor is listening which suggests that this functionality is used to collect the addresses of infected computers.

T1071.003Mail ProtocolsEvidence1

Using its own SMTP engine Bagle sends messages with infected attachments to the collected addresses. The SMTP engine uses direct Mail eXchange (MX) lookup on the target domain so it does not depend on email settings of the infected computer.

T1095Non-Application Layer ProtocolEvidence1

The virus also listens on port 6777 for a malicious user to connect.

T1105Ingress Tool TransferEvidence2

According to MessageLabs, Bagle also attempts to download a Trojan proxy component called Backdoor-CBJ.

T1219Remote Access ToolsEvidence1

Bagel contains a backdoor that listens on a TCP port 6777 which is hardcoded in the worm's body. This backdoor component provides remote access to the infected computer.

Indicators of compromise

Observables

4 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
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 matching4Match 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 mapping16Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.