Cyber Security News

Fileless Remcos RAT Attack Uses JavaScript and PowerShell to Slip Past Detection

A recent Remcos RAT campaign showcases how commodity malware has fully embraced fileless, multi‑stage execution to bypass traditional defenses and remain stealthy on compromised Windows systems.

Instead of dropping a static executable to disk, the operators rely on JavaScript, PowerShell, and a managed .NET injector to execute Remcos entirely in memory, dramatically reducing forensic artifacts and opportunities for signature-based detection.​

The attack begins with procurement‑themed phishing emails posing as request‑for‑quotation (RFQ) correspondence from a supposed marine or industrial vendor.

These emails carry an archived attachment that appears to be a quotation document but actually contains a misleadingly named JavaScript file.

When the victim opens this script, it issues an HTTP request to attacker‑controlled infrastructure and downloads the next stage, keeping the initial logic minimal to avoid drawing attention.​

The downloaded content is an AES‑encrypted PowerShell script that is handled directly in memory instead of being written to disk.

Infection chain (Source : Trellix).

This design reflects a modular approach where the JavaScript delivers the payload, while all heavy‑lifting decryption, loading, and persistence is delegated to subsequent stages.​

Remcos RAT campaign identified during analysis that demonstrates this transition in practice from phishing-based initial access to fully fileless execution using JavaScript, PowerShell, and a managed .NET injector. 

Fileless Remcos RAT

Once decrypted, the PowerShell script acts as a fully fileless loader that reconstructs the payload from multiple encoded fragments and decrypts it in memory using AES‑256 CBC and embedded Base64‑encoded key and IV values.

It then loads two components directly into memory: a Base64‑encoded .NET injector assembly and the Remcos RAT payload provided as raw decimal byte data.​

The payload is reconstructed from multiple encoded fragments and decrypted using AES-256 CBC with PKCS7 padding, with no artifacts written to disk.

Malicious .net dll injector in encoded format (Source : Trellix).

The .NET injector is reflectively loaded without touching the file system and is responsible for process hollowing a legitimate Windows binary, aspnet_compiler.exe.

By creating this trusted process in a suspended state, replacing its memory with the Remcos payload, and then resuming execution, the malware hides inside a signed .NET utility and inherits its identity.

This significantly complicates both behavioral and signature‑based detections that rely on process names, paths, or simple parent‑child relationships.​

Inside the hollowed aspnet_compiler.exe process, Remcos RAT runs as a Visual C++ compiled executable of roughly 481.5 KB, operating entirely from memory. The final payload REMCOS RAT is a VisualC++ compiled executable file of size 481.5kb.

REMCOS RAT payload (Source : Trellix).

Its first step is a runtime initialization routine that dynamically resolves required Windows APIs at execution time, minimizing static imports and hindering signature‑based inspection.​

The malware then decrypts its configuration from an embedded resource named “SETTINGS” using an RC4 key, recovering details such as C2 domains, port 2404, hostname “RemaHost1,” mutex name “Rmc‑ZOCNDU,” and file names used for keylogging data.

It creates the mutex to enforce single‑instance execution and aborts or alters behavior if another active infection with the same campaign ID already exists on the host.

Mutex creation (Source : Trellix).

Following this, Remcos profiles the operating system and architecture, distinguishing between Windows 10 and Windows 11 by parsing the CurrentBuildNumber registry value, and appends these details to the system profile for later C2 registration.​

Mitigations

Before contacting its C2, the RAT creates a local log file at C:\ProgramData\rema\logs.dat to buffer surveillance output and runtime events when network exfiltration is not immediately possible.

Observed log entries show offline keylogging activity along with process identifiers, thread context, privilege level, and clipboard capture events stored in plaintext, ready for staged exfiltration.​

Once initialization and profiling are complete, Remcos opens an outbound TCP connection to its configured C2 server encryption, with internal status buffers indicating “Connected | TLS Off,” confirming that transport‑layer encryption is disabled.​ 

Establishing a connection with C2 (Source : Trellix).

It then sends a host registration beacon containing the hostname “RemaHost1,” campaign identifier “Rmc‑ZOCNDU,” OS details (for example, Windows 10 Enterprise 64‑bit), process metadata, privilege level, executable paths, hardware information, and the location of the local log file.​ 

Although the traffic can appear malformed under industrial protocols such as IEC 60870‑5‑104, it is in fact a custom delimiter‑based C2 protocol carried over raw TCP.​

This campaign underlines how everyday threats now use multi‑stage, fileless techniques including layered scripting, in‑memory decryption, process hollowing, and abuse of trusted binaries to evade traditional disk‑based detection.

Defenders should focus on memory‑centric and behavior‑based telemetry: constrained script execution, PowerShell logging, command‑line monitoring, process creation anomalies, and detection of hollowed or injected processes.​

Practical hardening steps include restricting the misuse of native tools such as PowerShell and wscript, enforcing least‑privilege, segmenting networks, and improving phishing resilience through continuous awareness training.

Organizations should also centralize logs from endpoints, email gateways, and network sensors to support proactive threat hunting for fileless malware patterns similar to this Remcos RAT campaign.

Indicators of Compromise (IOCs)

TypeSamplesDescription
Emailde59f9c1b237af2b27df59a6cec82fd2Phishing email – Request for Quotation – Coaxial Cable, Solar, Surge Relay
RAR47b1603f62306dfa34bd7d52b7159c7fPrice Offer_PT. Asianfast Marine Industries I6799006392.r01
JSc2b601dc165fa0b4837019f1152d005aJavaScript downloader attachment
PS16f61c2917c7dac70b4703700b3aafb33PowerShell__script_layer1
PS1ffe4dc0ebc7b0b76d95dad2f383f6034PowerShell__script_layer2
DLLe7983c9dc42001baeafedebdaba8b310.NET injector (MAFFIA.dll)
EXEdf8a0d943f6df9394f0116521536a938Remcos RAT payload
IP91.92.243.550Command-and-control server
Domaineaidali[.]ddns[.]netmalicious domain
Domainwww[.]lmfire[.]netmalicious domain
URLhttp[:]//eaidali[.]ddns[.]net:2404/malicious url
URLhttp[:]//www[.]lmfire[.]net:2404/malicious url

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Mayura Kathir

Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

1 day ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

1 day ago