|
SANS Homepage | SANS Bookstore | SANS Reading Room | SANS Portal |
![]() |
![]() |
||||
|
Infocon: GREEN |
![]() |
|||
![]() |
Permanent Handler on Duty on This Page: Pedro Bueno |
![]() |
|||
| Trends | Top 10 | Reports | Contact | About | INFOCon | Presentations | Links |
print
|
This section is intended to share some knowledge about malwares. Since this is the first one, we will start with some basic questions. Based on the following outputs of the strings unix command of some malwares, please answer the following questions:
File 1 - File 2 - File 3 - File 4 - File 5 - File 6 Please submit your answers to my email until next thursday (Sep 29) if you are interested, if not, I will post the answers here anyway on friday (Sep 30) .:)
Ok! It is time to know the results of our first test! First of all, I would like to thank you all for the great feedback received on this first one! I got some really smart answer and as I forgot to ask permission to publish their names here, I will just use the first name. After all, you know who you are...!:) 1. What is a PE file: Derek also pointed a good one: "The Portable Executable (PE) format is an executable file format used in 32-bit and 64-bit versions of Windows operating systems. The term "portable" refers to the format's portability across all 32-bit (and by extension 64-bit) Windows operating systems. The PE format is basically a data structure that encapsulates the information necessary for the Windows OS loader to manage the wrapped executable code. This includes dynamic library references for linking, API export and import tables, and resource management data. On NT operating systems, the PE format supports EXE, DLL, OBJ, and other file types." 2. What is a PE packer: First, lets make something clear: not all packers are 'evil'! :) I already saw many packers being used 'for good' in both commercial and non-commercial softwares...SOME I never saw being used in good softwares...but this we will discuss in another time... :-) Colin pointed that..."A PE packer compresses and/or obsfucates the
contents of a PE file by rearranging the sections of the binary file to
eliminate blank Dr. Neal says that "The goal for most packers is to obscure opcodes and
functions: Nice ones, right!? 3. Looking just at the strings files from real malwares, do you think that they were packed with some packer? If so, which one? First, very good job, all of you! Remember, you made assumptions based only on the strings generated by the #strings -a <file> . And most of you got it right! Bellow I will include the answers. My answers are based on the strings analyzed and later confirmed by a software, which we will discuss later too...:) -> File 1: visualize.scr-ebd92f1bff47ed100d49a555f3c03c3e.strings.txt The strings bellow are right on the begining of the file: This program must be run under Win32 Answer: Packer UPX -> File 2: voxcard.exe-01a1d472a9bd3702ebe7a5ad8f4d5e16.strings.txt This program must be run under Win32
The answer is.... PECompact2! Why??! Well...the question is quite simple...Lets look at the first 6 lines of the strings: !This program cannot be run in DOS mode. Now you may be asking yourself: So, the hacker packed it with aspack, then
unpacked with aspackdie and later decided to pack again with PECompact2? All those numbers after the malware name are the md5sum of the malware...;-).
Look at the strings bellow: %sRarSFX%d -> File 6: XYE496X5YITRR.exe-b1339276f1918db3ba31a91612e4a250.strings.txt Ok, this one hasn't much mystery...it is a pure PECompact2 packer...:) !This program cannot be run in DOS mode. Did you see the PEC2 and PECompact2 above? These are clear signs of PECompact2...!
Ok, this was fun! If you liked , check the next one here! Btw, the tools can be found at: - WinRAR trial -
http://www.rarlab.com/download.htm - Strings command:
|
|
|
© 2002-2005 The SANS Institute SANS Web Privacy Policy: www.sans.org/privacy.php |
Contact
|