Neshta
- Type
- Dropper
- Capabilities
- PersistenceDefense evasion
- Delivery
- PhishingLure
- Platforms
- Windows
Neshta is a Windows file-infecting virus that propagates by modifying executable files on local disks, removable drives, and mapped network shares. It is primarily a prepending infector: it overwrites the beginning of a host executable with its viral component and appends the displaced original bytes, including an encrypted executable header, to the end. When launched, it reconstructs and executes a clean copy of the original program in a temporary directory, preserving the program’s apparent functionality. This layout makes disinfection more complex than simply removing the prepended code.
Neshta establishes persistence by dropping a standalone copy of itself and hijacking the Windows executable-file open command, causing the virus to run whenever an executable is opened. It uses a mutex to prevent concurrent instances, checks for existing infections, excludes selected directories and file sizes, and can remove read-only attributes before infecting files. Its implementation uses simple encryption for embedded strings and portions of displaced host data. Neshta itself does not encrypt user documents for ransom.
Neshta has also appeared in multistage malware deployments. It has been incorporated into Big Head ransomware infection chains and used as a dropper to extract, decrypt, and execute HardBit 4.0. Red Akodon has distributed Neshta-infected executables through phishing campaigns using Colombian judicial lures. Its presence alongside other malware can also result from incidental contamination, as demonstrated by infected ChromeLoader samples and executable files on Retadup infrastructure; such co-occurrence does not establish shared operators.
Associated vulnerabilities
1 CVE 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
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
...artifacts... contain the Neshta malware. This malware aims to modify sections of an executable file and load malicious code.
Techniques & procedures
18 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
With the exception of the list of drives to avoid, the malware tries to infect the executable files found on any attached removable drives (such as USB flash drives), all connected hard disks, and mapped network shared folders.
Execution
4 techniques
Execution
“install.bat… update.bat… using DACLs via icacls scripting… creates multiple scheduled tasks…”
Another pass to the decryption algorithm reveals the string ‘MutexPolesskayaGlush*.*’, which is used as the name of a mutex created using a call to the CreateMutexA API. This is used to avoid running multiple instances of the malware.
“If the user unzips and executes the contents of the previous file, the malicious activity begins.”
a system infected with Neshta will have the modified registry key ‘HKEY_CLASSES_ROOT\exefile\shell\open\command’ with ‘C:\WINDOWS\svchost.com "%1" %*’. Since C:\WINDOWS\svchost.com is the virus itself, an application will run, with the virus becoming the parent process and the .exe file the child process.
Persistence
3 techniques
Persistence
it opens the registry key ‘HKEY_CLASSES_ROOT\exefile\shell\open\command’ using the RegOpenKeyExA API... setting the registry key ‘HKEY_CLASSES_ROOT\exefile\shell\open\command’ with ‘C:\WINDOWS\svchost.com "%1" %*’ as the data value using the RegSetValueExA API.
the malware generates the string ‘svchost.com’ and concatenates it to the Windows folder name, producing ‘%windows%\svchost.com’... The file ‘%windows%\svchost.com’ is now an exact copy of the virus.
“Neshta installs itself into the registry for persistence using… HKLM\SOFTWARE\Classes\exefile\shell\open\command … %SystemRoot%\svchost.com “%1” %*”
Privilege Escalation
3 techniques
Privilege Escalation
All of the exploits that we found related to this actor were 1-Day exploits for Local Privilege Escalation (LPE) vulnerabilities in Windows.
the malware generates the string ‘svchost.com’ and concatenates it to the Windows folder name, producing ‘%windows%\svchost.com’... The file ‘%windows%\svchost.com’ is now an exact copy of the virus.
“Neshta installs itself into the registry for persistence using… HKLM\SOFTWARE\Classes\exefile\shell\open\command … %SystemRoot%\svchost.com “%1” %*”
Stealth
4 techniques
Stealth
“artifacts which seem to be legitimate files but contain the Neshta malware… stored in C:\Windows with the name svchost.com”
the malware attempts to list all the files found in the ‘%temp%\3582-490\’ folder, and tries to delete them one by one, using the DeleteFileA API.
Neshta executes the host file from the ‘%temp%\3582-490\’ folder to avoid raising suspicion that the file is infected, using a call to the ShellExecuteA API.
a system infected with Neshta will have the modified registry key ‘HKEY_CLASSES_ROOT\exefile\shell\open\command’ with ‘C:\WINDOWS\svchost.com "%1" %*’. Since C:\WINDOWS\svchost.com is the virus itself, an application will run, with the virus becoming the parent process and the .exe file the child process.
Defense Impairment
1 technique
Defense Impairment
it opens the registry key ‘HKEY_CLASSES_ROOT\exefile\shell\open\command’ using the RegOpenKeyExA API... setting the registry key ‘HKEY_CLASSES_ROOT\exefile\shell\open\command’ with ‘C:\WINDOWS\svchost.com "%1" %*’ as the data value using the RegSetValueExA API.
Discovery
2 techniques
Discovery
Using a combination of the FindFirstFileA and FindNextFileA APIs, the malware attempts to list all the files found in the ‘%temp%\3582-490\’ folder... Neshta searches for available drives for infection. It lists the available logical drives in the system using the GetLogicalDriveStringsA API... The malware traverses each folder in each drive searching for executable files for possible infection.
With the exception of the list of drives to avoid, the malware tries to infect the executable files found on any attached removable drives (such as USB flash drives), all connected hard disks, and mapped network shared folders.
Lateral Movement
1 technique
Lateral Movement
With the exception of the list of drives to avoid, the malware tries to infect the executable files found on any attached removable drives (such as USB flash drives), all connected hard disks, and mapped network shared folders.
Command and Control
2 techniques
Command and Control
One variation of the EXE payload was observed in Any Run triggering an ET alert “Neshta Variant Related Activity”. This occurred when the sample beaconed to 64[.]95.10.243/api/mytest.
“they are redirected to a Google Drive or OneDrive repository… contains a URL for downloading an additional file… If the user clicks… the download of a .zip-type compressed file from a GitHub repository begins.”
Exfiltration
1 technique
Exfiltration
“redirected to a Google Drive or OneDrive repository… download… from a GitHub repository”
Impact
1 technique
Impact
Using the encryption/decryption algorithm discussed earlier, the malware encrypts the first 1,000 (0x3E8) bytes of the recently read data... The data written at the end of the host file includes the newly encrypted 1,000 header bytes and the rest of the first 41,472 (0xA200) bytes of the victim file.
Observables
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.