Changing the file name did the trick. File names that are single characters are treated as drives; if we still want to read the file, we need to use ‘.\’ prefix – see the screen shot for details:
More details here.
Changing the file name did the trick. File names that are single characters are treated as drives; if we still want to read the file, we need to use ‘.\’ prefix – see the screen shot for details:
More details here.
Amongst many various techniques that are used by malware to prevent its detection and analysis (e.g. rootkits, disabling OS tools, anti-debug, anti-disasm, anti-dumping, anti-VM, anti-sandbox, etc.), there are a few that are not so common, yet still “make it ” to some malicious releases. These techniques do not prevent malware analysis itself, but aim at making it difficult for forensic guys to analyze post-intrusion activities. And since the reason for using these is to wipe out traces of actual hacking, finding these inside the binaries usually suggests that the malware is designed to be remotely controlled in a manual fashion (and is not a typical botnet serving different purposes like like spam, or DDoS campaigns). Indeed, anti-forensics routines are often seen in backdoors as well as hacking tools used by carders and APT-like malware. Of course, many of these techniques are not new – even old tools from early noughties use it.
Out of curiosity, I recently searched my sample collection for malware that actually do use anti-forensics techniques (Windows specific only). In order to do searches, I first had to think of various techniques I came across in the past or heard of, and then create a list of interesting targets – this is a list I came up with so far:
My searches continue and if I come across something new, I will add it to the list. And if you know some more or spot some techniques I missed, please do let me know. Thanks in advance!
So, here it is – if you see any of these functions in the malware you analyze, you better get ready for some serious business!
I posted and example recently when I briefly talked about Purple Haze:
APIs and strings to look for:
The recent sample I came across is a new version of Gh0st. Its source can be easily found online, so it’s not a surprise we continue to see new updated versions. A simple routine used to clean the Event logs uses a triplet of functions i.e. OpenEventLog, ClearEventLog and CloseEventLog that is executed with 3 different Event log types i.e. Application, Security, System.
APIs and strings to to look for:
This is very rarely seen. The sample I looked at contained the following code:

APIs and strings to to look for:
This is an easy one:
APIs and strings to to look for:
This is based on Vincent Liu’s technique used in his timestomp tool and later expanded upon by Joakim Schicht in his SetMACE script – it allows for a full modification of all time stamps within the MFT record on NTFS system (2x $FILE_NAME records and $STANDARD_INFORMATION) either by using NtSetInformationFile / ZwSetInformationFile or by directly writing to a \\.\PhysicalDriveXXX device (where XXX is a number 0, 1, 2, …):
I have not found any malware using it, but this is also non-trivial to find.
APIs and strings to to look for:
and often together with the following, commonly used functions: