NanoCore
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceDefense evasionReconnaissanceProcess injection
- Delivery
- PhishingMalspamLure
- Platforms
- Windows
NanoCore is a commercially available, .NET-based remote access trojan targeting Windows systems. It provides remote access and information-stealing capabilities, including keystroke logging, clipboard capture, collection of host IP addresses, and discovery of document files. Its keylogger has been used to steal payment-system usernames and passwords. Observed samples upload stolen information to FTP servers and encrypt command-and-control traffic using DES.
NanoCore has been distributed through phishing and malspam campaigns using invoice, coronavirus, and vaccine-related lures. Delivery formats include ISO disk images containing malicious executables and compressed RAR archives. Analyzed variants use heavily obfuscated AutoIt wrappers to reconstruct the main .NET payload, check for debuggers, and perform process injection. NanoCore can modify the Windows Registry and establish logon persistence through registry-based autostart mechanisms, including execution of VBScript components. It has also been delivered as a payload by DarkTortilla.
NanoCore is used by multiple financially motivated actors rather than being exclusive to one intrusion set. OPERA1ER used its keylogging capability to obtain payment-backend credentials during attacks against financial organizations, including deploying a NanoCore command-and-control server inside a victim network. SilverTerrier-linked campaigns attempted to deliver NanoCore through vaccine-themed emails to a United States government health agency, universities with medical programs, and a Canadian health insurer. Other observed NanoCore malspam campaigns were broadly distributed rather than tailored to particular organizations.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
13 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“NanoCore provides a keylogging feature out of the box which has been used by the threat actor to steal back-end user’s login and password.”
к доменам хак-группы обращались более 31 000 образцов вредоносов, включая Quasar RAT, AsyncRAT, DCRat, NanoCore, Remcos RAT и njRAT
+7 more in the app. View in Mallory
Techniques & procedures
52 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
"Cyber criminals are spending millions buying up expired domains to repurpose them for malware..." and "estimated to have invested more than $7 million in acquiring over 10,000 expired domains now used for ... malware distribution."
Initial Access
4 techniques
Initial Access
"we uncovered a watering hole website with malicious programs, malicious PowerPoint files, and Android malware" ... "Group5 operated a website, assadcrimes[.]info that served as a watering hole for Android and Windows malware"
This report details a specific phishing campaign used to distribute the Agent Tesla RAT. The lure in the emails is centered around updates to COVID-specific PPE.
Crimson is typically delivered to the victim via a phishing email containing a malicious .doc file or link to a malicious executable.
In one instance, the actors were observed hosting malicious code on a file-sharing service registered in the name of a US company employee, and including links to that malicious code in spear-phishing emails. One of the actors was observed using a fraudulent domain to host malware, then sending a link to the malware via spear phishing.
Execution
10 techniques
Execution
Configures scheduled task jobs by invoking the schtasks.exe process.
It creates a scheduled task with the name Pornhub. This task leverages mshta to download the next stage payload from Pastebin as well.
These ZIP archive files contain an ISO image with a malicious loader in the form of JavaScript, a Windows batch file or Visual Basic script.
The final stage is an obfuscated PowerShell script that contains the payloads and is responsible for deobfuscating and injecting them into the assigned process.
[NanoCore](https://attack.mitre.org/software/S0336) can open a remote command-line interface and execute commands.(Citation: PaloAlto NanoCore Feb 2016) [NanoCore](https://attack.mitre.org/software/S0336) uses JavaScript files.(Citation: Cofense NanoCore Mar 2018)
[NanoCore](https://attack.mitre.org/software/S0336) uses VBS files.(Citation: Cofense NanoCore Mar 2018)
Examples include Cobalt Group using a JavaScript backdoor to launch cmd.exe, NanoCore using JavaScript files, Orz executing commands with JavaScript, Patchwork using JavaScript code, and SQLRat executing JavaScript on the host system.
Contains CVE-2017-8570 vulnerability Contains CVE-2017-11882 vulnerability
The emails would entice recipients to take action – usually clicking on a malicious link, which would download malware onto the victim’s computer and enable unauthorized access to victim networks.
The initial part of the infection chain was achieved with a malicious PDF document targeting Foxit PDF Reader users.
Persistence
6 techniques
Persistence
Contagious Interview has established persistence using InvisibleFerret malware to place a .bat file in the Startup Folder. TeamTNT has added batch scripts to the startup folder. Storm-1811 has created Windows Registry Run keys that execute various batch scripts to establish persistence on victim devices.
Configures scheduled task jobs by invoking the schtasks.exe process.
It creates a scheduled task with the name Pornhub. This task leverages mshta to download the next stage payload from Pastebin as well.
[NanoCore](https://attack.mitre.org/software/S0336) has the capability to edit the Registry.(Citation: DigiTrust NanoCore Jan 2017)(Citation: PaloAlto NanoCore Feb 2016)
The FBI observed these actors conducting follow-on activities to expand and maintain their unauthorized access, such as creating additional backdoors and escalating privileges.
[NanoCore](https://attack.mitre.org/software/S0336) creates a RunOnce key in the Registry to execute its VBS scripts each time the user logs on to the machine.(Citation: Cofense NanoCore Mar 2018)
Privilege Escalation
6 techniques
Privilege Escalation
Contagious Interview has established persistence using InvisibleFerret malware to place a .bat file in the Startup Folder. TeamTNT has added batch scripts to the startup folder. Storm-1811 has created Windows Registry Run keys that execute various batch scripts to establish persistence on victim devices.
Configures scheduled task jobs by invoking the schtasks.exe process.
It creates a scheduled task with the name Pornhub. This task leverages mshta to download the next stage payload from Pastebin as well.
“The main payload... injects it into a subprocess. The payload itself stays in memory.”
it is usual in this type of RAT to inject the code (or perform process hollowing) of the final binary in a legitimate software
[NanoCore](https://attack.mitre.org/software/S0336) creates a RunOnce key in the Registry to execute its VBS scripts each time the user logs on to the machine.(Citation: Cofense NanoCore Mar 2018)
Stealth
12 techniques
Stealth
[NanoCore](https://attack.mitre.org/software/S0336)’s plugins were obfuscated with Eazfuscater.NET 3.3.(Citation: PaloAlto NanoCore Feb 2016)
"embed an OLE Package object within a PowerPoint slideshow... the object is executed while the slideshow is viewed"
"decoy application... displays images... while simultaneously infecting"; "malware masquerading as an Adobe Flash Player update notification"; "drops a file named dvm.gif to disk, renames it to dvm.exe"
“The main payload... injects it into a subprocess. The payload itself stays in memory.”
it is usual in this type of RAT to inject the code (or perform process hollowing) of the final binary in a legitimate software
the list of features and plugins advertised for this RAT includes functionality that goes significantly beyond what one might see in a traditional remote administration tool, such as DDoS-for-hire capabilities, and the ability to disable the light indicator on webcams so as not to alert the target that the RAT is active.
What we can see more immediately is the self-deletion we mentioned earlier... [TA0005][T1070.004] Delete principal binary and kill process with cmd
The URL-encoded text was decoded using the unescape() function... The first eval() call corresponds to the JavaScript function, which is responsible for XOR decryption.
The PowerPoint file contains a macro that leverages mshta to download the next stage payload from Pastebin.
Trong bài viết này, chúng tôi sẽ không đi vào phân tích chi tiết mà chỉ tập trung vào các kĩ thuật Anti-VM được sử dụng trong shellcode.
The script attempts to interact with the Alternate Data Stream to hide the information about its source as downloaded from the internet.
Stage 3 will reference the variable $decompressedByteArray to load it as a .NET assembly using the method [System.Reflection.Assembly]::Load().
Defense Impairment
3 techniques
Defense Impairment
[NanoCore](https://attack.mitre.org/software/S0336) has the capability to edit the Registry.(Citation: DigiTrust NanoCore Jan 2017)(Citation: PaloAlto NanoCore Feb 2016)
[NanoCore](https://attack.mitre.org/software/S0336) can modify the victim's anti-virus.(Citation: DigiTrust NanoCore Jan 2017)(Citation: PaloAlto NanoCore Feb 2016)
[NanoCore](https://attack.mitre.org/software/S0336) can modify the victim's firewall.(Citation: DigiTrust NanoCore Jan 2017)(Citation: PaloAlto NanoCore Feb 2016)
Credential Access
3 techniques
Credential Access
NanoCore RAT ... Also used to record user credentials and conduct surveillance using infected computers.
[NanoCore](https://attack.mitre.org/software/S0336) can perform keylogging on the victim’s machine.(Citation: PaloAlto NanoCore Feb 2016)
These are, of course, on top of the obviously ominous features such as password retrieval and key logging that are normally seen in Remote Access Trojans.
Discovery
3 techniques
Discovery
[NanoCore](https://attack.mitre.org/software/S0336) gathers the IP address from the victim’s machine.(Citation: DigiTrust NanoCore Jan 2017)
Nanocore is a sophisticated RAT that enables the attackers to gain access to details of victim’s machine such as hostname and operating system.
Trong bài viết này, chúng tôi sẽ không đi vào phân tích chi tiết mà chỉ tập trung vào các kĩ thuật Anti-VM được sử dụng trong shellcode.
Collection
6 techniques
Collection
NanoCore RAT ... Also used to record user credentials and conduct surveillance using infected computers.
[NanoCore](https://attack.mitre.org/software/S0336) can perform keylogging on the victim’s machine.(Citation: PaloAlto NanoCore Feb 2016)
it collects certain information obfuscating it and introducing it in some path of \AppData\ or \Public\ with extensions .dat
Using some of its features such as keylogger, screen recorder, system configuration manager, the attacker can steal confidential data from the victim's machine.
[NanoCore](https://attack.mitre.org/software/S0336) can capture audio feeds from the system.(Citation: DigiTrust NanoCore Jan 2017)(Citation: PaloAlto NanoCore Feb 2016)
[NanoCore](https://attack.mitre.org/software/S0336) can access the victim's webcam and capture data.(Citation: DigiTrust NanoCore Jan 2017)(Citation: PaloAlto NanoCore Feb 2016)
Command and Control
8 techniques
Command and Control
часть инфраструктуры Sable Squirrel используется для работы малвари: к доменам хак-группы обращались более 31 000 образцов вредоносов... некоторые сайты одновременно показывали посетителям спортивные трансляции и работали в качестве управляющих серверов для малвари.
Almost one-third of prevalent malware families we recently analyzed support communication over non-HTTP/S protocols.
[NanoCore](https://attack.mitre.org/software/S0336) has the capability to download and activate additional modules for execution.(Citation: DigiTrust NanoCore Jan 2017)(Citation: PaloAlto NanoCore Feb 2016)
APT33 is known to use publicly available remote access trojans (RATs) like Nanocore to blend in with normal cybercriminal activity and avoid the attribution which typically comes from the implementation of custom malware.
The actor is using the DuckDNS dynamic DNS service to change domain names of the C2 hosts.
The client uses non-standard TCP ports such as 1111 and 1155 to communicate with the C2 server.
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[NanoCore](https://attack.mitre.org/software/S0336) uses DES to encrypt the C2 traffic.(Citation: PaloAlto NanoCore Feb 2016)
Exfiltration
1 technique
Exfiltration
Through the backdoor virus to control the victim’s machine, steal valuable sensitive data related to the target.
Impact
1 technique
Impact
Scammers running business email compromise (BEC) fraud have grown in number, attack more often, and turn to remote access trojans as the preferred malware type to accompany their raids.
Observables
311 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
111 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.