Special Disinfection Tool
F-Secure has developed a special disinfection tool for this worm. The tool will detect and remove an active Bagle infection from the computer.
The Bagle removal tool can be downloaded in a ZIP file from:
System administrators who are using F-Secure Policy Manager, can distribute the F-BAGLE tool as a JAR package automatically to all workstations. The package can be downloaded from:
Manual Disinfection
Manual disinfection of Bagle consists of the following steps:
OR
Remote Removal
F-Secure can confirm that the remote removal method found by Joe Stewart of Lurhq does indeed work.
Please note that the usage of this method against someone else's computers may be legally questionable.
Sending a specific byte sequence to port 6777 on the infected computers causes the worm to delete itself from the System Directory and terminate its process. The registry values are not removed but since the file does not exist Windows will ignore those.
The byte sequence to be sent:
Email-Worm:W32/Bagle.HR differs from previous Bagle variants in that it is itself capable of functioning as a trojan-downloader, rather than depending on a separate trojan-downloader program.
In addition, the worm uses rootkit technology to disguise its presence on the computer.
Execution
Upon executing for the first time, Bagle.HR it shows the following dialog box as a decoy:
It will display the same message regardless of the file chosen.
In order to check itself for first execution, Bagle.HR checks the following registry entry:
If the said registry entry is available it will no longer show the dialog box.
Bagle.HR drops copies of itself in the following path and filename:
It also drops the following rootkit driver to hide its malicious activities:
To enable automatic execution upon boot, it adds the following auto start entry but waits for 300000 ms before adding it:
It also adds its rootkit driver component as a service by adding the following changes to the registry:
Bagle.HR deletes the following key in order to prevent the user from booting into safe mode:
Activity
Bagle.HR downloads other malware from the following links:
The rootkit driver terminates and deletes the following files that are related to antivirus software: