RPT Bromium Crypto Ransomware Us en
RPT Bromium Crypto Ransomware Us en
Understanding
Crypto-Ransomware
In-Depth Analysis of the Most Popular
Malware Families
Report
Table of Contents
AUTHORS Executive Summary 3
Vadim Kotov
Mantej Singh Rajpal Introduction 4
Analysis Methodology 8
Results 11
C&C communication 13
Encryption 15
Payment options 20
Conclusion 24
References 26
About Bromium 35
UNDERSTANDING CRYPTO-RANSOMWARE 2
Report
Executive Summary
A bully stuffing a student into a locker is apocryphal, but on
the Internet the reality is far worse. An emerging cybersecurity
threat can encrypt files, locking them from user access, until a
ransom is paid.
This threat is called crypto-ransomware (ransomware) and includes at least
a half-dozen variants, including CryptoLocker and CryptoWall. Ransomware
shows no sign of abating since traditional detection-based protection, such as
antivirus, has proven ineffective at preventing the attack. In fact, ransomware
has been increasing in sophistication since it first appeared in September 2013,
leveraging new attack vectors, incorporating advanced encryption algorithms
and expanding the number of file types it targets.
Ransomware lacks the subtlety of more traditional Trojan attacks that seek to
evade detection and steal sensitive information, such as credit card numbers and
bank account credentials. Instead, ransomware immediately makes its presence
known by encrypting files and demanding payment for the keys to unlock them.
Victims of the attack may experience anxiety or disbelief, so they are likely to pay
the ransom to end the incident, often without reporting the crime in order to
avoid further embarrassment.
Similar to online black markets, the creators of ransomware have been using
traffic anonymizers, such as TOR, and anonymous currencies, such as Bitcoin, to
receive ransom payments from their victims without being traced. Encouraged
by the financial “success” of these variants, malware authors have developed
several families of ransomware recently.
UNDERSTANDING CRYPTO-RANSOMWARE 3
Report
Introduction
Crypto-ransomware is a type of malware that encrypts files on the victim
machine using strong cryptography. After that it notifies the user that their
files were encrypted and demands ransom for decryption (see Figure 1). The
decryption key is stored on the attacker’s server so victims cannot recover their
files without paying the ransom.
UNDERSTANDING CRYPTO-RANSOMWARE 4
Report
This makes crypto-ransomware one the nastiest threats of the past year. Given
that the actors behind these campaigns have collected millions of dollars [ 5],
it seems like infected users continue to pay the ransom.
We describe in detail our analysis methodology and then share our findings.
The results are split into several categories including “Droppers”, “Command-
and-Control (C&C) communication”, “Encryption” and “Targeted File Types.”
Appendices contain source code of the scripts and programs we wrote for
this research.
UNDERSTANDING CRYPTO-RANSOMWARE 5
Report
CryptoLocker surfaced in the fall of 2013, and remained among the most
widespread of the crypto-ransomware families until mid-2014 [ 6].
CryptoWall surfaced towards the end of 2013 [ 7], but didn’t become prominent
until 2014 [ 8]. New strains of CryptoWall have appeared as recently as last month
(October 2014).
UNDERSTANDING CRYPTO-RANSOMWARE 6
Report
CryptoLocker
NO MD5 COMPILATION DATE
1 d95bf36c4edf480fe9fd208e44c72be4 5/15/2014
2 04fb36199787f2e3e2135611a38321eb 9/7/2013
3 180753f31b8295751aa3d5906a297511 9/11/2013
4 0204332754da5975b6947294b2d64c92 10/7/2013
5 2a1609ef72f07abc97092cb456998e43 12/9/2013
6 685634dac8b4c2b9429e80f8cd572563 1/20/2014
8 7f3cc059ffc6c11fe42695e5f19553ab 12/3/2013
9 7f9c454a2e016e533e181d53eba113bc 11/19/2013
10 a8e0d4771c1f71709ddb63d9a75dc895 10/14/2013
11 bbb445901d3ec280951ac12132afd87c 10/21/2013
12 e93af50428fcc74af931bfed7a1dc1b2 3/4/2014
13 f1e2de2a9135138ef5b15093612dd813 5/8/2004*
14 44217c15f30538a1fbdf614c9785c9b7 3/28/2011*
Cryptowall/Cryptodefense
NO MD5 COMPILATION DATE
15 73a9ab2ea9ec4eaf45bce88afc7ee87e 8/15/2014
16 0650c9045814c652c2889d291f85c3ae 6/2/2014
17 b6c7943c056ace5911b95d36ff06e0e4 5/3/2014
18 90a0231b5d41c33bbe352bc3dab6b3a6 6/12/1979*
19 c1ea1ac134f5412af555e8b7ea8a8a54 5/29/2014
20 e2e6674fc6ae6302ce8959b6686e1271 3/30/2010
21 31c2d25d7d0d0a175d4e59d0b3b2ec94 10/1/2014
22 1ef4264c5b802b4e83c82c87ffbc323d 9/8/2014
23 a9927372adb1bbab4d9feda4973b99bb 2/8/2093*
Critroni / CTB Locker
NO MD5 COMPILATION DATE
24 e89f09fdded777ceba6412d55ce9d3bc 7/10/2014
Dirty Decrypt
NO MD5 COMPILATION DATE
25 7a3c8d7f8b2b5bd26995dd33f4c1ee3c 6/25/2013
UNDERSTANDING CRYPTO-RANSOMWARE 7
Report
TorrentLocker
NO MD5 COMPILATION DATE
26 93cbe4ed3d46abe732a124a41e7147a2 9/25/2014
27 e982953f4b15ad41dbccb13a09970214 9/25/2014
Cryptographic Locker
NO MD5 COMPILATION DATE
28 c32354ee13930113072fdba163dc8ca4 8/28/2014
*The compilation date of these samples was either tweaked or compiled on a machine with incorrect date
The conclusions made in the rest of this report are applied to this particular
dataset, which are a subset of all crypto-ransomware samples. The results in
our report are consistent with other industry reports and analyses.
Analysis Methodology
In this analysis we leveraged dynamic methods and experimentation in a
controlled environment as opposed to traditional debugging/disassembling
approaches. We focused primarily on CryptLocker and CryptoWall since they
comprised the majority of our samples, 14 and 9 respectively. This enabled
us to cross-analyze how a particular family changes from sample to sample.
Fake C&C code for Cryptolocker and Cryptowall can be found in Appendix A and
B respectively. We bumped into one complication with Cryptolocker however.
Figure 3 describes its communication protocol and can be described as follows:
UNDERSTANDING CRYPTO-RANSOMWARE 8
Report
1. Client gathers victim machine info and encrypts it with an AES session key
2. The AES key is then encrypted using RSA and hardcoded C&C public key
3. Encrypted victim machine data and encrypted session key are concatenated and sent to the server
4. Server decrypts victim information and the session key using its private key
5. Server generates another key pair that is actually going to be used for file encryption
6. The public key is sent back to the client encrypted with the aforementioned session AES key
UNDERSTANDING CRYPTO-RANSOMWARE 9
Report
CryptDecrypt takes a pointer to the ciphertext (*pbData) and its length, and as
a result it replaces the data pointed at by *pbData with the decrypted message.
Subsequently, *pdwDataLen is set to the length of the plaintext. Alternately:
CryptDecrypt can easily be hooked and bypassed without interfering with the
program workflow. This allows us to communicate with the client without
possessing the respective private key. Source code and setup instructions for
hooking can be found in Appendix A.
Before we move on to discussing the results, one final remark should be made.
The vast majority of the samples we dealt with were obfuscated, and several of
them detected our debugger (even with a number of anti-debugging plugins for
OllyDbg). Instead of individually reversing each anti-debugging trick, we used
another approach. We noticed that typical self-de-obfuscation performed by the
malware analyzed consists of the following steps:
1. Create another instance of itself (or a process to inject the code into)
in suspended state
2. Unmap the executable image from the target process
3. Unpack the payload
4. Write and map the payload to the target process
5. Resume the process
UNDERSTANDING CRYPTO-RANSOMWARE 10
Report
So what we could do is hook this call and dump the buffer for size nSize
pointed by lpBuffer. We also need to save the address where the data is written
(lpBaseAddress) in order to restore the actual image written. The source code
of the hooking program can be found in Appendix C.
We considered dumping the target process after the code was injected, but we
often got either a corrupted image or too many artifacts of the target process. Our
approach, though not perfect, is simple to implement and quite stable.
Results
Droppers, anti-analysis and persistence
Analysis summary:
• All the samples have fairly complex obfuscation and use covert
launch mechanisms
• Crypto-ransomware generates a number of easily detectable indicators of
compromise. After files were encrypted stealthiness is no longer a priority
Details:
The most common mode of operation for crypto-ransomware droppers
is process injection. It is done by creating a suspended process (such as
explorer.exe or svchost.exe) and swapping the image with the unpacked
payload. Sometimes this becomes pretty complex, involving several layers of
de-obfuscation and process injection, such as the CryptoWall incidents we
analyzed (Figure 4).
UNDERSTANDING CRYPTO-RANSOMWARE 11
Report
A number of samples will terminate early if run under the debugger, which
suggests that crypto-ransomware developers (or whoever they buy droppers
from) are implementing techniques to interfere with detection and analysis.
All the samples analyzed use registry and mutexes that are easily detectable
indicators of compromise. This means that they don’t care about being detected
because it doesn’t matter once the victim’s files are encrypted.
UNDERSTANDING CRYPTO-RANSOMWARE 12
Report
CryptoLocker stores the list of files it encrypts (as shown on Figure 5). In this
instance, the name was “Cryptolocker_0388”, so an antivirus could detect the
locker, but deleting this key would prevent a user from looking up which files
were actually encrypted.
C&C communication
Analysis summary:
• Communication protocols have evolved from plaintext (HTTP) to encrypted
(TOR, HTTPS)
• As a result C&C domains changed from those based on a domain name
generator algorithm (DNGA) to hardcoded URLs since encrypted
communication is harder to track during efforts to take down servers
• Early samples would encrypt files after contacting C&C, which could enable
security teams to prevent infection by monitoring the traffic and terminating
the connection before the malware could finish its job. Critroni / CTB Locker
authors addressed this situation by encrypting files first and then
communicating to C&C
UNDERSTANDING CRYPTO-RANSOMWARE 13
Report
Details:
Table 2 shows communication protocols and types of URLs in crypto-
ransomware analyzed. The families are listed in chronological order.
TABLE 2: COMMUNICATION PROTOCOLS AND HOW C&C DOMAIN NAMES ARE STORED
UNDERSTANDING CRYPTO-RANSOMWARE 14
Report
Although the string sent is encrypted with RC4 it can be easily fingerprinted. The
POST body can be described by the regular expression [a-z]\=[a-z0-9]+
and for a deeper analysis it can even be decrypted since the path of the
requested Web resource is an RC4 key. So when communication is encrypted
there’s no way of knowing which application creates the packets.
TOR might not be the best option either because it might be forbidden in certain
networks or TOR related traffic might trigger IDS/IPS alerts. TorrentLocker’s
approach is the most stealthy because it is indistinguishable from the legitimate
SSH connections made by browsers.
Encryption
Analysis summary:
• Over time, encryption strength tends to increase, from RC4 to RSA+AES
to ECDH+AES
• Apart from minor flaws, the cryptography is strong and implemented by the
book (except for Dirty Decrypt and TorrentLocker)
• Crypto implementation evolves from using WinCrypto (easy to hook and
dump private key) to statically linked OpenSSL code (more challenging to
apply behavioral detection to)
Details:
The malware families analyzed use the following encryption schemes:
UNDERSTANDING CRYPTO-RANSOMWARE 15
Report
Apart from several flaws found in early samples of CryptoWall [ 12] and
TorrentLocker [ 13], the cryptography appears to be implemented by the book.
The only exception is CryptoWall since encrypting whole files with RSA is in
theory considered insecure (since RSA is a completely deterministic algorithm).
It is worth noting this process is quite intense on memory and CPU, which might
be used as a behavioral detection indicator. In other cases block or stream
ciphers were used.
Using RSA still makes it impossible to restore AES keys without the private key,
so why bother? Possible answers could be:
• Developers are afraid of making mistakes in implementing RSA since there are
a number of attacks on this cipher [ 14]. In fact, a tiny mistake in implementation
can lead to compromising the secrecy of encrypted data. Therefore, the authors
chose to go with a less established and less analyzed approach based on
elliptic curves. Of course, ECC might be as prone to errors as RSA, but it has
fewer known attacks and analysis papers.
UNDERSTANDING CRYPTO-RANSOMWARE 16
Report
Details:
With the first three ransomware families coming to light in 2013, and the latter
three in 2014, we can see a somewhat steady increase in the number of file
formats being targeted (Figure 7).
UNDERSTANDING CRYPTO-RANSOMWARE 17
Report
Initially, the file types being targeted were more or less limited to a handful of text
files and spreadsheets. Along came the game changer, CryptoLocker, encrypting
an exponentially increased number of file types. From this point on, targeting
more than 70 different extensions became a norm with crypto-ransomware. All
types of music, videos and source code are generally among those encrypted.
TorrentLocker is a unique beast, targeting more than 200 types of files. Several
obscure extensions that are not commonly used, such as .djvu, .ycbcra and .blend
are among those targeted.
Let’s look into targeted file types in more detail. First, let’s define the list
of categories:
• doc—all sorts of documents including text, word processor files,
spreadsheets, etc.
• img—all images
• av—audio and video files
• src—source code files
• cad—all the possible design files
• db—databases
• sec—security related files including certificates, key chains and
password managers
• arch—archives
• fin—all financial software from bank clients to accounts tools
• bak—various backups
• oth—formats that we were not able to determine or too rare to have its
own category
UNDERSTANDING CRYPTO-RANSOMWARE 18
Report
Figure 8 shows targeted categories of files and number of targeted file types
per category. From this picture we can conclude that:
UNDERSTANDING CRYPTO-RANSOMWARE 19
Report
We suspect that malware developers didn’t just dump all the known file
extensions but actually carefully selected them. That’s why we don’t see too
much of an increase in the oth (other) category.
Finally, earlier samples only targeted categories of files that can usually be
found on an average user computer—documents and images for the most part.
But later families (and especially TorrentLocker) really push on CAD and financial
software. This means ransomware is aiming to infect enterprises. This makes
sense since a home user losing data might not be such a disaster, while
a company in the same situation can incur much more risk.
Payment Options
Analysis summary:
• Bitcoin is today’s de facto standard for ransomware related transactions
• There is no clear trend in ransom price
• Later families set the price in BTC as opposed to actual currency
Details:
It’s interesting to note that the earliest CL samples offered 3-4 payment
options, but as time progressed, Bitcoin became the preferred method
of payment (Table 3).
UNDERSTANDING CRYPTO-RANSOMWARE 20
Report
It’s not surprising that Bitcoin has unanimously become the payment option
of choice for crypto-ransomware. First, it’s important to note that Bitcoin
transactions cannot be reversed; only refunded by the receiver of the funds [ 17].
By using Bitcoin, ransomware authors are assured that no revocations will occur.
Secondly, the use of mixing services, which are commonly used for money
laundering, can easily cause illegally obtained funds to appear legitimate [ 18].
These services will mix large amounts of money, obfuscating the trail back to the
original source. This is equivalent to moving US dollars through a bank with very
strict secrecy laws [ 18]. Though there are several Bitcoin mixing services readily
available, creating your own mixing service isn’t difficult, even for those without a
programming background [ 19].
UNDERSTANDING CRYPTO-RANSOMWARE 21
Report
Details:
Most families analyzed were written in C/C++ and compiled using MSVC except
for Cryptographic Locker. This one is .NET application so it is much easier to
analyze, but it shows how easy it is to write a piece of crypto-ransomware.
Also some droppers were written in Visual Basic.
We checked code resemblance between various samples, but there is not any
considerable similarity. There was one interesting observation. Late versions of
CryptoWall use TOR for C&C communication. However the TOR component is
fetched from the Web before actual command and control. This piece of binary
code has 97% similarity to Critroni / CTB Locker with 99% confidence (according
to BinDiff1). Clearly the code was reused. This means that either these two
families have the same developer or the developers partnered together.
For the past year, several flaws were spotted in certain crypto-ransomware
families by various security researchers.
UNDERSTANDING CRYPTO-RANSOMWARE 22
Report
One of the earliest samples, Dirty Decrypt, was completely broken by Checkpoint
[ 20]. Apparently, authors of this malware did not expect people to dive into the
encryption protocol to create a decryption algorithm.
CryptoLocker was much better designed and used strong cryptography by the
book. However, its victims could use shadow copies or restore points to partially
restore their lost files.
Plus it sets DisableSR registry key to 1, which disables system restore. On the
systems with user account control this won’t work without admin privileges.
They however also made a mistake. The key pair was generated on the victim
machine and authors forgot to delete the private key [ 12]. Later an article
appeared describing how to decrypt the files locked by CryptoWall [ 21]. That was
fixed in later versions and now the public key is fetched from the C&C.
Finally one of the TorrentLocker samples has a weird ad-hoc encryption scheme
[ 13] that is a form of a stream cipher. Furthermore it uses one key and thus it was
also broken.
UNDERSTANDING CRYPTO-RANSOMWARE 23
Report
Conclusion
By every metric, crypto-ransomware continues to become more complex and
more dangerous. Secure communication and elusive infection workflows make
it nearly impossible for traditional detection-based security solutions, such as
antivirus, to prevent the attack before the file encryption while a huge number of
targeted file types endanger both home users and enterprises. Let’s summarize
the major points made in this paper:
UNDERSTANDING CRYPTO-RANSOMWARE 24
Report
After that the malware will proceed with file encryption and detecting it
at this stage might be too late.
It is likely that we’ll see more crypto-ransomware families and this threat won’t
go away anytime soon. The only way to make it go away is to stop paying thus
rendering its business model unprofitable. But this unfortunately is much easier
said than done.
UNDERSTANDING CRYPTO-RANSOMWARE 25
Report
References
[ 1 ] Jarvis K. CryptoLocker Ransomware. Dell SecureWorks. December 2013, 2013.
http://www.secureworks.com/cyber-threat-intelligence/threats/cryptolocker-
ransomware/. Accessed November 11, 2014.
UNDERSTANDING CRYPTO-RANSOMWARE 26
Report
[ 13] SANS Forensics. TorrentLocker Unlocked. Blog: SANS Digital Forensics and
Incident Response. September 9, 2014. http://digital-forensics.sans.org/
blog/2014/09/09/torrentlocker-unlocked. Accessed November 11, 2014.
[ 20] Nitay Artenstein MS. How (and why) We Defeated Dircrypt. Checkpoint.
August 26, 2014. https://www.checkpoint.com/download/public-files/TCC_WP_
Hacking_The_Hacker.pdf. Accessed November 11, 2014.
UNDERSTANDING CRYPTO-RANSOMWARE 27
Report
UNDERSTANDING CRYPTO-RANSOMWARE 28
Report
hook_appinit.cpp of hook_appinit.dll:
#include <stdio.h>
#include <windows.h>
#include <wincrypt.h>
#include “detours.h”
static BOOL (WINAPI *Real_CryptDecrypt)(HCRYPTKEY,
HCRYPTHASH, BOOL, DWORD, BYTE *, DWORD *)=
CryptDecrypt;
BOOL WINAPI Hook_CryptDecrypt(HCRYPTKEY hKey,
HCRYPTHASH hHash, BOOL Final, DWORD dwFlags, BYTE
*pbData, DWORD *pdwDataLen){
return TRUE;
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason,
LPVOID lpReserved){
if (dwReason==DLL_PROCESS_ATTACH){
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)Real_CryptDecrypt, Hook_
CryptDecrypt);
DetourTransactionCommit();
} else if(dwReason==DLL_PROCESS_DETACH){
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourDetach(&(PVOID&)Real_CryptDecrypt, Hook_
CryptDecrypt);
DetourTransactionCommit();
}
return TRUE;
}
UNDERSTANDING CRYPTO-RANSOMWARE 29
Report
Thus every process in the system will start with the hook DLL mapped in its
memory space.
UNDERSTANDING CRYPTO-RANSOMWARE 30
Report
pt = []
ctlen = len(ct)
i = 0
j = 0
for c in ct:
i = (i+1)%256
j = (j+S[i])%256
S[i], S[j] = S[j], S[i]
k = (S[i]+S[j])%256
pt.append(c^S[k])
return pt
@route(‘/’)
@route(‘/<path:path>’, method=’ANY’)
def index(path=None):
msg = “””{216|1test.onion|1a2b|US|-----BEGIN PUBLIC
KEY-----
AQ8AMIIBCgKCAQEAx2zYo7MDPjA7KZnEiufT
A+/Xakry/rZBJU5dIrn/
s9MUuCkc9nn3DPl0AJ2a9AVny7DaO4bOmCHn2ma5qvyu
A7C7t/Sgd0N7oNuuWBPqy1JQrbTdBO9PdjAOWaYC+e/
hCX5LXtz4XHdW+xbwUJR4
AwI-----END PUBLIC KEY-----}”””
key = path
print ‘Initial key:’, key
key_sorted = sorted(bytearray(key))
print ‘Sorted key:’, array(‘B’, key_sorted).
tostring()
pname, pvalue = request.params.items()[0]
ct = bytearray(pvalue.decode(‘hex’))
S = rc4_ksa(key_sorted)
pt = rc4_prng_and_xor(ct, S)
print ‘Client message:’, array(‘B’, pt).tostring()
UNDERSTANDING CRYPTO-RANSOMWARE 31
Report
ct = rc4_prng_and_xor(bytearray(msg), S)
msg = array(‘B’, ct).tostring().encode(‘hex’)
print ‘Our response:’, msg
return msg
def main():
run(host=’’, port=PORT)
if __name__ == ‘__main__’:
main()
Appendix C:
Hooking WriteProcessMemory
hook_wpm.cpp of hook_wpm.dll:
The program simply writes the buffer into a file called <base address>.bin
#include <windows.h>
#include <stdio.h>
#include <wincrypt.h>
#include “detours.h”
static BOOL (WINAPI *Real_WriteProcessMemory)(HANDLE,
LPVOID, LPCVOID, SIZE_T, SIZE_T *)=WriteProcessMemory;
BOOL WINAPI Hook_WriteProcessMemory(HANDLE hProcess,
LPVOID lpBaseAddress, LPCVOID lpBuffer, SIZE_T nSize,
SIZE_T *lpNumberOfBytesWritten){
HANDLE hFile;
char filename[MAX_PATH];
DWORD dwBytesWritten = 0;
sprintf(filename, “%x.bin”, lpBaseAddress);
hFile = CreateFile(filename,
GENERIC_WRITE,
0,
NULL,
CREATE_NEW,
UNDERSTANDING CRYPTO-RANSOMWARE 32
Report
FILE_ATTRIBUTE_NORMAL,
NULL);
if(hFile!=INVALID_HANDLE_VALUE){
WriteFile(
hFile
lpBuffer,
nSize,
&dwBytesWritten,
NULL);
}
return Real_WriteProcessMemory(hProcess,
lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten);
}
extern “C” __declspec(dllexport) void DummyFunc(void){
return;
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason,
LPVOID lpReserved){
if (dwReason==DLL_PROCESS_ATTACH){
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)Real_WriteProcessMemory,
Hook_WriteProcessMemory);
DetourTransactionCommit();
} else if(dwReason==DLL_PROCESS_DETACH){
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourDetach(&(PVOID&)Real_WriteProcessMemory,
Hook_WriteProcessMemory);
DetourTransactionCommit();
}
return TRUE;
}
UNDERSTANDING CRYPTO-RANSOMWARE 33
Report
In this case we didn’t want our DLL to be injected into every process (although
this would a viable strategy, but you’re going to need to modify the source in
order to preserve the name of the target process). Instead we used the following
program to start an executable and push our DLL into its memory space:
run.cpp of run.dll:
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include “detours.h”
int main(int argc, char **argv){
STARTUPINFO si;
PROCESS_INFORMATION pi;
LPTSTR szCmdLine = NULL;
CHAR szDllName[MAX_PATH];
CHAR szDetouredDll[MAX_PATH];
BOOL res;
if (argc<3){
printf(“Usage: %s <DLL> <PROCESS [ARGS]>\n”,
argv[0]);
return -1;
}
szCmdLine = GetCommandLine();
res = DetourCreateProcessWithDllEx(
argv[2],
&szCmdLine[strlen(argv[0])+strlen(argv[1])+2],
NULL,
NULL,
FALSE,
0,
UNDERSTANDING CRYPTO-RANSOMWARE 34
Report
NULL,
NULL,
&si,
&pi,
argv[1],
NULL
);
return 0;
}
ABOUT BROMIUM
Bromium has transformed endpoint security with its revolutionary isolation
technology to defeat cyber attacks. Unlike antivirus or other detection-based
defenses, which can’t stop modern attacks, Bromium uses micro-virtualization to
keep users secure while delivering significant cost savings by reducing and even
eliminating false alerts, urgent patching, and remediation—transforming the
traditional security life cycle.
1 http://www.zynamics.com/bindiff.html