![]() |
|
malware indicators with pestudio - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Whitehat • Blue Team • Defensive Security (https://hackforums.net/forumdisplay.php?fid=448) +---- Forum: Malware, Rat, and Virus Removal (https://hackforums.net/forumdisplay.php?fid=110) +---- Thread: malware indicators with pestudio (/showthread.php?tid=6296637) |
malware indicators with pestudio - ttbr0 - Apr 21, 2025 malware indicators with pestudio
this is a post for those who are interested in malware analysis. it will involve the pestudio tool which is for analyzing and triaging potential malicious indicators that an executable file might have and explain what they are and how they are relevant to malware but also if they can be false positives. this is a great tool to get a high level overview of executable files to quickly see if there are obvious signs that something is malicious. in this example, i will use a reverse tcp meterpreter payload. indicators
the first section is the high level indicators. this is good to get a general overview of the file. ![]()
sections
the pe file format has sections which are used to contain categories of information. each of these sections has its own metadata header that describes its attributes and then there is the section itself which contains the data. ![]()
libraries
libraries are the executables that are loaded into the process on runtime. these libraries contain additional code that can be used by the program. the code is exported by the libraries and imported by the program to use. as a result, they are dependencies that are needed to run. contrary to popular belief, native programs, not just c# executables, have dependencies. ![]() standard libraries vary depending on the needs of the program. for pretty much all standard programs, they will import some variation of kernel32.dll, kernelbase.dll and ntdll.dll. for this example, despite having no warning marker, it is very suspicious that there is only kernel32.dll. this will be combined with the information about imports in the next section. imports
imports are the function names of the code in the associated library. these must be exported by the library to be discovered on linking during process initialization so its function pointer can be patched into the import address table for the code to use it. ![]() for normal programs, there are usually many entries depending on the size and functionality of the program. in this example, despite having no warning marker, only having 2 functions is extremely suspicious. just because there are no imports doesnt mean that the program does not use it. there are dynamic ways to get an import such as with loadlibrary + getprocaddress. most stealthy malware up to industry standards will not show loadlibrary or getprocaddress imports at all so be aware. strings
strings can show suspicious data like import names, library names, ip addresses, urls, registry keys and other such information. this is an obvious one, theres not much to explain. the other thing to note is just because there are no plaintext strings doesnt mean that its not malicious. it is trivial to obfuscate strings and every off the shelf stealthy malware or crypter will do this. ![]() import functions and section names are also strings so you will see them here. in this example, there is one particular string that is quite suspicious called "PAYLOAD" but keep in mind that this terminology is used beyond malware and can be legitimate. other
this sample doesnt have any other metadata. such an empty file could be potentially malicious due to its minimalism. it could mean that its a crypter or some other delivery malware that is trying to maintain a small footprint. but its not directly obvious. conclusion
these indicators are only supposed to help give some guidance to what could be potentially malicious. they are never really obviously malicious standalone. a well rounded analyst should understand each of these sections to fully know what can be present and importantly what isnt present, which can also be an indication. combine several of these indicators to give yourself an initial malicious score and then dive deeper into what looks suspicious to verify your hypotheses. RE: malware indicators with pestudio - Bastille - Apr 21, 2025 This is definitely something I'm going to read, thanks for the share, I've gone throught PE studio few times on TryHackMe but didn't go in depth, and it was not always applied to malware analysis. Having concrete examples, with a specific analysis (malware) is interesting. You don't want to share this with other members, like in the White Hat section ? RE: malware indicators with pestudio - ttbr0 - Apr 21, 2025 (Apr 21, 2025 02:03 AM)Bastille Wrote: This is definitely something I'm going to read, thanks for the share, I've gone throught PE studio few times on TryHackMe but didn't go in depth, and it was not always applied to malware analysis. Having concrete examples, with a specific analysis (malware) is interesting. yeah its honestly a great tool to get an idea of a file before reversing it. i might share this with other members but for now i will post them in here for the time being, at least for mrt-x members to get premium access to the information and review it before it goes public, if ever. let me know your thoughts about it and if there are any improvements or other suggestions. RE: malware indicators with pestudio - Bastille - Apr 25, 2025 Just finished to read the thread and took some notes on notion. I learned many things, will try to practice on the next weird piece of software shared by a newly created account on HF haha, classic Besides, I'm currently doing the Level 2 SOC Analyst path on tryhackme, and there is a module about Malware Anaysis with rooms about PE analysis, it will definitey help to improve my knowledge, such as : https://tryhackme.com/room/dissectingpeheaders Thanks again ttbr0 ! RE: malware indicators with pestudio - Pr0m3th3us - Apr 25, 2025 Never knew of this tool. I’ll download it and check it out on some files. Very handy tool thanks for the share. RE: malware indicators with pestudio - JoseMar - Apr 27, 2025 Amazing tutorial, very well explained step-by-step. ttbr0 The way you break down the PeStudio analysis and how to interpret the indicators is perfect, even for beginners in malware analysis. Great contribution, one of the best practical resources I’ve seen lately! RE: malware indicators with pestudio - Bastille - May 10, 2025 Hey guys, Pr0m3th3us JoseMar Just found out a room is available on tryhackme if you want to dive into PE Headers (free room, no need premium subscription) https://tryhackme.com/room/dissectingpeheaders RE: malware indicators with pestudio - JoseMar - May 10, 2025 (May 10, 2025 06:48 AM)Bastille Wrote: Hey guys, Pr0m3th3us JoseMar Oh, that's nice! I'll definitely take a look at this in the coming days. Thank you for sharing; I appreciate it. RE: malware indicators with pestudio - ttbr0 - May 10, 2025 (May 10, 2025 06:48 AM)Bastille Wrote: Hey guys, Pr0m3th3us JoseMar nice link. i hate to write my own posts on these things because its so boring and takes so much effort RE: malware indicators with pestudio - Pr0m3th3us - May 10, 2025 (May 10, 2025 06:48 AM)Bastille Wrote: Hey guys, Pr0m3th3us JoseMar I will check it out, thank you! |