# Malware Analysis Masterclass 2025 | Static + Dynamic Tricks

An episode of [Prabh Nair](https://invisiblenetwork.ai/podcast/1554859289), 30 Dec 2025, 1 h 01 min.

Audio: https://anchor.fm/s/4dbb0ab0/podcast/play/113271916/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2025-11-30%2F785fe063-3b4b-498c-9904-cedfdb3af39f.mp3

Learn to dissect malware like a pro — even if you’re just starting out.In this step-by-step session, cyber-consultant Harpreet S. Arora shows how to combine static analysis, dynamic sandboxing, and AI-powered behavior tools to catch zero-day ransomware before it detonates.Linkedin Inhttps://www.linkedin.com/in/harpreet-s-arora/ What You’ll LearnMalware Types 101 — viruses, worms, Trojans, ransomware-as-a-serviceStatic analysis demo with HashMyFiles, HxD, Floss, and SHA-256 hashesDynamic analysis demo using Process Monitor & System Informer inside a safe sandboxZero-day workflow — why VirusTotal alone isn’t enoughTop 3 SOC logging sources for early malware detectionCareer path tips — moving from network troubleshooting → SOC → malware analystBeginner toolkit & book list to practice at homeTools & Links MentionedHashMyFiles — quick hash checkerHxD — hex editor for static inspectionFloss (FireEye) — extract obfuscated stringsVirusTotal — multi-engine malware scanProcess Monitor (ProcMon) — real-time system tracingSystem Informer — advanced task & memory viewerWireshark — packet capture and network forensics Recommended ReadingPractical Malware Analysis — Sikorski & HonigThe Art of Memory Forensics — Case & WaltersMalware Analyst’s Cookbook — Ligh et al.CISO talkshttps://www.youtube.com/playlist?list=PL0hT6hgexlYwPTD-wC3oFBe27VGEiizg1NIST Serieshttps://www.youtube.com/watch?v=VcC_KabV_Ho&list=PL0hT6hgexlYy0vBwMv0eteiyAxB48RQzy&pp=gAQBiAQBGRC Serieshttps://www.youtube.com/watch?v=mq_vSLHm4r0&list=PL0hT6hgexlYztA41j1bceTfVagP9mtq28&pp=gAQBISO 27001 Videohttps://www.youtube.com/watch?v=sQqJH2naU6I&t=1454s&pp=ygUeaXNvIDI3MDAxIGltcGxlbWVudGF0aW9uIHN0ZXBzISO 27001 Implementation Guidehttps://www.youtube.com/watch?v=GBfwk10Hh-o&pp=ygUeaXNvIDI3MDAxIGltcGxlbWVudGF0aW9uIHN0ZXBzGRC Practical Serieshttps://www.youtube.com/playlist?list=PL0hT6hgexlYztA41j1bceTfVagP9mtq28GRC Interviewhttps://www.youtube.com/playlist?list=PL0hT6hgexlYz1Usn1Nrnur6OzVoz59zylInternal Audithttps://www.youtube.com/playlist?list=PL0hT6hgexlYyNWBcGYfabwumCr0GKmLWvStudy with MeTelegram Grouphttps://t.me/Infoseclearning#MalwareAnalysis #StaticAnalysis #DynamicAnalysis #Ransomware #ZeroDay #CyberSecurity #SOC #IncidentResponse #MalwareAnalysisTools #CyberSecurityCareer

## Transcript

[0:00] I think we are discussing today about malware analyst, right?
[0:02] Malware analysis, why we are talking about it and what it
[0:06] holds for us. Malware analysis is 1 vertical
[0:10] in the entire cyber security field.
[0:12] How did you started a journey? I started my career 10 years
[0:16] back with an Indian service based company.
[0:18] I did a course somewhere in Delhi.
[0:20] In cyber security or analyst, what do you think?
[0:22] What are the important principles?
[0:24] What you have followed today agenda is to understand the
[0:26] practical aspect of malware analyst.
[0:31] Hi guys, welcome to the session on coffee with Probe.
[0:33] And today we have a special guest Mr. Harpreet Singh Arora.
[0:37] He's a cluster lead in cybersecurity and guiding up
[0:40] team that handled the big operations here in cyber like
[0:42] sock vulnerability, pen testing, e-mail security, defence.
[0:45] And the new thing which he added in his bucket is OT security for
[0:49] factory systems. I personally monitor his content
[0:53] from the B side Noida and the best thing about this guy is
[0:58] very down towards and he shared a lot of updates on offensive
[1:01] and defence security. I thought, let me grab this
[1:04] opportunity. I requested him for a podcast
[1:06] and the best thing is guy I was not expecting in a in a in a
[1:10] immediate basis. He will reply, but I asked him
[1:12] everybody, can we do one podcast?
[1:14] Definitely. And and guy has given me a
[1:17] response within an hour and we have finalized this podcast, you
[1:21] know, in a day. And I'm really appreciating the
[1:24] way he giving back to the society and I Pete turning all
[1:27] the security silos into the strong field and reconnecting
[1:30] all the dots like finding threads in SOG testing apps with
[1:34] the VAPT. And the new thing what he
[1:36] upgrading is equipment safety and cyber attacks on OT
[1:40] security. Happy.
[1:41] Welcome to the show. And what is special today?
[1:44] I think we are discussing today about malware analysts, right?
[1:48] Yes, Prabh. So thanks for that brief
[1:51] introduction. And your name doesn't require
[1:54] any introduction for sure. You are the GOAT in information
[1:57] Security India and even even the foreigners recognize that.
[2:01] No doubt. I see how Thor publishes you
[2:06] every time when there is an ECISSP and you know from me, You
[2:11] know me from TCISSP days when I was your student.
[2:14] So just to mention that here. So thanks.
[2:17] He's lying, he's lying, he's my friend and he it is his
[2:20] affection and love that the way he's speaking, but it is not
[2:23] true. So I'm good with something, you
[2:30] good with something. So as you know security, no one
[2:32] is perfect. So today I will be I am your
[2:34] student. This is how the karma works.
[2:37] You asked me lot many questions. Today I'm going to ask lot many
[2:39] questions. Sure, sure.
[2:41] Thanks for the opportunity. So guys, malware analysis, why
[2:47] we are talking about it and what it holds for US 20 years back,
[2:55] 25 years back in India, it's 25 years back when we talked about
[3:00] Google, we talked about indexing, we talked about
[3:03] Internet. Internet evolved from 95 with
[3:07] Windows normal Windows to Windows XP, Windows 98, Windows
[3:12] XP, Windows 7-8. Now we are at Windows 11.
[3:16] It's not just operating system getting evoluted.
[3:20] The evolution was also with the attacks associated with the
[3:24] normal work culture. So there are examples.
[3:29] There are use cases where you see just clicking on a link made
[3:33] the entire company bow on their knees even if you go on
[3:39] Internet. I won't name the company but yes
[3:43] there's a company from last week.
[3:46] They are close to shutting their operations just because they
[3:50] didn't take cybersecurity seriously.
[3:54] Malware analysis is 1 vertical in the entire cybersecurity
[4:00] field, but it holds equal weightage as you do with batch
[4:05] management or VAPD. You cannot ignore one vertical
[4:08] supporting another vertical. So how do you mean to say that
[4:12] do like do do we have a dedicated department who head
[4:16] this domain and there's a dedicated people who work 24
[4:19] into 7 on that particular area, you mean to say?
[4:23] Yes, Prep. So different companies have
[4:26] different analogy set for malware department.
[4:30] Some have it as part of their SoC team environment only some
[4:34] have which are which are more in investments so they can invest
[4:39] more. So they have dedicated malware
[4:41] services which is different from what SoC is doing.
[4:45] But generally means 95% of the firms they have malware analysis
[4:49] as a member of their SoC team member.
[4:51] OK. And but but Habid, like before
[4:54] we jump into the malware analyst part and all that, how did you
[4:57] started a journey? Because this is a very common
[4:59] question which I ask every guest who part of this podcast.
[5:03] Sure. Sure.
[5:04] Thanks. Thanks Rav.
[5:06] It's it's an interesting question and a bit of nostalgia
[5:09] associated with it. I started my career 10 years
[5:13] back with an Indian service based company.
[5:17] I invested 2.7 years there for AUS based client.
[5:22] The first attack that I witnessed was which shifted my
[5:25] focus from network troubleshooter to network
[5:28] security. Was wanna cry it was in 2016 or
[5:32] start of 2017? Somewhere there I.
[5:34] Remember. Yes, yes.
[5:37] So wanna cry. It was havoc.
[5:40] So it it was havoc not just in India, but it wrecked havoc
[5:46] globally. So I know.
[5:49] There I remember that time it was only to unplug the switches
[5:53] or to contain the systems out of the analysis.
[5:58] That part triggered my curiosity in in in this site why we are
[6:06] just doing this unplugging and all so that that's when I
[6:10] shifted my focus from network to entire cybersecurity.
[6:14] I did a course somewhere in Delhi for I remember it is
[6:19] 15,000 bucks. It was 15,000 bucks and it has
[6:22] paid me back lifetime. So I don't have Monday Blues.
[6:28] I never say that I don't want to work on Mondays because I'm
[6:33] exactly doing what I love. So, so yes, that's how my
[6:38] journey started. And after that there was no
[6:41] looking back. My first company supported me
[6:44] network security, second company trusted me with web application
[6:47] security. The third from my work with not
[6:52] only security checking the overall security but also the QA
[6:57] part. So I also know how functional
[6:59] testing works along with security testing.
[7:02] And in my current firm, I'm heading, as you all already have
[7:06] mentioned, various verticals in cybersecurity.
[7:11] So yes. If you if you but if you want to
[7:14] give a three principle to become a good analyst or the position
[7:19] what you hold now, what are three principles or two
[7:22] principles, whatever. Like we say, like we say, as a
[7:25] good human, you should not lie. You should have a patience and
[7:28] all that. But in cybersecurity or
[7:30] analysts, what do you think? What are the important
[7:32] principle, what you have followed and that make you stand
[7:36] today what you are today? All right, so I will start with
[7:40] the mistake that mostly new joiners performs unknowingly.
[7:45] Unknowingly, they get a sample to test and they start testing
[7:50] it on their main machine rather than.
[7:53] Production. Yes, they start testing it on
[7:56] production rather than in a sandbox environment or a test
[7:59] environment. So that's the main Moto you
[8:02] should have in your mind whenever you are talking about
[8:06] testing or doing the malware analysis past.
[8:10] You should never trust any link on your main machines because if
[8:15] you will tell your management that my system got hacked, so
[8:18] how would it, how would they trust you?
[8:20] Means you are a malware analysis and your own system is impacted.
[8:24] So that's what I always start my talks with wherever I give some
[8:30] talks. So never trust any link with
[8:33] your main system. Have a lab or test environment
[8:36] there, do your testing there. Apart from that transparency.
[8:41] So it's not completely technical but yes how you should keep your
[8:48] communication. So mistakes happen 600%.
[8:54] Security is a myth. As you have already mentioned
[8:57] mistakes happen. We are learners.
[8:59] Not ten years, 20 years, even 30 years.
[9:01] We all are learners. So if you have committed some
[9:06] mistake while doing the work, all you are doing work that you
[9:10] will make mistakes because you are doing work.
[9:12] If you are not doing work, no mistakes.
[9:14] So accept it. Wear it like a batch of honor.
[9:20] Communicate it with your peers, with your stakeholders.
[9:25] You don't have to hide in cybersecurity.
[9:27] If you hide it and it blew up somewhere, it might lead to your
[9:34] career getting destroyed. So transparency is the next
[9:37] thing I'll talk about. So apart from this, the third
[9:43] motto is never say never attitude.
[9:46] Keep learning you think you are good in VAPT, move to the next
[9:52] batch. Malware analysis you are good at
[9:55] in next. We now are in AI world so even
[10:02] I'm getting AI certification from one of the Iits of India.
[10:06] It was a minor program. So never stop learning, be
[10:11] curious every time. So that's what the owner of
[10:17] Apple, Jim says be. Hungry be hungry and security is
[10:23] is like something is constantly evolved.
[10:25] You know, today something, something new is just see, we,
[10:28] we, we started era from ARV poisoning and now we're talking
[10:31] about LLM poisoning. Poisoning still there.
[10:34] It's still there. Yes, it will remain.
[10:36] There so so The thing is that Arvid like we're coming to the
[10:39] point here is I think today agenda is to understand the
[10:42] practical aspect of malware analyst.
[10:45] So have you prepared any documents?
[10:47] Have you prepared any stuff for us to share?
[10:49] And can you just quickly go through the process of what is
[10:53] malware and what is malware analyst concept and all that?
[10:57] So what is special today? Yeah.
[10:59] I had prepared this for the audience unmasking malware.
[11:06] We are not just doing technical talks.
[11:11] We are not just saying that OK, this is malware and this is how
[11:15] it affects the system. We are doing regular talks and
[11:18] then studying the topic sideways.
[11:21] Might be make it should make it more interesting.
[11:25] So malware anything which is capable of destroying the
[11:30] systems, not single system, if it penetrates into multiple
[11:33] system it can bring the entire company down.
[11:38] How it works, it talks it first of all, it infectious system.
[11:43] Similarly, I'll talk about the analogy of common flu or cold.
[11:48] I'm not, I will not go into COVID.
[11:51] That was means 10 times more impacting malware.
[11:56] If we talk about the analogy between the two worlds.
[11:59] So similarly it starts with infection, it persists.
[12:03] So as flu persists in your body, malware is persist inside your
[12:08] systems. They ensure that they remain
[12:11] active and undetected execution. So once they are there inside
[12:16] your system and they are persistent for long, they know
[12:20] that your systems are not capable of detecting them.
[12:24] Your SIM tools are not telling you where they are located.
[12:30] And then when they are sure that OK, now it's the right time to
[12:34] execute the handler who is handling these malware which has
[12:40] supplied this malware to you. It could be through phishing, it
[12:46] could be through social engineering.
[12:48] I'll talk about how phishing and social engineering, why I'm
[12:51] talking about these things. Once the persistence is there,
[12:58] it gets executed. Now the malware talks to some
[13:01] system. After executing, it talks to
[13:04] some system in the background on the Internet which is handled by
[13:08] the controller and this is called command and control.
[13:11] So that server is sending the commands and controlling this
[13:15] malware inside your system. And the final goal we all know
[13:19] it's to access steal data ransomware.
[13:22] Now how the phishing and malware thing works means how they are
[13:27] able to get it to you. You get a WhatsApp message or
[13:32] message on Teams. So in India, we know there are
[13:37] two parties, one of them like Virat Kohli, one of them like
[13:42] Dhoni, Ms. Dhoni. So what I will do, I would do
[13:45] some social engineering. I would as an attacker.
[13:49] So I would see if my target is Virat Kohli's fan, Dhoni's fan,
[13:54] I would have that thumbnail and would send it to that target
[14:00] that hey say let's the name be Suraj.
[14:04] Hey Suraj, have you heard about Virat Kohli doing this?
[14:08] Could you check it immediately? And because he's a fan, he will
[14:13] just see and click. And as soon as he'll click, the
[14:18] infection, the persistence, the execution command control and
[14:21] damage will start doing its work.
[14:24] It's it's not always that the malware is in execution mode.
[14:29] There are two ways of doing detesting as a malware analysis.
[14:38] Don't always have to start testing it by executing.
[14:43] You might test it just the static file without clicking on
[14:48] it and executing it. We'll go through those
[14:51] processes. I'll show you a bit demo as the
[14:54] fundamentals or functional, just a starting point of how we do
[14:57] the analysis part. We'll see that.
[14:59] But before that, some types of viruses, viruses, worms, some
[15:03] are self reflected, reflecting they replicate, some are
[15:09] disguised as legitimate software, but they are actually
[15:13] something else. So that's why it's advised not
[15:15] to click on every link. So you are going, you're saying
[15:19] that oh, 10 download, you are not downloading it from
[15:23] Microsoft, but some XYZ some other side.
[15:26] So that's how Trojans come into your systems.
[15:29] Ransomwares, they hijack your files and they ask you to pay to
[15:35] get those files released. Spyware, that's I I know many of
[15:40] you have heard about Pegasus. Spyware is they steal your
[15:44] information by either being inside your systems, being
[15:48] inside your mobile phones. Listening.
[15:50] To what you're saying, Yeah, exactly so.
[15:54] And our adwares which says it's, it will generate advertisements.
[15:59] If you are millennials like me, you should know that on clicking
[16:05] on certain links, your entire screen would be filled with
[16:09] popups. So that's nothing but adware.
[16:11] So more of the story is that when a malware, if I go to the,
[16:15] if you go to the first slide which we discussed, depending
[16:18] upon the malware, OK, it will create a damage.
[16:22] You know if it's a ransomware, the damage is different, if it's
[16:27] a spyware, the damage is different.
[16:29] So here the first important thing is that the attacker is
[16:32] very clear about his goal. What is his goal?
[16:34] You want to disrupt like in the case of OT systems and all that,
[16:37] our goal is to disrupt in the case of in the case of the
[16:43] financial data and all that, the goals are Trojan.
[16:45] With a Trojan they want to gain access or in the case sensor
[16:49] data, they know that they have a lot of dependency on healthcare
[16:51] data and all that. The goal is to by Trojans
[16:53] executing random wear and encrypting.
[16:55] So when the attacker any plan, any attacks and all that,
[16:58] they're very clear about the goals and according to that they
[17:00] plan the malwares. Correct me if I'm wrong.
[17:03] Exactly, exactly. And now prep I want to mention
[17:06] here ransomware is also available as a service means.
[17:11] Two firms they are doing. Same business, so one will just
[17:14] pay to a third party and will ask to just attack that party.
[17:19] Will be. Pay you for doing that damage.
[17:23] They might provide you your files, you your files back.
[17:28] But yes, there are ways I will show you how you can get your
[17:34] logged files back. So there there is a tool I will
[17:37] show show that also. So why we do it?
[17:44] Why malware analysis is important to safeguard the
[17:47] company for for sure you are the malware analysis.
[17:49] It's your job. You have to identify the
[17:52] threats, protect the systems, craft a response and make sure
[17:57] that similar attack doesn't happen again.
[18:02] So as I mentioned, there are static and dynamic and automated
[18:07] how we check the malwares. I'll simply jump to that part to
[18:13] show you how you do the static and dynamic analysis.
[18:17] So if someone want to become a malware analyst, OK So what is
[18:23] the skill set is required? OK.
[18:28] Much of the part that we'll be covering today, that would give
[18:33] a baseline. So they should know what is the
[18:37] difference between static and dynamic analysis, how malware is
[18:43] attacking traditionally and how malware is attacking in current
[18:48] day. So very important part here
[18:51] which I want to mention is keep yourself updated with the real
[18:54] world scenarios. So if you're not updated, you
[18:58] know how malware attacked before the COVID, before 2020, but
[19:04] you're not very aware how the strategies has changed, how they
[19:08] are doing it right away, right now with the help of AI.
[19:12] Then the thing things that were working that time, these
[19:16] strategies, the defence strategies that were working
[19:18] that time might not work on the new one.
[19:21] Simply, it's again similar to the doses that we have, the
[19:25] antibiotics that we have for certain viruses inside our body
[19:30] might not work for the pathogens which are currently in the
[19:36] environment because they also develop the immunity.
[19:40] So hope I was able to answer that.
[19:43] Yes, yes, yes, yes, yeah. I was going through the the
[19:46] practical aspects with. Sure, sure.
[19:48] So just to revise that, static part is you're doing, static
[20:01] part is you're checking the file without executing it.
[20:08] Dynamic part is now you executed the file and you see how it is
[20:13] interacting with the outer world.
[20:15] Which processes it is running? Is it creating new files?
[20:19] Is it creating? Is it creating any new files?
[20:24] Any new processes? Everything would be covered.
[20:28] So. I'll just wait for my.
[20:32] I really like this lab. It's a, It's a third party
[20:33] company. What is that?
[20:34] It's a. Yes, this lab is a third party
[20:37] company. There are various vendors and
[20:40] this is one of the vendors. Is it cost effective compared to
[20:45] taking the third party VM machines and all that?
[20:50] Yes, means there is no comparison of having your own
[20:55] lab environment. But sometimes when you have
[20:59] prefixed tools and techniques, then it makes more sense to
[21:05] spend there rather than spending for.
[21:09] Yeah, it's all about. CapEx to OpEx, Yeah.
[21:11] Yeah, exactly. Exactly.
[21:38] All right, so our lab is up, so we'll use our Windows system.
[22:23] All right, so, so I expect that your defense systems would be
[22:36] very strong. So to show you how malware
[22:39] works, I have turned off the firewall and defenses of this
[22:44] lab environment so that it doesn't interfere in what we are
[22:47] trying to teach. Sure.
[22:50] So first of all, I'll provide an insight into file system.
[22:55] So like every one of us is having certain unique features.
[23:01] We have unique fingerprints, we have unique retinas, retina
[23:06] scans and that's how we are allowed inside any form.
[23:10] Similarly, every file has its own hash value.
[23:14] So that's the unique feature of every file that is used to make
[23:22] to make it different from the other files.
[23:27] I see one folder here, malware samples generally the.
[23:37] So generally we use. So this is a file I want to test
[23:44] if it if it is a malware or not. I will check it with a tool
[23:51] called Virus Total. Virus total will provide me an
[23:55] information or an overview of of that file.
[24:03] We can check URL's also. It will search on every possible
[24:12] endpoint detection and response what their analysts are saying
[24:20] and then it will show you the response.
[24:24] So it says out of 7270 have flagged it as malicious.
[24:31] It's it's not just one antivirus, but all of these
[24:36] Avast, AVG, Kings of Panda, everyone Sentinel one and also
[24:45] the details what other names this file is having.
[24:50] What is the SHA hash value? SHA 256 hash values.
[24:54] These are the hash values which is generally covered in
[24:57] cryptography. If we work in cryptography and
[25:02] encryption, these things we study there.
[25:06] But for now, I'll just mention that hashes are means you cannot
[25:11] change anything regarding a hash.
[25:14] A single change in input or output will change the hash
[25:18] value entirely. So that's one way to check the
[25:22] integrity of any file. So if a sender and receiver
[25:26] receiver is expecting a file of hash value XYZ, and even there's
[25:30] some change in the transition, even a single word is changed,
[25:36] the XYZ will now change to say ABC or something else.
[25:40] So that way the receiver will know that OK, this is not the
[25:43] file that I was expecting. Something is fishy.
[25:47] It provides you the creation time.
[25:50] What are the other names of the same file?
[25:52] Everything. All those details are present
[25:54] here. It will also talk about the
[25:58] relations it is having with which URL might work in the
[26:03] background. So let's talk about.
[26:05] It is here talking about the CNC controller.
[26:10] So this is without executing. We haven't executing, just
[26:13] checked with one of the tool. Behaviour analysis is there what
[26:21] kind of behaviour it exhibits, defence, evasion, privilege,
[26:27] escalation, all these things it is capable of doing.
[26:30] And then there are community related questions here.
[26:33] Now this is 1 tool which provides you on its own.
[26:36] But can we do it on our own? Can we check if the file is
[26:41] malicious manually without having to go through these
[26:47] things, without having to go through the tools which are
[26:49] there already there on on the Internet?
[26:54] So there are some tools. One tool is this hash my file.
[27:00] I will open that file here. It was on desktop.
[27:09] My web samples say this was the file.
[27:13] Open it. So you see it's providing you
[27:18] all the SHA values related to it.
[27:22] If you are, if your Internet is also not working, you are
[27:24] analyst and Internet is not there.
[27:27] So you cannot say that Internet was not working.
[27:29] Virus total was not working. That's why I was not able to
[27:33] check it. No, that excuse gets remediated
[27:37] once you have these kind of tools.
[27:39] So manually I'm checking the MD5 SHA, these values and these you
[27:46] can also cross check with the virus total output.
[27:49] So also there are tools like HXD.
[27:57] Here we have checked with hash my files.
[27:59] There's another tool called HXD. Let's download one tool.
[28:08] So what will HXD do while we download it?
[28:18] HXD will help you get to know what this file actually does so
[28:26] if we download it. So, so far, whatever we're doing
[28:38] here is is more like a dynamic analysis.
[28:42] No, it's static. We are not executing the file.
[28:44] OK. We are doing it dynamically.
[28:47] I'll better have English file rather than.
[28:51] Spanish. Yeah, exactly.
[28:54] So these are available in every language.
[28:56] You can see English is here, so download it.
[29:24] What is one thing that you are using from your school days?
[29:28] One thing on the Internet because that time ChatGPT was
[29:32] not there, Other tools which are available now were not there.
[29:38] What was one of the thing on the Internet that you would use for
[29:42] anything if you want to know about anything?
[29:46] Google. All right, and on Google I want
[29:50] to know about some person or something which is not easily
[29:55] available there, which site I would visit.
[29:58] I don't want to tell that, but I prefer to go on darknet.
[30:03] OK, Darknet. Because we yeah, pipl.com,
[30:08] OSINT, if you talk about gathering the information about
[30:12] the individual. Yeah, all right.
[30:15] Another one means if we are not specifically talking about
[30:19] cybersecurity, then there's another tool.
[30:21] We'll see which tool I'm talking about.
[30:23] First of all, I'll fetch the file.
[30:29] And it is a freeware, right? Yes, this one is also freeware.
[30:38] So again we fetch the file. The file provided us the detail.
[30:47] The tool that I was talking about is none other than
[30:51] Wikipedia. So here we see the file starts
[30:57] with having offset offset all zeros.
[30:59] It starts with four D5A. But I'm not able to understand
[31:03] what rubbish it is written because I'm new to malware
[31:06] analysts. I've just joined my job and I'm
[31:09] not sure what they are trying to say.
[31:11] So I would have Wikipedia to my rescue.
[31:15] In Wikipedia I will search for file signatures.
[31:24] Interesting. So list of file signatures in
[31:29] Wikipedia. It would give me a hint that
[31:33] what this file is talking about. I remember it started with four
[31:37] D5A something. So let's see if there is
[31:40] anything starting with four D5A. Or you can type CTRL F and type
[31:45] 4D. Yeah.
[31:46] That would save us some time 4D. Yeah, Quark Express dos MZ.
[31:56] Yeah. It's exactly the file that we
[31:59] were analyzing. It says it would be available as
[32:04] DOS, DOS MZ executable and could have all these as the suffixes.
[32:11] socouldbe.exe.dll could be downloader can be would be
[32:17] available with dot sys. All these could be used to
[32:22] deploy this file. So that exact same file.
[32:27] So now with wiki and HXDI know that this file it says this
[32:34] program cannot be run in DOS mode.
[32:37] But we have a little information how it and it is PEP is probable
[32:43] exploit. So that's that's what details we
[32:48] have got from HXT and wiki. So this fingerprinting in static
[32:55] analysis without clicking anything, without executing the
[32:59] file, it's just providing us the basic information which we would
[33:03] be using. Might be I don't need to run the
[33:10] application because I have all the necessary information with
[33:13] me that this is actually a malware and I don't need to
[33:18] execute it anyways. So but, but, but I think I want
[33:22] to ask you one thing. When we're doing a static
[33:24] analysis and you use the tool and all that.
[33:26] Yeah. OK, when we're doing a malware
[33:29] analysis, our goal is to identify the the behaviour,
[33:35] identify the author and identify the context.
[33:38] So apart from that, what do you think?
[33:40] What are the things, other things we will look into that
[33:42] when you're doing a malware analysis static, are we using
[33:45] system? That's exactly what I was going
[33:48] to show you next. So Harpreet this is what you
[33:52] covered in the static analysis and what about dynamic analysis
[33:57] now? Like if I want to dynamic
[33:58] analysis how it works? All right, so that comes to the
[34:03] second question, second part where we are not just talking
[34:08] about the details of the file, but also checking once it gets
[34:15] clicked. So that means statically the
[34:20] file is inside your system, it is not doing anything, It is
[34:22] just staying as soon as the user interacts with it.
[34:26] It's the type of malware which requires user interaction.
[34:31] So as soon as the user click on it, it executes, it starts
[34:36] behaving. So let's do a little analysis on
[34:44] the dynamic part. Also, once you execute a file
[34:47] for that we will be using a tool.
[34:52] We have a tool called System Informer.
[34:56] System Informer provides you the details of every process that is
[35:03] working inside your system. So it talks about SV host,
[35:08] runtime, Search app, text input, all the services which are
[35:12] running currently on your system.
[35:15] To use it better you can all always search processes.
[35:19] It works just like CTRL F for us.
[35:23] If say this is search application, I want to restart
[35:28] it about restarted and it now why after doing any process
[35:43] which is having more CPU utilization and it's holding
[35:48] your resources as hostages. So you restart your system and
[35:55] in safe mode and kill that process if it is not working in
[35:58] your main system. So now can we get malware
[36:08] somewhere on Internet? People are very curious.
[36:12] I don't generally share that detail.
[36:15] But yes, lots of question where we can get malwares and ready to
[36:23] use malwares. So there are, we know in India
[36:29] we call markets as bazaar. So we have malware market also
[36:33] which is malware. Bazaar.
[36:35] OK. So here you can get once you're
[36:41] inside the database and you justify that you are a human by
[36:47] clicking on the captcha. Once it verify that you are a
[37:03] human. Then the system.
[37:08] So all these are the sample malwares.
[37:13] Again, you don't have to download it on your own system
[37:16] and then Remember Me otherwise that he had told us so I don't
[37:21] want that. So always dealing with malware.
[37:24] You should have your lab set up test environment there any other
[37:31] way Yes, you don't want to go into database.
[37:35] So what you will do honeypot. So now we are not going to
[37:42] malware bazaar, but cloud Baba, very familiar Indian names.
[37:49] So here we have some tools. So I see keylogger malware.
[37:54] I guess I have already downloaded it, but that's that's
[37:58] from where I have downloaded it just to show you yes, malware
[38:05] samples. Even if it is there, let's
[38:11] download it again. So here's the key logger.
[38:26] Before and after execution versus internal is still
[38:37] running. You know it's talking about
[38:42] processes. You can check services, network,
[38:46] disk, firewall, everything. And then there is system
[38:51] information which talks about the utilization.
[38:55] Now this is how the normal system is performing.
[38:58] Normal system is saying that OK, it was 91 something but now it
[39:02] is 41 and everything is fine. But will it remain fine once you
[39:13] execute any process? So let's move to that file
[39:19] again. The downloaded one,
[39:39] so as you we have to extract it after
[39:58] extracting it. So just to see if our firewall
[40:30] is deleting it. So just to see that you have to
[40:35] open virus and threat protection settings, manage the settings,
[40:40] real time is off, cloud delivered protection is off.
[40:44] Also you can add or remove exclusions.
[40:47] I have made exclusions both on desktop and documents folder.
[40:52] But this is for malware samples. So anything else if it is
[40:57] downloaded it will delete it. So let's create one for for
[41:08] downloads. Key logger so that so that's
[41:19] when I executed it don't get deleted.
[41:24] It's there. Now if we extract that in
[41:28] downloads currently it is not there.
[41:32] It's deleted automatically. Now if we do it extract extract.
[42:07] So it will either remain the same for other malwares.
[42:13] Also, we have samples of many malwares.
[42:26] So if I execute Ransomware Wanna cry you'll see things getting
[42:33] distorted here and not just this one.
[42:46] You see the memory now has raised up to 2GB.
[42:49] Once you have clicked on Ransomware wanna cry that means
[42:53] that something changed from 11%, now it's on 22%, nearly 2.2 GB.
[43:01] And similarly you have seen CPU utilization from green to it has
[43:05] is a red spike. This is the higher utilization.
[43:10] Now there are other tools. There is a tool called proc Mon
[43:15] which is the process monitor. But when we are talking about
[43:19] this, the dynamic analysis, what we run, So what is the learning
[43:25] we get from there? OK.
[43:27] Competition is high and all that, but on the cost of
[43:30] infecting our system, right? Yeah, yeah.
[43:33] So what is the learning we get from this?
[43:36] So the learning is without verifying the source of the link
[43:42] that you have got, OK won't simply click on it.
[43:46] Especially if you are in office and someone says that hey your
[43:51] appraisal letter has been released, please click here and
[43:54] see what you have got. Or they are offering you beers,
[43:57] free beers or something like that.
[43:59] Anything fascinating or extraordinary.
[44:02] OK. Might be a trap, so I won't say
[44:06] that everyone should know how to check.
[44:08] But yes, as soon as you see that, share that file with your
[44:13] security team. And as a security team, this is
[44:17] what you people are doing in the background as analysts.
[44:20] So you're not just checking it statically.
[44:24] Now if that user had clicked on that link, the Process Monitor
[44:31] will show you that OK, there are some new files which are getting
[44:35] added. The CPU utilization is varying
[44:37] all those things which we are currently seeing here.
[44:43] So one thing that we saw was this detail that this is
[44:46] something distorted. Another is in Process Monitor.
[44:54] You can filter the process with the name of that process that OK
[44:59] the user has clicked on this file ransomware.exe use filter,
[45:11] use filter name the process name process name was ransomware.
[45:42] So if that process is anywhere in the system, it will show
[45:48] here. And this is not just one kind of
[46:08] file. Any file you can include it
[46:11] here. If you know its process ID, you
[46:20] can filter it using process ID. The time, date and time at which
[46:25] it was clicked. You can filter from that date
[46:29] and time. Some files take a little time to
[46:40] show what processes they are, because that's the buffer time,
[46:44] they are persistent. But now you have clicked on it,
[46:48] they'll wait. Is it a trap for from security
[46:51] team that OK, now we have clicked it for testing and as
[46:55] soon as we know that OK, this file is malicious, will do
[47:00] something for it. But if they make, if they add a
[47:05] little delay, the process will start a little while later so
[47:10] that it might defeat the security team or defense team
[47:16] that OK, there is nothing malicious, but it might be and
[47:20] it's just delay added by the attacker.
[47:23] So that's one point also that we have to check.
[48:00] Any new file which is made with that process, you can check with
[48:06] the PID specific to that process.
[48:13] And to give them more detailed information there.
[48:16] Yes it will. And what extra you can do while
[48:21] you are doing this Procmont thing?
[48:24] Because Wireshark execution takes time, I will not include
[48:28] it in this demo. But you can check what network
[48:32] information we talked about the CNC controller.
[48:34] You can check that in what Wireshark that once this is
[48:40] clicked, once this EXE file is clicked, what happens to the
[48:45] Wireshark traffic. You might see the filter that
[48:50] you'll be using in Wireshark is the DNS filter to check which
[48:53] DNS traffic is flowing through it.
[48:56] So once if there's some URL or some HTTPS, the one we have
[49:01] already, we checked in virus total, we know which URL would
[49:04] be there. But if virus Total is not
[49:07] showing it, you know that that URL which you see in the
[49:13] Wireshark communication, that's exactly the CNC command and
[49:17] Control Center. Sometimes if it is a zero day
[49:21] attack or a new malware in, in, in in the domain.
[49:29] So that's exactly why you, you are you have to do these manual
[49:37] things, manual test, because some sometimes there is a new
[49:40] file in the market which virus Total doesn't recognize because
[49:44] that hash value is new to it also.
[49:46] So answer to the question which you asked in the starting that
[49:50] when, when we are having these things automated, why we are
[49:54] using, why we are doing manually.
[49:56] That's the answer for zero day, for zero day attacks, you don't
[49:59] have anything on Internet. Virus Total is unaware of that
[50:03] file. You have to go through these
[50:05] steps and provide virus total information on it.
[50:11] You can sign in virus total and provide that information.
[50:13] This is the hash of a file that we see we think is suspicious.
[50:20] So that this pretty much covers dynamic 1 means the use of proc
[50:26] bone and Wireshark. There are some other tools and
[50:30] not even we can talk about it, but that would take a lot of
[50:36] time, means it would be entirely 1 lecture on on that topic.
[50:42] But thanks Harvinder, like you know, it was thanks, it was
[50:46] really a great insight that you have shared on starting and
[50:49] dynamic analysis and all that. And do you recommend any kind of
[50:53] a key pointers when the people involved in Marvel analysis and
[50:58] all that? Do you have any thoughts?
[51:00] Do you want to share your wisdoms, experience for the
[51:04] people who want to work on the malware analysis and all that?
[51:09] Yeah. For sure one and most important
[51:14] thing for any security researcher analyst is patients.
[51:19] So things might not work every time.
[51:23] This if even if you people are doing bug bounty hunting, you
[51:27] might know well about the patients thing when things come
[51:32] duplicate. Similarly in ransomware also one
[51:37] tool is doing perfectly OK, the other might show otherwise.
[51:41] So that doesn't mean it's the tool which are not relating to
[51:45] each other. It you have to use your own
[51:50] intellect there. For example, I provided you an
[51:53] example of if you are only relying on virus total and virus
[51:56] total says I don't know about this.
[51:59] So you don't have to panic. You know how to do it.
[52:03] You know the tools. There are certain books,
[52:06] brilliant books available in the market. 1 is Malware Analysis
[52:11] for Dummies. It's good to start.
[52:14] Yeah, there is another book. I don't know the writer of it,
[52:19] some Chinese guy is the writer. It Practical Malware Analysis.
[52:24] Very nice book. Again, it provides you the
[52:28] wills. It's not just provide you the
[52:31] technical aspects, but also the mindset with which you go
[52:34] through these things. So the point, the answer to your
[52:38] question is patience. Whatever you are doing, it might
[52:41] take a while. You don't have to cut and start
[52:45] doing the other thing. Let one process complete.
[52:50] Keep making notes of it. That's one important thing you
[52:54] have to do the incident handling alongside whatever incident is
[52:58] you have to making notes. You have to make notes.
[53:01] This is how it started. This is the point where our
[53:05] defenses lost because that's why it was able to enter your.
[53:11] So if it requires user training, go for user training means that
[53:17] those these points are under lessons learned.
[53:20] What lessons do you learn? So incident handling is the
[53:24] other point. After the patients, the incident
[53:27] handling should be top notch. If you are a good incident
[53:30] handler you are a good analyst, be it malware analyst or
[53:34] vulnerability management. But yes, incident handling and
[53:38] patience I would answer. That's great.
[53:42] So, so Arpit like you know, as we are summarizing this session
[53:45] and all that, can you just quickly glimpse through the the
[53:48] high level summary of static and dynamic again, so it give them a
[53:53] a clear review? Yeah, sure.
[53:54] Sure, so we had covered the static and dynamic part, but
[54:01] what we covered in it. So in static malware analysis,
[54:06] we checked the hex editors, we inspect the file properties
[54:12] using HXD and wiki. Those file signatures were
[54:16] checked this assemblers we disassemble the code.
[54:21] There are certain other ways we use virus total which was having
[54:26] the details how, how and with which name this file is present.
[54:34] Various other names also disassemble the code.
[54:39] If you are good in code review you can analyse what the code
[54:45] inside that file is doing. So you can use the automated
[54:48] tools like data code. But if you are good in coding,
[54:52] you know that OK, we don't require this call if it is
[54:57] calling some API. So does we also require this API
[55:04] actually? And what tool can help us to get
[55:08] that API call Thing one, you can always use Google.
[55:13] There is another tool called ChatGPT, but there is another
[55:20] tool called. Mallapuram my.
[55:24] Mal API dot. Mal API OK.
[55:27] IO so from the floss or the details that you get, if it is
[55:36] saying heap create why it is asking for heap create?
[55:42] OK. This is the function it is
[55:43] calling. Why it is used?
[55:45] Which library it is using? What are the injection?
[55:49] What are the associated attacks? So it could be leading to
[55:53] injection attack and related documentation you will see in.
[55:58] Microsoft. And so it it just makes it
[56:03] simple rather than you Googling it, it just provides you at a
[56:07] single interface which is called Malapia.
[56:10] So that was answer to disassembling the code and using
[56:14] antivirus for static malware analysis.
[56:18] Again, we are doing it without executing it.
[56:20] While if we execute it, you have to use sandbox for sure.
[56:25] You don't have to use your own host, your own system.
[56:29] It might destroy it, it might destroy the system, it might
[56:32] destroy your reputation as malware analyst.
[56:34] So never do it on your host machine.
[56:37] Network sniffers wire shock. How network sniffers like
[56:42] Wireshark see the CNC traffic, The URL which is which you don't
[56:46] expect there? Why is that application or that
[56:50] host talking to this URL? Any strange URL in Wireshark,
[56:55] use filter DNS and then you'll be able to see that proc Mon,
[57:02] proc Mon just we saw how it observes any file modifications.
[57:08] Patience again, your file might take a while to show any
[57:11] modifications. It might show on the spot as
[57:15] soon as you collect it, it might take a while.
[57:17] Buffer might be added 5 minutes, 10 minutes, 15 minutes.
[57:21] So that till that time security people are like, OK, we are
[57:26] cool, nothing is going to happen.
[57:28] But then it starts executing. You're already covered in high
[57:34] level, yeah. So just a comparison between the
[57:37] two, what tools are used in both of them?
[57:41] What focus we have, we focus on code structure in static, while
[57:46] it's more of behaviour patterns in dynamic analysis.
[57:50] There are tools in. If you're working in corporate,
[57:53] you do have tools like Defender, Microsoft Defender, it's a very
[57:58] nice dynamic analysis tool. It checks every behaviour
[58:03] pattern of application users. Very, very perfect tool.
[58:08] Are there any tools? So there was a question last
[58:11] time asked while I was covering this slide.
[58:15] So are there any tools which do the behaviour analysis part and
[58:20] which are not yet very vast and they are AI based.
[58:24] So there are certain tools, means it's exactly the companies
[58:28] which are doing it. There are companies like Doc
[58:30] Trace, Vectra Extra hope they all work on similar basis.
[58:35] They use AI for this behavior pattern and analysis and
[58:39] providing the details that OK, this file is behaving not
[58:43] behaving nice. So let's they will provide an
[58:47] alert to you and rest. You can check that if it is in
[58:52] the normal pattern that file is showing or something suspicious
[58:55] there. So now the stock analysis or
[59:00] malware analysis starts. OK.
[59:05] So dynamic part requires more time and resources for sure.
[59:08] You have to use Wireshark and all proc one.
[59:11] All those things while static analysis you can cover in a
[59:16] single podcast. That's that's that's thanks.
[59:19] That's that's really, really, really great.
[59:21] Amazing. And you know, I was not
[59:22] expecting that we will cover Marvel as early as possible, but
[59:26] thanks for this. Basically insights that you have
[59:28] shared. And I think one thing I like
[59:32] about this is that how we can use with the zero investment in
[59:35] the tool to do the analysis. That's a big thing I learn in
[59:37] this particular podcast. And and those who watching this
[59:42] podcast, do let me know what is the best thing you like about
[59:45] the podcast. And see, he's my friend.
[59:48] I can disturb him any point of time.
[59:49] And do let me know in the comment box what should be the
[59:53] next topic I should discuss with Harpreet.
[59:57] And so because we are recording this live, so I don't think so
[1:00:00] he will say no to that. So for me, this is a, this is
[1:00:03] like a the live attack I'm doing by asking him in front of you
[1:00:08] guys. So do let me know how do you
[1:00:10] find this podcast? And this is all from our side.
[1:00:14] If you but thanks, Arpreet, thank you for taking out the
[1:00:17] time. I know it's a weekend and we, we
[1:00:19] already have a tight week schedules and all that.
[1:00:22] But taking a weekend time for this podcast and giving back to
[1:00:25] the society, it's a big thing I have to buy.
[1:00:27] We really, really owe you for this particular thing because
[1:00:32] people spending huge money on this and we, we, we are able to
[1:00:35] generate this free for the participants.
[1:00:37] Not everyone is available to share the knowledge and wisdom
[1:00:40] but taking all the time, spending your things and it's
[1:00:43] now two hours, I'm sure it will be one of the best podcast we
[1:00:47] had on the tactical side of the sock and I'm sure it giving a
[1:00:50] great input, great insight to the freshers or people who want
[1:00:53] to upskill their self in the marvel analysis.
[1:00:55] And can I share your LinkedIn profile in description box so if
[1:00:58] someone has any query they can reach out to directly?
[1:01:00] Sure, sure, that would be. Thanks, thanks.
[1:01:03] Thanks Arpit. Thank you.
[1:01:04] Thank you so much for taking all the time for this podcast.
[1:01:08] We we looking forward for more sessions on the offensive and
[1:01:11] defensive side from you. Thank you.
[1:01:14] Thanks a lot Prep. Great time.
[1:01:16] So this is all from our side team and if you go to the
[1:01:19] channel to subscribe to the channel and click on the bell
[1:01:21] icon to make sure you should not miss the future videos on a
[1:01:24] similar topic. Good day, Bye.

Shows are listed from Apple Podcasts' charts and directory, and Podcast Index where it is used. Every show and episode belongs to its publisher and plays from the publisher's own feed; this site hosts none of them.
