Cybersecurity SOC Analyst Lab: SmartApeSG PCAP Analysis (ClickFix)
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
It is quite common nowadays where you're browsing the web and you get hit with a capture. You know those annoying verify your human prompts where you have to have either 2020 vision or selecting hundreds of fire hydrants and questioning your life to get through. Now, unfortunately, not all captures are legitimate and some in fact do try to trick you to run certain commands on your endpoint. If you have ever heard of the click fix attack, that is pretty much what I'm referring to. In this video, we'll go over a pecap provided by Brad Duncan over at Malware Traffic Analysis. So, a huge shout out to him for sharing these and allowing all of you to upskill in the wonderful realm of network analysis. But before we get started, I do have a free community for aspiring sock analysts called the Myers for Sock community. So, if you want to be surrounded with like-minded individuals working towards the same goal, I would highly recommend checking it out. Link will be in the description down below. All right. To get started, I went ahead and downloaded the pcap, and I will leave a link down below so you can follow along. From here, I'm going to simply double click it. Now that we have the pcap opened, the first thing I like to do is modify the time view. If you take a look under the time column, you'll see 0.00.05,
etc. What we want to do here is change it so we can see year, month, and day.
To do this, you want to head over to view, go into time display format, and we'll select UTC date and time of day. Now, take a look under our time. Now, we have the year, which is 2026, the month, April, and the day 23. The time is also
in the UTC time zone. And what's left to do is just make sure that we sort it in ascending order, meaning that the earliest is at the top and the latest is at the bottom. Now that we modified the time view, the next thing I like to do is make sure that we include a couple more columns. If we take a look, we have the number, time, source, destination,
protocol, length, and info. And you might notice that there is no column for a source port or a destination port. So
why don't we go ahead and add that in? We can do this by clicking into edit, go into preferences, go into columns, and then let's click into the plus icon. From here, I'll double click and we'll name this as source dashport.
Or we can just put a space. Whatever name you want, you can put it here. Under the custom, let's double click it. Select a dropown and then we want to look for source port. So we'll do the
source port unresolved and we'll do the next one destination port and we'll put that here. Cool. Click on apply and okay. Now if we scroll to the right we should get two new columns. Let's go ahead and drag this and I'll put it next to the source.
And let's do the same for destination port. Beautiful. Now we have the source and the source port. Destination and the destination port. Another way that we could have done this was expand the packet details right here on the bottom left. And then we could rightclick and select apply as column. And if we do that, notice how there's a destination port. So that's what we could have done as well. But I'm going to go ahead and rightclick this and let's remove this column. There we go. Now that we have our time, we included the source port and the destination port. The next thing to do is take a look at the statistics.
So if I click into that, go into capture file properties. Now the reason why we want to take a look at this is to ensure that the first packet and the last packet make sense. For example, if we take a look at the first packet, this was at 2026423 204430. The last packet was 2026 0423 at 214316.
Now if somebody handed you a pcap and said that hey there was compromised activity that occurred on April let's say 25th then you know immediately that this pcap is incorrect because it doesn't have any data for the 25th. So that's why you want to take a look at the capture file properties to make sure that the data exists. And also it does give you the total captured packets which in this case is 81,329
and also the total elapsed capture time.
Going back over to statistics, the next thing is the protocol hierarchy. We want to know what protocols exist in this particular pcap and it is broken down into the different layers. So here we do see UDP and there is DNS. Under TCP, we
have TLS, which is transport layer security, and there's also HTTP. By taking a look at the protocol hierarchy, we now have a better idea of what is contained within this pcap. So now I can go ahead and filter for let's say DNS to take a look at all of the DNS queries and or I can take a look at HTTP traffic, maybe see if there's any get request or post requests. The next thing I like to do is take a look at our conversations. And again, this is under our statistics. From here, it is broken down into the different layers. We have Ethernet, aka your layer 2, IPv4, aka
your layer 3, and your TCP and UDP.
Let's click into the IPv4. This is going to show us, well, essentially the conversations. And what I like to do here is sort it by. This way I can immediately see the top talkers. In this case we have 10.4.23.101 communicating with 104.36.229.149.
And this conversation generated 101 megs. Now don't get me wrong, the first or top talkers are not always malicious, but it is something that you do want to pay attention to and then go from there. So why don't we open up a notepad and let's take down some notes. We have 10.4.23.101 104.36.229.149.
This generated 101 megs. Now I am quite
curious. Let's do a little bit of OSN on this IP address. One of my favorite tools to use is the abuse IPDB. And if we go ahead and paste that in, let's see. So this IP address was reported six times with a 0% of confidence of abuse.
The ISP is shock hosting. And if we scroll down here, it was reported due to email spam, port scan, hacking, brute force. Yeah. Okay, cool. So this just gives me a little bit of context as to potentially what I'm dealing with. Again, it doesn't necessarily mean that this IP address is actually malicious, but at least for me, I can copy the ISP. Let's put that in there. And also the country. We'll just say US. Now, what about virus total? What does virus total say about it? Whoops. We want to search for 104 36 22949.
Okay. Six vendors are flagging it as malicious. Going to community ransomware group. Got the C2 here. Looking at the port 28333. Yeah, BNL go Trojan C2. Okay. So, by
performing additional analysis, we are now leaning towards this as being likely suspicious. But again, we do need to do further investigation to actually come to that conclusion.
Let's put into our notes. VT, short for virus total, 6 out of 92,
and it's related to Ben Leanne
C2. Now, if I'm not entirely sure what Bian Lean is, why don't we go ahead and copy it and search it up? So, this is a ransomware developer and they have been active since June 2022. All right, let's go back over to our Wireshark and let's take a look at the TCP tab. I'll sort it by bytes again. And yeah, taking a look. It is the same external IP address going towards port 443 generating the same
bytes. Now I am curious, is it only 443?
Well, we do have a port 80 here and port 53. Okay, so there are three ports, 53,
80, and 443. Now we can start performing some of our analysis. Let's imagine that your manager handed you a pcap and then said, "Hey, can you please analyze this? Our client provided this to us after they were infected and they're thinking that something in here could provide us with answers." What do we do? Well, we did do our general, I guess, reconnaissance information gathering based off of this pcap by looking at the statistics, but when it comes to the actual analysis, these are some of the things that I typically do. So, the first thing is looking at DNS queries, I want to know what kind of DNS queries were requested during this time of capture. Now, if you're new to Wireshark, you might be questioning, "Wait a minute, Stephen, that sounds great, but how do I filter for DNS?"
Well, we can select any kind of packet that contains DNS. And in this case, our packet number one and two do contain DNS. How do I know that? Well, look at the protocol. The protocol shows it as DNS. And actually, Wireshark does color
code some of these packets. So if we take a look here, DNS is light blue and then the encrypted TCP traffic is light
purple and our sins, so our TCP flags,
our sin and synax, these are dark gray.
So yeah, you do want to make sure to take advantage of the color coding as well because if we take a look over to the right, it is a little bit hard to see, but this column here
can show you pretty much what kind of data exists in the pcap. Notice how it's majority light purple. [laughter] So you can infer that this pcap is going to contain quite a bit of encrypted traffic. But anyways, let's go back over to our DNS. So if we select one of these, in this case I'm selecting packet number two, we can then rightclick the domain name system at the bottom and then simply select apply as filter. Click on selected and our query should automatically update or well in this case our filter should automatically update. So this is how we can slowly but surely build up our filter. But if you take a look over to the right under the info, this contains both the query request and the query response. If we're only looking for query request, how do we do that? Well, we can highlight one of the requests and then over to the bottom left hand side, we'll expand the domain name system. And actually, I'm going to collapse our UDP. That way, it's just a little neater. Now, let's rightclick our flags. So the standard query and then we'll apply as filter and
selected. That way it's going to update our filter to look at DNS and queries.
So let's do that. Beautiful. So these are all of the requests that were made within the pcap. And this is what I typically like to do because well we want to see what kind of domains were requested. And our first request was over to this domain. The second one which was about two seconds later was towards this one starting with IB. And you know what? Let's open up our notepad and take some notes. So beginning on 2026 0423 at 204430 there was a DNS request made towards great river literary.com
and this was from 10.4.23.101
towards 10.4.23.1.
This right here is likely their gateway acting as their DNS server as well. And then about two seconds later, so just copy this. Actually, let's copy all of this. There you go. About 2 seconds later, DNS request was made towards Ib
Han.com. And then, yeah, a couple milliseconds later, we get into Hora GIFs. Uh, let's do this. Hora gifs
this is.com and nexaflow lab.top top. What this
tells me is that because it is within milliseconds, it is likely that once the user visited the site of great river literary.com, these three domains were immediately loaded. So this one, the ibarcan.com,
horiflowab.top. These three domains are likely embedded in this page source somewhere. We also got Windows. There's a solid pathcore.com. This happened about a minute later. We got some more Microsoft. Microsoft. We got Bing. Is there any other interesting ones here? So, looking at this, it seems to be just Microsoft related domains. Now,
don't get me wrong, I'm not saying that you shouldn't take a look at Microsoft domains. You absolutely should. But when time is at the essence, I would much rather you focus on domains that are not Microsoft related yet. So for example, if we scroll back up, I would pay close attention to this one right here, Solid Path Core, Nexaflow Lab, Hora Gifs, IB
Harkan, and this right here. But the Great River Literary is likely legitimate because it is the first packet and then everything from there was spawned from this particular site. So, it's legitimate in a sense that the user accessed it, but it was likely compromised at some point, which is why we see these other random domains. With that said, let's go and perform a little bit of OENT here. So, the first site that I'm going to go to is URLC.io and let's search up this great river domain. What do we see here? So, there was one that was scanned about 12 days ago as of recording. Actually, you know what? Let's do something better.
I'll go into browserlink.com and let's paste that in here. So, this is essentially a browser sandbox that you can just put in some links and then take a look. And yeah, this is the page. Now, if we were to test our theory and open up uh actually, you know what? Let's just rightclick, go into view page source, and if we were to do a Ctrl+F and search up, what was it? IB horror.
Oh, yeah. Look at that. It's right there. What was the other one? The other one was uh Hora Gifs. Yep. Oh, got some
JavaScript here. Okay. And I believe the other one was Nexa flow. Yeah. So, there is no Nexa flow here. So, the IB
Hurricane and Hora GIFs exist, but this
does not. Speaking of such, let's do a search or we will browse to that site and take a look. I am quite curious. Oh man, this site can't be reached. Okay, let's go into URL scan again. And what
if we search for this domain instead? Okay, 11 days ago and other domains show up. This tells me that this particular Nexaflow lab also exists in one of these
domains as well. If we go into the most recent one, we cannot scan this website. H, that's too bad. Let's go into virus total. Okay, six vendors flagging it as
malicious. But take a look over to the right. Look at the creation date. 17 days ago. That is quite interesting. Any recently created domains are often utilized by attackers to perform nefarious activities. So that's why taking a look and seeing it as 17 days ago as a recording, that is making my spidey senses tingle. Let me write down some notes here. Nexa flow six actually
VT six vendors recently
created 17 days ago out of curiosity
what about the horif
so not as suspicious but it's still can
be worthwhile to take a look we have two vendors flagging it as malicious looking at the relations Mhm. Okay. Go into details. Corporate gifts.
Okay. What about the other one? Actually, before I take a look at that, let's write this down. Two vendors created four years ago. And
the last one. Ooh, 10 vendors. This was created 7 years ago, but no community notes. H.
Okay. VT shows 10 vendors and this was
created 7 years ago. Perfect. Now, let's go back over to our Wireshark. Now that we've taken a look at DNS traffic, the next thing I like to do is taking a look at the HTTP traffic and the fact that we did look into the statistics into protocol hierarchy. We did indeed see HTTP. So, what I can do here is just simply type in HTTP and hit enter. and we get a total of 16 entries.
Looking under the info column, we have a get request. And that's pretty much it. Just all get request. By the way, with HTTP traffic, we can actually export these objects by clicking into file, export objects, and then we can select one of these protocols. In our case, we can select HTTP and then essentially download whatever the user downloaded or the browser downloaded. Taking a look at the first two packets, we have two external IP addresses. I believe one of them was related to the top talker. So, if I open up our notepad, this one right here, 104 ending in 149. No, but there
is a 104. No, there's two 104s. H. What
are these? Interesting. But if I wanted to download these onto my host, I can simply select save or save all. For now,
I'm just going to click on close. And if we click into the get request, which is under the packet number 1107, if I were to rightclick, we can follow
HTTP stream. This will show us the client and the server response. So we
can see that the client requested well essentially the root towards this IP address and then the server responded with this right here. And if we look at the user agent that the client was using
we can see Windows PowerShell. That's quite interesting. So it's doing an outbound connection towards this external IP. Why is it doing that? What we can do with this user agent is rightclick and copy. Although it does say Windows PowerShell here, sometimes it could be a little bit confusing and you're not entirely sure what that user agent is. If that ever happens, we could actually go into a site called, I believe, parse user agent or something like that. Ah, yeah, right here, the what is my browser.com and we want to select the parse a user agent. From here, we paste that in and there you go.
Windows PowerShell 5.1 on Windows 10.
Let's put that into our notes. What time did this occur? Actually, this occurred on April 23rd at 204554.
So, 204554
and there was a HTTP get request made by
a PowerShell user agent towards
104.36.229.108.
Now, we can do another OSEN check. If we paste that into abuse IPDB, it's under the same ISP. Take a look at virus total. Same thing. Six vendors and there's nothing under community, but that's okay. Let's put that into our notes. This is six vendors
and same ISP as above. Now, let's take a
look at the server response. And you might notice that there is a invoke web request towards the domain or the quaded
IP address of 104.225.129.155.
So it's making an outbound connection towards this IP address. And then it's going to run what seems to be PowerShell and starting some kind of process. The reason why I'm saying some kind of process is because of this right here. Process start info. Now, before we dig into this block, let's do our quick OSEN checks again. If we search that up, we get four vendors, nothing in the community. And this is going to be the same ISP as well. And look at that is reported zero times. So, let's paste that in there for vendors and same ISP
as above. Now, let's try and decode what exactly this command is doing. So it's opening up PowerShell or instructing PowerShell to run along with these command line arguments. So we have a dash command plus car 34. We have this
random variable and another plus car 34.
Now what exactly is this car 34? Well,
why don't we search it up? What is car 34? That is a quotation mark. Okay, so
it is surrounding this particular variable in a quotation mark. And if you're questioning, Stephen, what exactly is this variable? Well, if we take a look at the above command, take a look here. That is the variable. And we can see that it is instructed to run invoke web request pointing to the URI of this particular domain that we just perforent on. It's doing the window style hidden. So, it's essentially hiding the window from userland and pretty much starting it. Now, our next question should be what exactly was downloaded from this IP address. Well, let's go back over to our Wireshark and let's go back over to our HTTP filter.
And do we see any outbound connections? Yes, we do. Right here towards the destination IP is what I was going to say, but yes, we do see it right here. So, if we rightclick, go into follow HTTP stream. Whoa. What is this? Hey, look at that. We have the solid path core. That was the other domain of interest. So, let's put that into our notes here. And let's perform some additional OSENT. We'll go into virus total. Search that up. 7 out of 92. This was created 17 days ago. This was the same as our Nexa flow lab. Hm.
VT7 vendors recently created 17 days ago. Go into community. There's likely nothing because we don't see anything right beside it. Relations. We have the IP address here. Details. M. Yeah, that's about it. Okay. Very cool. What if I were to copy this and what if we search it up in URL scan 14
hours ago? There's 11 days and 13 days, but I don't think this shows anything. Yeah, we just get an okay. And yeah, looking at the domains, domain tree, IP detail. Yeah, this is likely a domain that's used to just check in. Or at least that's my assumption here. Okay, let's go back over to our HTTP stream cuz this is very interesting. We have a create installation folder. It's downloading a file and it's outputting it and renaming the file to whatever this variable is. And if we look above,
this is where they assign that variable. And this is the name or the do.zip file of interest. So now we can use this and search across our environment. But do keep in mind that the 583 ending in FDA
is likely a unique identifier. So, what you'll likely want to do instead is search up the MW- dash across your environment to see if there's any kind of hits. I am very curious.
Let's copy that. And if we go into browser link and let's replace our domain up top with our solid path core.
And then we'll click into proceed. 44
not found. Oh, that's too bad. That would have been pretty cool to identify what was downloaded, but that's okay. What else? What do we have? Yeah, they're extracting the components and then they clean up the zip file and execute main component from the extracted folder. Oh, look at that. We actually have a executable name called cfile-applet.exe. Now we can take this executable and then search it across our environment to see if any host have this particular file. If they do, then we note down those host and that becomes our next pivot point. But yeah, that's really cool. And if we were to go back into file, export objects, HTTP. Yeah, there's not much here, unfortunately. So, we can't download any kind of executables that they downloaded because, well, that site is no longer up and running. Now, let's go ahead and remove our TCP stream and let's go back into the pcap. Now, if we scroll all the way down, yeah, it's pretty much just fully encrypted traffic here, but take a look. It's going towards the destination of 89.110.110.119.
And out of curiosity, I do want to take a look at what our internal IP address communicated with after downloading that executable. And that occurred around 20454. Okay, so right here 20454, we have a get request. And then shortly after we have another get request right here. And this is where the PowerShell went out to download that particular file and then execute it. And we can see the standard query is solid path core which is what we saw in the HTTP stream. And then afterwards they went out to the 104.36 address and yeah just kept communicating back and forth. Very cool. So I believe that's pretty much it when it comes to this particular analysis. But there is one last thing that I wanted to do and that was the IP address right here. The 89.110.100.119 that we took a look at which is located all the way at the bottom. Let's just do a little quick oent on this IP address to see if well is there anything interesting about it because we do see quite a bit of back and forth here.
We'll head over to virus total and then type in 89 1110 1110.119.
And look at that. We have six vendors flagging this as malicious. We have two community notes. H but they don't say anything. Relations. We got three files communicating with it. Go into details. Oh, it is under a threat view feed aka a
feed. Okay. Hey, what about abuse IPDB?
Amsterdam, Netherlands. It's reported one time and yeah, brute force with the Intel feeds IP. So, yeah, that's quite interesting. It could be related, but honestly, we can't really tell with the encrypted traffic. To be completely certain, we'll need to perform some malware analysis if we had that particular executable, but unfortunately, we do not. Or at least we couldn't get it from this pcap. Thankfully though, Brad Duncan over at Malware Traffic Analysis did actually save the file and it's located right here. If you want to see a video of me going through it, let me know in the comment section down below. And that's pretty much it. If you have followed along, I do hope that you learned something new that you can take away and apply to your own methodology. As a reminder, I have a free community for aspiring sock analysts called the mighty for sock community and I hope to see you inside one day. That is it for the video and I hope that you found that informative. If you did, let me know by hitting that like button and subscribe if you want to. Remember to stay curious and do things differently.





