Connect with our team of offensive security, AI security and pen testing experts at Black Hat Europe 2023. Learn More

Connect with our team of offensive security, AI security and pen testing experts at Black Hat Europe 2023. Learn More

Managed Detection & Response

Eradicate cyberthreats with world-class intel and expertise

Managed Security Services

Expand your team’s capabilities and strengthen your security posture

Consulting & Professional Services

Tap into our global team of tenured cybersecurity specialists

Penetration Testing

Subscription- or project-based testing, delivered by global experts

Database Security

Get ahead of database risk, protect data and exceed compliance requirements

Email Security & Management

Catch email threats others miss with layered security & maximum control

Co-Managed SOC (SIEM)

Eliminate alert fatigue, focus your SecOps team, stop threats fast, and reduce cyber risk

Microsoft Exchange Server Attacks
Stay protected against emerging threats
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
The Trustwave Approach
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Platform
SpiderLabs Fusion Center
Security Operations Centers
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
SpiderLabs Blog

Java-based Malware Distributed Through Spam

For the past few months, we've observed more spam with Java-based malware attachments. The recent examples purport to be an invoice from a logistics company. The attachment is a .JAR file using a variety of filenames such as Authorized Invoice Cop.jar, Authorized Invoice.jar or Approved Invoice.jar.


The malware attachment is a Java application which requires a JRE (Java Runtime Environment) installed in the system in order for it to run. On the infected machine, the malware connects to a remote server with the domain name (IP address: ) through port 1303. We have also noticed a few spam messages sent from the same server.


The .JAR packaged malware was built from a Java-based toolkit named jRAT (Java Remote Access Tool). It is capable of remotely taking control of the infected system and can be customized to run on Windows, Mac, Linux, and well-known UNIX flavors such as FreeBSD, OpenBSD and Solaris.


The toolkit is well known in the underground hacking forums and often used for malicious purposes. According to its description it states: "jRAT is a revolutionary rat combining the uses of a remote tool and java to ensure the ability to adapt to multiple systems at once". It features a fully undetectable (FUD) crypter to bypass detection, remote webcam viewer, keylogger, remote file manager and remote desktop viewer/controller.

The toolkit's control panel shows more interesting features that a cybercriminal can remotely control and execute in the infected system.


While RAT (remote access tool) software has legal uses such as by network administrators, it is also used for criminal and malicious purposes. Although, spam campaigns with Java-based malware attachments are not common, we advise users to be cautious when encountering .JAR file attachments. It is also recommended that email gateway policy should lock down executables like Java applications, especially in a corporate environment.

Trustwave's Secure Email Gateway customers were protected from this spam campaign without any additional action required.

Latest SpiderLabs Blogs

The 2023 Retail Services Sector Threat Landscape: A Trustwave Threat Intelligence Briefing

The annual holiday shopping season is poised for a surge in spending, a fact well-known to retailers, consumers, and cybercriminals alike. The latter group, however, is poised to exploit any...

Read More

Pwning Electroencephalogram (EEG) Medical Devices by Default

Overall Analysis of Vulnerability Identification – Default Credentials Leading to Remote Code Execution During internal network testing, a document was discovered titled the “XL Security Site...

Read More

Hidden Data Exfiltration Using Time, Literally

I was looking at my watch last week and my attention was moved towards the seconds over at the right of the watch face, incrementing nicely along as you’d expect. Now, I don’t know if I’d just spent...

Read More