Add Post_IR_Investigation_-_MoveIT_Exploit_-_HTB_Sherlocks_-_I_Like_To.jsonl
Browse files
Post_IR_Investigation_-_MoveIT_Exploit_-_HTB_Sherlocks_-_I_Like_To.jsonl
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"text": "what is going on YouTube this is IPC and we're going to be going on the defensive today because hack the box now released Sherlocks and I like to is the first one to retire Sherlocks are investigative challenges geared towards blue teaming and deer which is I think digital forensics and uh inant response um and instead of just poning boxes we're going to be given boxes that have been pwned you have to do a bunch of analysis against it we're not actually given the Box itself we're just given a lot of Forensic Files and of course a scenario so let's go into this the scenario here is move it so hence the name I like to move it move it right so um there's been a box move it has been compromised and they've gathered some files and when they did a memory dump of the server they forgot to include the vmss file and", "start": 0.359, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 2 |
+
{"text": "that's going to prevent us from like opening the memory dump in volatility and using all those plug which would be amazing right because volatil would be able to give us like screenshots of what programs are running there's so many cool things we can get from volatility unfortunately we don't have it um we could click here to download it I've already downloaded this and then they gave a bunch of questions so like name the aspx webshell uploaded by the attacker attacker's IP address user agent um when the webshell was uploaded what was the file size of it what tool did the attacker use to initially enumerate the vulnerable server and it does give kind of hints we see it's three characters ends in P enumeration tool is probably going to be end map there we could type it in and just take a guess and we got that one correct that's what it looks like so um", "start": 53.879, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 3 |
+
{"text": "we suspect the attacker may have changed the password for or service account please confirm the time this occurred um which protocol did the attacker use to remote in another time user agent used to access the webshell what is the instance ID of the attacker what command was run by the attacker to retrieve the webshell uh what was the string within the title header of the webshell deployed by the thread actor and what did the threat actor change the move it service account password to so those are all the questions um I do have the Sherlock already downloaded I just have it in see Co and Sherlocks we see the vmm file if we go into triage we have files here I'm also on a Windows VM because there are some tools that just work better on Windows and if you wanted to follow along I just installed Windows", "start": 105.96, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 4 |
+
{"text": "and deployed this flare VM but um to get things started I don't know exactly how I'm going to structure it or well structure these videos because it's very different than what I'm used to but uh we'll go along I put all the questions as individual files here and the reason why I did it is so we can link when we get um data and our results or notes we can link it here and we'll be able to create a really cool mind map at the end it's empty now because we don't have any links if we unchecked orphans you'd see everything here but um I haven't actually used obsidian to do this I haven't played fully through this challenge taking notes and stuff so I don't know what it's going to look like at the end I'm really excited to see it um that where I'm going to start is what we have because all we're provided is a bunch of", "start": 161.64, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 5 |
+
{"text": "files we have to identify what type of files we have and to do that I really really hate just clicking around in goys and I'm really familiar with like the Linux command line so I'm going to load up Ubuntu on the WSL I think that's windows subsystem for Linux so I just have all my familiar tools here even though I'm on windows so I'm just going to go into the Sherlocks directory and let's make my cam a bit smaller so now we can play so we have this vmm file if I run strings against it um it's just going to dump everything in the memory again we don't have vmss so we can't use volatility to do a lot of cool things like um look at individual processes and things like that so um we'll see when we want to get to that vmm file we do have a triage directory and looking at it the thing that sticks out is like request.", "start": 210.28, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 6 |
+
{"text": "Json is this going to be like a proxy web server and we have all the HTTP request if we look at it uh does not look like it I mean we have a lot of weird things and things that I don't think are installed on the server itself right so this is probably going to be some config of some tool that was ran to download things right these are probably all the um supported programs it will extract uh forensic evidence to I really don't know um I'm just taking a guess here we went to to like log. Json we see it is selecting the Sans triage so this is probably from some like Sans Playbook of um extracting things if we went into the results we see everything is Cape files and if we did some search around Cape files this is going to be like I think um an acquisition framework around just grabbing things so I think all these files are created by cape cape also created this uploads directory I think", "start": 264.72, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 7 |
+
{"text": "and put a bunch of files here and it's just used like on a suspected compromised machine run Cape against it I think to uh triou it don't know um so I'm going to skip it and we're just going to go look at this upload directory right off the bat I have a move it dosq if I look at it it looks like it is a MySQL dump so under here we'll say uh MySQL dump of move it so we know we have that um let's see what else do we have we look in Auto oh we have like directories we have a lot of stuff um so what I'm going to do is a find- type uh F so we list every file and we can do A- LS and call this files. out let's see if this works for us and then if we do l-s on files. out now we can see everything I did the- LS because I also like seeing timestamps and file sizes right and we can see it ends with things so what I'm going to do is grip everything that ends in log on files.", "start": 327.96, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 8 |
+
{"text": "out and then let's see what we have so we have move it transfer logs so let's create a new thing logs move it and then what else do we have this inet Pub log is probably going to be I access logs I'm guessing um let's look at it real quick I can't do shift insert yeah that is I logs okay system 32 so we do have system 32 access let's see do we actually have config grap log config we do and look at the Sam file that does have data so I'm going to break a rule because whenever I get this I always get excited and have to run secret dump against it to get credentials right um so we can do Secrets dump. piy this is part of impacket so you can install impacket if you don't have this and then we specify um I want to say the Sam file the security file and then local is that enough uh system we probably didn't need the Sam and these are all registry", "start": 396.639, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 9 |
+
{"text": "hives um and we can get if we scroll up oh my history is not there wow pipe it over to less there we go we have a few credentials so let's create a new file um I think contr n yep 10 doing credentials and then I'm just going to paste all this here uh wonder if I do bash if it makes it pretty no um and I have to move it over here there we go the reason why I skip from0 to 10 is just if I want to put things in between it makes it easy I don't have to rename everything right that's just generally how I do ordering so we have a bunch of hashes um let's see a a that's blank so I'm looking at the LM hashes right now these are all blank so we can't easily crack that 31 D6 is a um blank ntlm hat so these accounts are disabled um most likely I guess or let's see blank passwords hope disabled there we go", "start": 481.12, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 10 |
+
{"text": "see the move it service account one was what did the attacko change so I changed his password to so we could probably go to like hashcat and try to crack this password um I don't know that and then 217e this is going to be password one with like an at and um stuff this I've seen this password hash so many times I've recognize what password one is an ntlm for defer I bet if we search this watch uh Google I said Google not Bing name that hash yeah this is definitely used everywhere let's do crack station just search this one hash that is password one or password exclamation point so let's see under what we have I'm going to put um registry hives dump creds okay oh we also have the vmm file no vmss okay so let's see I forget what blue screen of death dump files are it's probably just DMP I would", "start": 555.839, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 11 |
+
{"text": "think none of those maybe we should do a-i to make it insensitive um maybe do dump so I don't think we have any of those if we did then that's also things we could um do analysis with because it's more memory dumps and volatility would work with it so what else do we want to look at um I'm going to look at evtx and I do that because those are going to be Windows event logs so we have all of those so we have is logs and windows event logs um let's look for like history files see desktop.", "start": 640.04, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 12 |
+
{"text": "any let's see oh uh console history so this is Powershell logs poot logs okay that's good and all this I've never I've always been out of that auto directory we haven't really gone in NTFS so I'm manually going to look at that and we have mft so this is going to be the master file table for the NTFS dis which is just going to be like all the files on the host and some metadata around them uh mft you could use a tool like MF Explorer but beware if you do this is probably going to take over an hour to analyze the mft file it is definitely slow um so unfortunately I have it closed so I'm not going to bother I want to do this video without cuts so a quicker way that I like doing um I need to make that administrator so I'm going to do shift uh control shift enter so we can run as administrator and I'm going to run a tool called mft CMD I think I have it on my desktop uh", "start": 681.68, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 13 |
+
{"text": "mft C uh CMD if we search this it'll probably come right up on GitHub Eric Zimmerman it's this tool so this will let us parse the mft and put it into files if you do it in a CSV format um there's a timeline program that's really good do they talk about it here I forget what it's called I think it's like timeline Explorer I generally use um Json because I like just doing things through JQ GP and things like that so um let's analyze this mft so let's do mft cmd.exe DF the file it's going to be C colon Sherlocks triage ntf F right um or uploads yeah triage uploads NTFS and then what's the directory uh let's go back here dollar mft can I just do this is that going to work we'll see um GNA do Dash so I see all the options I definitely wanted D- Json and I'll do CSV as well so we'll do Json C colon", "start": 754.8, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 14 |
+
{"text": "Sherlocks um let's go Mount C Sherlocks maker um analysis Mak mft there we go we'll do c V to that same location Sherlocks analysis mft so this will take still a little time to run that's why I want to do it ahead of time so when we get to it we have the data it's kind of like end map right or any type of Recon tool you want something running in the background when it comes to any type of forensics you want like all the long running tasks or a processing task to start at the beginning so as you start familiarizing yourself you know um what's there right so let's see let's just start with um thinking what questions we want to answer so aspx show name that's probably going to be IIs logs right um and definitely attacker IP and things like that so let's let's start looking at the IIs logs um so I'm going to go back into", "start": 845.48, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 15 |
+
{"text": "analysis or no uh triage uploads grip Pub on files. out and let's go into this directory okay so if we C this file we have a lot of data and one of the things um that's interesting is we have two IP addresses we have this 1010 025 and 10255 2543 if we went over to Google um let's see see is log format there is I think this one that has information that's decent um trying to find the exact post I liked L log analyzer post is really good because it'll give appear as and this string all these strings are actually in our event log so if we do a less again it we see the field so we got date time sip if we look at sip that is the server IP address um there is CIP which is the client IP address so all that is good information um we could go right off the bat and look for that webshell but that's generally not how I operate I want to do just a lot of just analysis", "start": 923.44, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 16 |
+
{"text": "on this right so so the first thing I want to do is um filter out all the comments so any line that begins with a um comment I don't want to see it so I'm going to do a g-v and then escape the comment on it and now we don't have those so now let's see um let's get all the server IPs so I'm going to do a a and then we're going to print um three and now we have all the IP addresses that's server IP we'll do a sort uni- C we see there are three IPS so I'm going to grab this and then let's go over to our obsidian I'm going to call this 20 is logs and then we can paste this okay we get out of here um I don't like that had like a whole line break oh well I think it's just because my font is so big so let's give it a header and this will be um IPS that or server IPs okay so the next thing we want to do is probably client", "start": 1017.0, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 17 |
+
{"text": "IPS so let's do the same thing except we want to count to the second IP address so 1 2 3 four five 6 7 8 nine Al print n there we go and let's see I'm just going to get rid of all that that there we go that looks better okay so I'm going to guess the attacker is either two or three um but again I don't want to jump the gun too much I want to continue my analysis um one thing I did not do is say when the start time and end time this log is so I'm just going to say um log range and then let's tail this file and grab this okay so let's see we got the server IP the client IP um I guess user agents would be good so 1 2 3 4 5 6 7 I missed it uh this was nine and this is 10 then so 10 we have user agents paste this okay and looking at this um one of those user agents really sticks out well a few of them Ruby nmap Linux I'm going", "start": 1112.6, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 18 |
+
{"text": "to guess the attacker IP is whoever used nmap right so let's grip end map on this and we see it is 1055 2543 so I'm going to go over to this paste that and then I'm going to link the file so we'll just do a double bracket 20 IIs logs and then I'm going to do a um carrot and we will say um user agents right we could also say uh and map plus Ruby here so now we have a decent log and if we went to the Mind map now we would see the attack of Ip question is linked to the I log um maybe that's bigger for you right um so that's kind of what I'm going at with how I'm organizing it with the questions okay okay ASX shell name it specifies ASX so let's grip every file that ends in aspx uh maybe it's - I oh the lines don't end in ASX that's right uh let's see that would be one two 3 4 five so print five and then I'm just going to grab", "start": 1231.919, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 19 |
+
{"text": "ASX could do another sort we probably should have done another sort afterwards so in our notes everything was ordered um oh well so one of these is a webshell my first guess is going to be machine 2.", "start": 1323.36, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 20 |
+
{"text": "aspx but what we could do is also join the IP address uh that was I think 9 it was so now we have the IP and the file and we see Machine 2 was only accessed by Local Host so let's just GP on 2543 since that's the attacker's IP and they've only accessed three files um move. ASX human. ASX and guest access if we um looked at the exploit beforehand um let's do move it exploit analysis and looked at things um mandant has a post aame has a post there are quite a few posts about it um it would say like the attack chain and everything so um I don't want to just spend all the video reading this I would look at the logs um and familiarize yourself with the attack or the heck the Box machine right but the move. ASX is going to be um what it is or the webshell because if you look at other things these files are referenced as", "start": 1339.84, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 21 |
+
{"text": "move it files so let's save this and say um do that and then files access accessed by the attacker go here move.", "start": 1421.36, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 22 |
+
{"text": "aspx and then again link it to the I logs and it does put links here you're free to delete them on these Pages if you don't care about knowing uh the page linked the link will stay active in the question and links here so you don't need whatever it creates here so we got the first two we want the attacker user agent um I think it's the user agent that accessed the web shelf I remember correctly so let's just grap um move.", "start": 1444.52, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 23 |
+
{"text": "aspx on this log and we're going to have this Tacker user agent and again copy paste it in here uas that accessed move.", "start": 1479.399, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 24 |
+
{"text": "aspx okay so now we're starting to make progress um date attacker access something datea of aspx webshell these I'm probably going to um get the mft at least the data of the aspx webshell let's go back to the actual question on four CU I did not take good notes on what that actually means when was the ASX uploaded um what is five then file size so this is file size and I know um there's no six here I think six probably got deleted because it just goes five to seven um so let's see I think we have a lot of stuff out of this actually um let's see there was one more attacker user agent was that used to perform the initial attack oh so this is wrong um the initial attack would be probably um Ruby if we look at is logs you look at user agents we see Ruby is one um whenever you see Ruby as a user agent chances are it is Metasploit so we", "start": 1507.08, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 25 |
+
{"text": "can see everything that Ruby is accessing it's going to this dll then guest access whatnot so that is going to be Ruby user agent Ruby okay and since we know it is Ruby I would also um go to Magis blit framework GitHub and look at the move it exploit let's see where is the file did they do like move underscore it no wonder if we search the cve then hold request let's see mety move it RB GitHub is this exactly where I was it is there we go so this is going to be the move it module it's going to save this um let's just go up a few directories so that's one two 3 four five six okay that's a good place for t-mo analysis pe- o move it metlo module because I'm going to want to analyze that in a little bit we could look at it now I guess to see what it does so let's see not post so the first request it's going to", "start": 1604.72, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 26 |
+
{"text": "make against moveit api.dll I think here we're deleting things we are um doing an SQL injection to create a user and we also have inst ID so um metas sploit send sets the instant ID so let's look at inst ID let's just grab it see update move it what if I do A- I there we go the instance ID is probably going to be 1 two 3 4 um so we can say 30 met exploit module that's Ruby call this default um there's also like a normalize something normalize out of this there we go so this is going to be all the URLs it access so it's going to go in API V1 folders U Move It api.dll API folders guest access um token whatnot so I bet if we looked at the logs we'd see it um hitting all of these files right so let's go back to auto um find. grap inet Pub go into this directory and then grip uh was it 24.3 was the attacker IP", "start": 1758.44, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 27 |
+
{"text": "I think it was so it probably accesses the dll first right or something let's just search for that dll so there it's accessing the dll with Ruby then it goes to guest access then it does V1 token folders upload and we see all of those here right they're not in that exact order but all the URLs are there so we know what it accesses I can just put it here and say um URLs and module because that may be handy later right uh the instance ID um I'm going to put a question mark one two 3 4 because this is just the default one we don't know that metas would probably let us change that so um that's why I do the question mark just so I have it there right okay I guess when we answer these questions I should rename this probably um rename we'll just put a zz so it goes to the bottom we've done that one user", "start": 1905.08, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 28 |
+
{"text": "agent date accessed uh user agent to access the webshell so we already had that one met exploit modules is logs FES accessed user agent there we go one there we go this is it and we can link it this is 20 is logs don't know what the title is files access uas there we go do ZZ so we need the password instance ID we think we have when the attacker remotely accessed let's go task 10 we don't know when they access the machine that's probably going to be a Windows Event log question right um this is Windows Event log of a lot of these are going to be Windows Event log tool enumerate web server that was end map right we saw end map in that so we can do end map and that's in is logs under um user agents so we've answered that 04 when was the uploaded we may be able to get from the logs right let's say GP upload on", "start": 1990.44, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 29 |
+
{"text": "this I don't see it has file IDs so this is going to be something we get out of the database or um the mft log file right because we have that we can just put it here okay so let's look at event logs I guess that's going to be the next logical thing we do so where is that grap evtx Falls that out we are going into this directory Ls I'm going to say export EV T dur is equal to PWD so now um anytime I want to reference it I can just do the variable instead of this super long path right CD dashes go into my previous directory so I'm going to use a tool called chainsaw so if we do chainsaw GitHub um this is generally how I parse uh logs now it is really really nice so let's go into the analysis directory um is it up one more is awesome so I have chainsaw in my path and we could do um if we look at it", "start": 2122.32, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 30 |
+
{"text": "let's say we could probably just do DH it has hunt with Sigma rules we can search we can just dump it um hunting is pretty cool I can show you real quick so we could do chainsaw hunt um then I want to say we need A- s in the sigma directory uh so I have that opt Sigma the instructions for installing chainsaw talk about um where these directories are right Sigma is another repository so you just do a get clone and clone that repository um the rules that's going to be opt chainsaw rules and then there is a-m for mapping that's going to map the sigma to groups I think and that's up chainsaw um mappings I probably should put these on multiple lines because I think my webcam is covering things right or you can just do that to bring it up to the top um Sigma event logs all okay so we did a hunt we did the", "start": 2238.76, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 31 |
+
{"text": "rules we did the mappings we can specify the out file and oh we need to specify the actual file I think it's- F EVT what did I call that EVT dur um Echo EVT dur I did call that so it's no dasf we just specify EVT dur and it's going to load every event log in this directory which it's probably going to be a bit much and actually crashes because it couldn't parse this one log so let's specify what log we want uh we can do LS EVT dur GP for security because I definitely want to look at that log so we can do EVT d security. evtx and then dash out we'll call this security um chainsaw I guess and it's not going to take too long to hunt I don't think it will there we go it's done can exit that pane it is outputting to the file now come on I guess while this goes I'll start the other thing thing I want to do because I want to just get this log in a", "start": 2304.599, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 32 |
+
{"text": "Json format um I'm going to guess I could type it now I did not expect that to take so long so let's see we did chainsaw and then we want to do a dump and then the log file so I'm just going to copy this because my aable is not in this pan and we can say D- Json and we'll call this security.", "start": 2399.319, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 33 |
+
{"text": "Json maybe we have to put-- Json before this uh unexpected argument TR saw dump path wonder if it defaults oh yeah I wonder if it defaults to Json maybe- o security.", "start": 2439.16, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 34 |
+
{"text": "Json so it's also dumping that um maybe I'm going to pause the video and we'll resume when these dumps are finished something definitely odd happened there dump Dash oh we just specified D- Json okay there we go so yeah I'm going to pause the video let this chaina finish and then we'll go over the results so this has been going on probably about 10 minutes and it's still not done we did a tail-f on security. Json um we can see it is definitely still writing to this log so maybe I'm going to move all like my parsing event log stuff to the beginning so it just parses like the mft does and then we'll have it when we want it right so I'm just going to put the event log stuff stuff on the back burner and let's look at the mft um while that processes so if you remember we generated this file with the um MF dump", "start": 2475.44, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 35 |
+
{"text": "or mft cmd.exe and we have a CSV file and there's like a timeline viewer program that really likes this CSV format um let's see l-s CSV I don't like the CSV format I find it hard for me to um do a lot of searches right and if we used a guey yeah that would be great but the Json format is really great as well so if I do this Json the main thing I'm looking for let's just do a l-s is that every Json entry is on one line so what that allows us to do is just GP for a file name in this mft and it's the master file table so everything in NTFS is going to exist here so I'm going to grap for uh what did we need to get um it was the file size of something right date access file size of is it the aspx webshell or the ASP webshell when was the aspx upload an asp so we need the timestamp of aspx date", "start": 2555.0, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 36 |
+
{"text": "accessed uh uploaded aspx and file size of ASP I made mistakes when I was doing that right that's correct for when was okay so we want to look for I think that was move. aspx so I'm just going to gra for move.", "start": 2632.64, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 37 |
+
{"text": "aspx on the Json file and there are two hits so let's pipe this over to JQ and I should have done a less and this is going to show us the two files or the two hits right this one's probably a file create let's see file name I don't know what the do compile name is uh maybe this is uploading to the tempter and then it moves it over let's see when was this created uh 11443 1124 I don't know exactly what goes in there maybe it goes there when it gets executed I can't make sense of that right now but it was uploaded to dubdub dub rout uh let's see it was created at this time so let's go here uh crn 40 mft analysis let's put this up there and let's see we can grab we'll just grab the first one and we don't need to pipe it to less there we go and that fits very nicely just on my screen uh move uh this is let's do bash like that or maybe does it have Json it does so", "start": 2660.4, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 38 |
+
{"text": "this will be move.", "start": 2766.76, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 39 |
+
{"text": "aspx and let's grab this full Tim stamp go here and This is 40 carrot move aspx there we go so we have a link straight to that forensic artifact we can say that's now done file size of the ASP webshell if we look at the aspx it does have file size oh shoot I did tail das1 head-1 and it's slightly bigger um do we have xclip see I wonder if xclip is going to work in this let's install xclip real quick come on there we go xclip selection clipboard then let's go to mft analysis and paste sweet it did work that's the new move.", "start": 2772.48, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 40 |
+
{"text": "aspx and we did head-1 and we probably have to update the time stamp right created and modified the same time that is good there we go okay ASP webshell so if we look there was a file size this is400 um that other one had a very small file size I forget what that was but that's what tipped me off I did the wrong thing it was only 294 I'm like what aspx shell is that small um so let's just do move. ASP now look at it we got two hits as well um the second one we see the file name down here it's a compiled thing so I'm guessing that's just like when someone hits it um it's move it.", "start": 2855.839, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 41 |
+
{"text": "ASP let's see does have two this isn't going in that I'm guessing ASX like when you access the ASX file it compiles in and puts in that directory and then runs it or something that's what the behavior looks like to me okay so now we have this one we have file size 1362 on both entries see we think one may be a delete so inuse one false size reference Tim stamp copied I don't know what's different between the two copied false copied true so I don't know what the difference between the two is but the size is 1362 and let's just um grab the first entry head das1 that's good that's clip selection clipboard okay and then we can say move it.", "start": 2930.24, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 42 |
+
{"text": "ASP Json I'm guessing I clicked somewhere it only highlighted one thing uh oh oh I have the head dash1 after JQ dot that's why I was only collecting that so let's move head das1 there okay F size 1362 link it there we go and we've completed that question so we need the password change protocol used to attack remotely so this is the event log data let's see if it's done yet it is not done um so let's see this is event log question this is event log question event log um I think this will be potentially the mySQL database um how the webshell was downloaded strings within the header and password changed see what do we have oh we've now looked at Powershell logs so while we're waiting again um a lot of this is just the art of being able to multitask right so where is console history console out of files fix the typo", "start": 3013.64, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 43 |
+
{"text": "and we can grab this one so we're looking at the administrator and they've only ran NT stat so that's not interesting and I would probably take notes of that in my um obsidian notebook but if I took notes of all like the things that aren't super interesting but that I've looked at um this video would go many more hours right so here we have interesting things so the move it read line so 50 power shell put this here um console history move it and this is Powershell there we go uh they do a WG and we also have the attackers IP here so if we had GT all of our forensic evidence for 10 255 2543 um this would have also stood out eventually right so we have the WG command let's see how was the webshell downloaded with this and this is um 50 Powershell console history move it there we go so that's done see password we did not see any", "start": 3116.799, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 44 |
+
{"text": "password changes here string within the header we can say Powershell and um let's see interesting directories so if we were cleaning it we'd want to um make sure these directories are off right um let's just do artifact directories or something it's not a good name for it uh we need to double backslash and the other one was that was inet Pub move it transfer Okay so we've got that one done so we want to uh get the instance ID and that's probably going to be through the MySQL dump because when we're analyzing that um mplate script um the SQL injection put the instance ID of something there so let us go to the MySQL file let's see that was under analysis no uh triage uploads then move it SQL I probably should move the files to my analysis directory so if we look at this so my SQL dump the easiest way is to spin up your own um my SQL instance", "start": 3213.839, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 45 |
+
{"text": "so I think I have Maria DB installed I think I just did a let's see install history grap install um I ran this command pseudo install Maria DB server to stand that up right let's do pseudo system CTL start my SQL Server is that it my SQL there we go pseudo my SQL show databases create database move it use move it let's see google.com import my SQL dump my SQL U okay pseudo my SQL move it and then the dump file there we go so now if I do pseudo my SQL use move it show tables we have everything here um I think it was under log that we want so if we did select star from log shoot so if you didn't know if you do the semicolon it's going to Output like to the screen and when you select a lot of data it looks bad if you do uh back SLG it's going to Output in like this format which is good so we probably want", "start": 3313.88, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 46 |
+
{"text": "um let's see I want the time see I definitely want time uh let's that's log time then inst ID username IP address uh file name folder path that may be good so let's select those so if I grab this paste awesome so we can see um I guess three instance ID 0 36 36 and 1 2 3 4 um they're all from RP address I'm guessing it is 1 2 3 4 it could be 3636 but this is actually authenticating um with these credentials I think see is there an action I wonder if I should have grabbed action I think action was also one yeah so those a sign on this is message post I wish it said like file upload that is session ID Z but okay so let's say into outfile um Mount C Sherlocks analysis MySQL do dump where I would do interesting logs of my SQL DB there we go so I just put a single c semicolon there and I think it saved it", "start": 3429.68, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 47 |
+
{"text": "there analysis it did that is a weird file name um let's see how do I reference that one I honestly do not know did I delete it it did awesome so let's grap 1 two 3 four from this and we can just copy and paste this so this will be 60 my SQL DB okay instance ID 1 2 3 4 and we can also link 60 we did not title it um logs table there we go so now that one's linked to two different things Z okay what password he change it to um we could also link this to credentials because we do have the ntlm hash here we just don't know what it goes to right see string header is there a vent log Done Yet exit that it is still dumping I swear it didn't take this long when I was testing things out what did I screw change CD so we did chainsaw dump the event log yeah I guess it just takes a long time how big is it 18 Megs how big is the event", "start": 3576.88, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 48 |
+
{"text": "log 21 Megs so hopefully it's close to being done um I'm assuming the event log format is compressed and this Json isn't so it would be SEL bigger um but I guess we could look at the um other output while we wait so this is the one when I did the hunt and sigma I probably have it in my history right hunt so it's going to be the output of this so we did hunt specified the sigma specified the rules specified the mappings so what that creates is this fancy thing uh- s has be before the file name there we go and it has groups of just activities and shows activities around that right so we can see move it service was created June 13th I think the attacker was in July so this is just them installing the move it service we can see them adding the user to the group probably added it to administrators", "start": 3735.52, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 49 |
+
{"text": "there um got another what uh 613 1553 so it creates the user twice that's weird I wonder if they deleted the user somewhere and then reinstalled it it's odd we don't see a password change so we don't know that then we have this lateral movement thing um Network log logons and let's see I forget exactly what log types are I think 10 is interactive three let's see let's just Google this uh Windows Event log log on type that sucks what is three 10 and whatnot hoping okay here we go so three is a network login uh 10 is remote interactive so these are all Network logins the IP address is 101046 then we have 10 10 14 13 I bet this is like PS exec or something so those are all in June or attacker wasn't on the Box in June I think it was um let's see date upload of the ASX this is July right so all these are", "start": 3801.64, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 50 |
+
{"text": "benign probably unless there's two attackers but we do have an RDP login so one of those questions protocol used RDP and let's see is logs I'm going to do a 25 po shell logs because I want my logs to be next to each other so again that's why I do that incrementing thing because when I like H I wanted to put something there that becomes so much easier so see do I have flame shot I should have it let's just do that run screenshot this and we'll name this um security. chainsaw RP login that should be fine I did a paste image there because like copy and paste doesn't work well with this I don't think like if I yeah so that's why I defaulted to a screenshot there okay what was it protocol this is 25 there we go password change that's going to be a vent log 4724 4724 on this what event code 4724 account attempt yeah password", "start": 3918.52, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 51 |
+
{"text": "reset okay I guess it's just not in this log it'll probably be in this giant Json dump whenever it finishes Json 22 Megs now now see and it's not just on one line if it was on one line I would um just copy this log file off and I could start analyzing with JQ but it ends with invalid Json so um that would make JQ very unhappy is that the only thing I have um what password the attacker change the move it service to I guess now we could in um the memory dump so if we do strings I like to move it and let's GP for move it SVC and see is there anything actually I'm going to put a space before and after because they're probably changing the password with like net user right so if if I add that space hopefully that will be enough to just find it and if it doesn't find it then I'm going to change the encoding um strings has a few encoding options um I", "start": 4059.64, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 52 |
+
{"text": "think it's e l and B let's see where's Dash e uh sbl I forget exactly what they are it's just like the endianess of things so we do strings D E B I'm going uploads strings D EB does this get anything it's not really getting stuff but it's not just text like we saw before I bet my hard drive because I'm recording the video maybe there's a lot of iio to my hard drive and that's why this is going slow that I guess is my best guess right now because it shouldn't take this long to um do strings so right now we're just looking at move it service and if this was a domain and we had the ntds.dit um when we did secret stump a long time ago we could have done the um I think there's a option for it um secrets dump. DH a password last set and a history um now told us that as well but that queries like ldap data or something and", "start": 4146.64, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 53 |
+
{"text": "we don't have that because um it's not private domain so I'm just going to wait for these two commands to finish so going to pause the video and hopefully that speeds this up okay that chainsaw is finally finished so we have the security logs so before we get to looking at that I'm just going to grab the strings of this VM and we're just going to put in analysis and do strings.", "start": 4265.159, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 54 |
+
{"text": "VM so that will probably speed up some time later on so let's go take a look at these uh the security. Json file it is 36 Megs so it's almost double the size when we convert it over to Json but now this is going to be a lot easier easier for us to just search through the downside is um it's in multi-line format so we can't just like GP an entry then pipe it to JQ um if we do GPS we have to um dig down in this so uh let's see it's probably be easier if I go to a new pane to show this so we want to go back into analysis and split the screen okay so if we look at this we're going to want to go into event data Event Event data and then we wanted um 4724 was the event ID we wanted for um password change so we want to grab those events so let's go JQ and then we have to do the open closed bracket", "start": 4293.76, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 55 |
+
{"text": "because we're in a list or whatever they call that and then we can pipe it over to a select statement and we just do event. system.", "start": 4377.48, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 56 |
+
{"text": "event D is equal to 4724 I think I just end that JQ let's see oh we got to give it the file name uh let's see that did not like it there we go and nothing oh we have a typer we have 3724 so 4724 it's going to search this Json file and print everything out now the issue is we have a lot of data here we only want to get um certain amount like certain Fields the fields I'm going to grab are going to be um Target username the subject username and let's get a time stamp this time stamp so we want three Fields out of this um the subject username is going to be who is changing the account the target is um who it is going to be against so what we do is just another pipe and then we can do a bracket and then what we do in the bracket is call the field what we want so the first one I'm going to do is time and then we do a", "start": 4388.88, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 57 |
+
{"text": "colon and then drill down to what it is so it was a event I want to say event it's not event data it's in system so event do system do what is it time created attributes and then uh system time so I'll put that at the top so you can see everything we'll close that bracket off and now when I run this it should only tell me the time so now let's get the other fields we wanted uh so Event Event data uh subject username and Target username so we can grab those so let's do um I guess we'll call it subject and Target would be the most logical so Event Event data subject username and then we wanted the target which is going to be the same thing but Target username so now when we run this we have nice data so let's see it is showing some things where the target is not what we want so like the target is defer we don't really care about that so let's", "start": 4471.48, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 58 |
+
{"text": "filter um on that and to filter we can go all the way up where we have this event code and then do an and and then we say um Event Event data do subject oh no we want Target Target username is equal to move it SVC it's gonna take a second to run and there we go we have the query it is not sorted by time um the way I generally do this will be I'll do a second JQ and what we will have to do is A- s which is I think they call slurp um because we want to make this into a list this is just a bunch of single items if we did A- s that is going to put those brackets around it and it creates this nice list so because it's in that list that will allow us now to do a sortore by and then just time I think that's it we just need a period before time uh sort by could not open um maybe we don't do the period there we go so now it's sorted by time", "start": 4579.04, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 59 |
+
{"text": "um this is every time the move it service password has changed and we can see um the attacker was on the box July 12th we know and that is when it changed it's also the only time move it changed its own password every other time it looks like administrator is changing it so let us copy this query we can go back to here let's see where is our event log power shell logs um we don't have one so we can create one and I'm going to call this 22 event logs security uh we can't use a colon and then let's pretty up this JQ command so we can do that select that that looks good there's no way to fit this because our screen is so big or a font subject Target good enough so now let's just get that data in we can just copy this and then paste it awesome so we have the time of the password change and then we link it to", "start": 4674.48, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 60 |
+
{"text": "22 and we don't have a title on our log uh 22 we will call this um move it PW changes there we go awesome that's done when the attack are remotely accessed that was in the RDP um we had that somewhere was that let's see where do we answer that it was in the screenshot um here it is what we have credentials I don't know where we pasted that let's see it's the protocol Powershell logs we linked it that's not right that should be that was the console history whoops we screwed up a lot of logs um so this is event logs call it security and Hunt update the link then let's just type this timestamp 07 12 11 11 18 okay so when was remotely accessed there we go awesome and we are almost done we have string and the password so this stuff we'll have to carve out of the memory dump so hopefully that strings command is", "start": 4788.679, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 61 |
+
{"text": "done it is so if we go into analysis DHS strings.", "start": 4910.04, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 62 |
+
{"text": "VM 251 Megs so let's GP move it SVC out of this we have a lot let's see um I see it right now we have it there but what I probably would have done is a sort dasu because we see this string just coming a lot right we did wc- L let's see 1600 lines sort D and 113 so doing that s-u really helps so I'm going to do a unique - c after that and then we can sort DN and this may help us a little bit so where was that net user here it is grab it um do we have a memory dump I don't see one 70 memory dump see send there that's fine net user command I should put my command here like that there we go I did those dots so I know I like truncated the output right so we have that this is what the password is then we can also link the memory dump go to the section okay and the final final question string within the title header of the webshell I'm going to go back to the questions", "start": 4917.199, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 63 |
+
{"text": "because is it the ASP or aspx webshell there are two web shells then the header of the webshell I guess we'll try the aspx first so let's grap um move.", "start": 5038.88, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 64 |
+
{"text": "aspx on strings VM and then we can do a-b 20 and- A2 and that grabbed before and after so whenever we see move it. text we'll grab 20 before and 20 after I'm going to search for title and I think we have it here right there so we will put this bash um what was that command that okay awesome and this will be um move ASX web shell and add Z's there and of course we link it right uh memory dump there we go okay and that should be all the questions there is one thing I want to do before we just wrap up this video there is one log I always like looking at that we just forgot about because it took so long to do the previous security logs I wasn't going for the questions I would always look at this log um I think it's triage uploads uh find. grap evtx g-i Defender Defender is another great log to look at we have it here uh let's just", "start": 5056.84, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 65 |
+
{"text": "go into this directory get out of the file okay LS we'll just copy it so we can say um export def log is equal to our path and then we will grab the operational log do we have to put quotes around it Echo def log awesome so let's go back to our analysis directory Mount C Sherlocks analysis and and then uh a chainsaw command so we can do chainsaw I guess we can do the hunt first so we'll do um hunt the sigma opt Sigma rules opt chainsaw rules and then the mapping opt chainsaw mapping Sigma event all and then the event log - o and we'll call this defender. chainsaw and this shouldn't take too long uh let's see log path is invalid shoot um Echo def log maybe we put this in double quotes there we go so now it is processing that and we'll get Defender logs you can also do a Json dump of this as well um", "start": 5187.0, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 66 |
+
{"text": "doesn't really get us much more information than what we'll have Let's see we just look at the analysis file while it's going Defender chainsaw we should do A- s and these that are empty eventually I guess it's at the very bottom we'll see Defender being triggered and we'll understand why they switched over to the aspx Shell because I think Defender removes the ASP shell so it detected that right so that is something we should always be looking at whenever we have these is also the defender logs so hopefully that finishes soon I really got to look at like putting my recording on a different um hard drive than my VM because that is slowing this down tremendously see we're not in July yet we're on November 10th I think it's July 2023 is when the attacker is in so that's June now it's getting close if we did a tail-f we'd see like the", "start": 5310.08, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 67 |
+
{"text": "output streaming to the console but I'm just going to pause the video we're going to wait for that to finish so it is now done so now if I do that um l-s on defender. chainsaw and we go to the bottom man maybe I want to do the Json dump because this gets ugly in this uh bracket but we can see the alerts um let's see will that work fast see we just get rid of that get rid of all of this dump D Json d o defender.", "start": 5397.0, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 68 |
+
{"text": "Json so generally I use this to do a first glance at the log because it's good at highlighting what I should be looking at and then I generally go over to the Json and look at there because it'll be a lot cleaner of output than this is right um see action id9 so this is remove suspicious Behavior uh completed successfully this is on is. exe let's just search for move. ASP uh let's see move it.", "start": 5450.84, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 69 |
+
{"text": "ASP and we see it here so this is Defender cleaning that up it says it's a back door it detected from the user move it SVC there's the engine um the path C colon inet Pub dubdub duub root move it. ASP the process name so this was Powershell I think this was the WG and the console history and that's the um thing I screwed up here we don't have console history here but um that is the log right and we're still waiting on the Json output let's see duhs defender. Json 832k um guess it'll be finished somewhat soon so yeah let's just click on the Mind map real quick and see what this looks like so this is just a graph of how we get to all the questions and the files and we'll see some of them are linked like this is log we can see all the questions this guy answers right so I think this is a pretty cool thing event", "start": 5493.159, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 70 |
+
{"text": "log security hunt we answered two questions there Powershell oh we do have the console history on 5050 yep that's where he put it so yeah that pretty much wraps up the video I just wish this one thing would finish so we can show you exactly how it looks um in the Json output so I guess I'll let that finish we'll pause the video resume when it's done look at that and wrap up okay the defender log is now Pur so if we did a JQ on the defender log pipe it over to less and we just go to move it let's see let's say move it dot oh we have it right here so we can see all the data we saw in the previous one it's just in a bit of a better format wonder if we did- s does it I wish it um kept the syntax highlighting let's see let's just do we just do V defender. Json there we go um move it. ASP so I think this is a bit easier to read", "start": 5567.08, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 71 |
+
{"text": "than the other format we can we could probably filter by action id9 but um and also Google to see exactly what action ID is it's just a bit easier to read and we can see um it's concrete so it's positive this is a virus we have the process name if we had cismon logs we could probably look at the process ID and Trigger like the parent process to see what spawn Powershell it would probably be IIs since we know what's going on but this is all the types of things I would be looking at so with that being said that's going to be the video hope you guys enjoyed the first video on Sherlocks let me know in the comments below if there's anything you didn't like or you'd want to see more how this whole thing is organized if I should keep obsidian and keep going down this path of course let me know so um take care guys and I'll see you all next", "start": 5640.639, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|
| 72 |
+
{"text": "time", "start": 5698.76, "duration": 0.0, "meta": {"video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"}}
|