Trap email in the name of a Romanian bank: analysis of the Agent Tesla file

Analysis originally published in July 2020.

The accounting department of a client received an email that appeared to come from Banca Transilvania, with an attachment named like a PDF document. The file was in fact an .iso image containing Agent Tesla, a program that extracts the passwords saved on the computer and sends them to the attacker. The impact was zero: the employee recognised the trap and sent the message for analysis.

Key points

  • The subject of the message was “FW: Banca Transilvania” and the attachment was called Document_BT24PDF.iso.
  • The word “PDF” in the name hid the real extension, .iso, and inside there was a single .exe file.
  • Run in a test system, the program waited for a while, then tried to send data to an FTP server on a compromised Romanian domain.
  • The FTP credentials were no longer valid, so the program had nowhere to send what it stole.
  • The attempt was stopped thanks to the cybersecurity and data protection sessions held with every department.

Why the impact was zero

The attempt was reported immediately and forwarded to us for analysis. The explanation lies in the cybersecurity and data protection sessions held with all the client’s departments, especially those that handle personal data or work in accounting.

Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis

The attachment

The subject “FW: Banca Transilvania” is chosen to attract attention. The file name, Document_BT24PDF.iso, shows the intention to mask the .iso extension by inserting the word “PDF”. An .iso file is an archive holding one or more files; here it contained a single executable.

Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis
Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis

Usually, alongside the executable that runs invisibly, attackers add a harmless file, a PDF for example, so that the victim sees something. In this case there was nothing else: only the executable, which displays nothing and works in the background.

The scan

Once extracted, the executable was scanned on VirusTotal: scan result. Detection was already high, so this was not a newly created program.

Running it in a test system

The file was left to run on a computer prepared for analysis, with all activity monitored.

Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis

For a while nothing happened, a sign that the program has a delay (“sleep”) set before it starts on the victim’s computer.

Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis

It installed nothing but stayed active. In parallel we analysed the traffic between the computer and the internet, to see whether the program connects outside the network. Filtering the traffic showed an exchange of data with an external IP address.

Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis

From the traffic we extracted the credentials the program used to log in to an FTP server on a domain in Romania. The credentials were no longer valid: the server no longer accepted the login.

Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis

Agent Tesla

The Romanian domain had been compromised and its FTP account had been written into the program’s settings. A public post had already flagged the domain and identified the program as Agent Tesla, which was confirmed by the details on VirusTotal and by the scan on another online platform.

Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis
Trap email in the name of a Romanian bank, screenshot from the ProDefence analysis

Agent Tesla belongs to the password stealer category: it extracts all the login data from the victim’s computer and sends it to the attacker. Because the FTP server no longer accepted the login, the program had nowhere to send the data. Victims were left with an active but ineffective program on their computer until the antivirus detected it. The compromised Romanian domain had meanwhile been cleaned up.

Conclusions

  • a little education and extra attention get us out of situations that can be very costly, especially for the employer;
  • an .iso, .exe or .zip attachment that arrives “from the bank” should not be opened;
  • website owners can become, without knowing it, helpers of the attackers if they do not secure their accounts.

A similar campaign, from 2021, is analysed in The “document from the bank” malware campaign. ProDefence provides analysis of suspicious files and malware and cybersecurity training for employees.

Skip to content