Add Analyzing_Event_Logs_and_MFT_Dump_with_Chainsaw_-_HTB_Sherlocks_-_CrownJewel-1.jsonl
Browse files
Analyzing_Event_Logs_and_MFT_Dump_with_Chainsaw_-_HTB_Sherlocks_-_CrownJewel-1.jsonl
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"text": "what's going on YouTube this is IPC we doing another Sherlock from hack the box which are defensive challenges this time we're doing the first in the Crown Jewel series and if we look at the shock scenario it tells us the fella domain controller is under attack they believe the domain administrator account was compromised and the threat actor dumped the ntds do database on the domain controller which is very bad news the ntds.dit database is the heart of active directory it contains all the ntlm hashes of all the users and not only their current passwords but the previous passwords as well and they're all hashed with a very Port hashing algorithm called ntlm which is just md4 so it's unsalted no keylength extension very easy to crack but that's not the worst of it right the worst thing is the kbgt", "start": 0.359, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 2 |
+
{"text": "hash which is the signing key for keros is also contained in this database if the attacker gets it they're able to impersonate any user on the domain that they want through the golden ticket attack and that is been a thing since like 2014 and Microsoft's original recommendation it may still be the recommendation I haven't checked lately is if that key ever gets compromised to burn the domain down to the ground and rebuild because it's that bad because in order to invalidate the KT GT signing key you have to change the hash twice and you can't do it in quick succession because um it has to replicate throughout the domain so if the attacker queries that kbtg hash again when you change it once once then they get the updated copy and they're just like infinately persisting on the domain it's very hard to get them off but enough of that let's keep going on with the", "start": 47.92, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 3 |
+
{"text": "scenario they believe the attacker used vsss admin to download that database which is um volume Shadow copy I forget exactly what the S maybe is maybe it's like volume shatter service admin essentially this allows you to create backups on your hard drive and a lot of attackers will use vsss admin to create a backup of the C drive and then grab ntds.dit out of the backup because normally there's a protection put in place so you can't just read ntds.dit but if it's in a backup file then you can read it right so it looks like that is the attack before we go into the actual files I also like looking at the Sherlock info page to see if there's anything else it looks like we'll just learn um how to detect nts. Deb dumping through event logs and the mft which is Master file table so let's go ahead and look at the data we're given", "start": 97.64, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 4 |
+
{"text": "um on my box I've already unzipped the data we have it in the artifacts directory and they give us a bunch of event logs and then also give us the MF file table so we'll get into this mft thing a little bit later let's just start off with all these event logs and the first thing I like always doing is using chainsaw to parse these so what I'm going to do is go opt chainsaw then chainsaw cuz this is where I have it stored then we're going to do a hunt operation I'll grab all these event logs so star evtx and then we'll give it the sigma rule so up chainsaw Sigma and then the mapping is going to be op chainsaw oh not chisel chainsaw mappings and then I always do the logs let's see event logs all there we go oh there's also mft logs all I wonder if that's the mft file I don't know exactly what that mapping is but if we run this it's going to load the detection and give us the result I'm", "start": 154.319, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 5 |
+
{"text": "going to make my font a little bit smaller because this table is a pain to read on large font and we can see the detection is schedule task deletion which doesn't really tell us all that much and if we look at the event data um the first thing I notice is this ends in 500 for the Sid so I know this is going to be an administrator user rid 500 accounts or just the local admin right and then we got the task name create explor shell un unelevated tasks which if you're like experienced Defender I'm guessing you'll know this is probably going to be a false positive but I did not know this at the time so my next step was I searched the process ID to try to get more information about this so let's go back to our chainsaw command I can make this font bigger and and we're going to go back here we can delete all of this and then I'm going to", "start": 220.519, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 6 |
+
{"text": "do a search and then I'm just going to type that process pit uh which was what was it like where is it um maybe I have to make this font change it again real quick hold on 6264 so we'll search this and then we can look at all the results because it was only three this first result it's coming from the NTFS operational event log so I'm going to ignore this I'm guessing that number like the six whatever just existed within one of these numbers so it doesn't really matter to us it's just like a false hit the next one is Microsoft Windows security auditing so if we look at this let's see the event data we have the client process pit which looks like it's the same we see it's the administrator user they um have this task I don't know exactly what this is saying I guess we could um Google this event log so if we Google like event ID 4699 um actually let's just use chat GPT", "start": 276.6, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 7 |
+
{"text": "um what is the Windows security event ID of for 699 and see what it says um a schedule task was deleted is what 4699 is so it's just telling us this task was deleted okay and then this final one we have the task content which is just straight XML data and looking at it we see it just executed C windows explorer.exe and the argument was no UAC check so that was somewhat interesting um I went ahead and just Googled this create Explorer un unelevated task and then I saw a bunch of just normal things quering it so I deemed this was a false positive and this hunt operation didn't really give us that much data so before we get into the actual logs of everything um I want to go and look at like what data we do have so I'm going to do a dump command and so we're going to do chainsaw dump on all our event logs give it Json and then I'm", "start": 352.8, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 8 |
+
{"text": "going to dump it in I'm just going to call events. Json and then now we can go ahead and query this so um let's go CD do dot I'm going to cat events. Json we have all the events and the first object is a list and I always just um get rid of that right away um the reason why is if I do a JQ do- C if you have that list everything is going to go on one line I just highlighted multiple events I hate when that happens uh because it's going to mess up with like GPS later on so I'm going to do that list item to get rid of it so now when I just double click every event is just on one line which is going to make it play much better with grap so that's why I always hype on making sure the first query doesn't have a list item so now with that we want to just look at all the event IDs and each Windows Event log is going to be um they may have the", "start": 425.199, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 9 |
+
{"text": "same event ID with a different name so I want to make sure all my event logs um when I do my query to get like event ID to name I also make sure that's taking in account the event log name and that's going to be the channel so what I'm going to do is search for each Channel first so that's going to be event system channel so we can do event here and then I'm going to pipe and the reason why I'm doing this is because every event has a event ID which is going to be like the data in the event and then you have this system which is going to be information about the event um that's the only thing in this event object so if I just put that over here I don't have to type event 100 times so that's why I'm doing that because if I now do this that event's gone and we just have a bunch of objects with system", "start": 490.84, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 10 |
+
{"text": "and event ID and that's just how I like it so we have that do event and then we want to do um a select so we want to do select and then was it system. channel was it channel name or just Channel let's see system Channel okay is equal to system I don't if there was capital or not it's probably going to be a capital S so now this just got me every um system event log so now what I can do is just do a system and then event ID let's un kill that one quote and then we have a list of all the events so I'm going to do a sort and then we can do a uni- c and then let's do a a print then two colon one okay so now we have a list of every single event and how many times it a occurred in our log so what I want to do now is copy this over to my clipboard so I'm going to do xclip das selection I think it's primary or maybe it's going to be clipboard I'm just going to do them both to make sure it's in my clipboard and I'm going to go back to", "start": 547.399, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 11 |
+
{"text": "chat GPT and then say um let's see I have a list of event IDs and then a colon and the number of times they occurred from the Windows system event log can you add a third parameter stating the event name based upon the ID let's see if chat GPT helps us out here um and it looks like it is it's kind of weird how it's saying one occurrence two occurrence whatever but I'm happy with this uh we have event ID 136 this is just going to give us a lot of information about what our log contains and then we can copy this to our dis so we have like um login so we know what user logged in a network connection uh what time the system booted up oh volume Copy Service operation one occurrence we know the ntds.dit um happened around this time through vsss so this is probably going to be a really good event to have we have a dis error volume information", "start": 632.12, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 12 |
+
{"text": "change that could be more Shadow copying unmounting a volume could be a shadow copy like there's a bunch of just um good information we have here and I don't know if we need this information it's just something I like always having so I'm going to call this um we'll call it system. text I guess paste this and then I'm going to go ahead and get rid of event ID space okay and that's fine then let's do this for the other things so we have had the system um security is Another Log we have so can you do the same with security paste oh that did not work wrong clipboard I guess board there we go paste and we're going to see all these logs so the system log this is going to just tell us like system things like service starting stopping um the volume Shadow copy errors security is going to tell us like", "start": 710.959, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 13 |
+
{"text": "logins audit logs um new processes token stuff things like that um and then the last log we had was related to the like NTFS file system which that's a new log for me I've never really viewed that before this so I'm kind of excited to see what logs are in that so I'm going to call this one security. text then we can hopefully paste it oh God paste it a few times there we go uh let's get rid of event ID space uh I screwed something up but that's quick to fix okay so let's just call this next one our last one going to be NTFS and then we should figure out exactly um what that log is the channel so let's just do a select on system Channel delete everything here sort dasu and it's going to be Microsoft Windows NTFS operational okay delete that paste that and the same with NT FS operational log that looks fine I was like is that the security log or not but nope this definitely looks", "start": 787.32, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 14 |
+
{"text": "right and we get get all the data here so this is just going to help us answer the questions because if it asks for a task we can go look at the like type of information in a log and then figure out what event ID we want to filter on to see this data we may not use this at all but it's just something I always like having right it's better to have it than not have it in my opinion and I don't know why we have that tab there so we can delete this okay then percent s event ID there we go okay so now we have our logs kind of analyzed so let's go ahead and go back to the questions and see what it wants us to do so the first one attackers can abuse the vsss admin utility to create volume Shadow snapshots and then extract sensitive files like ntds.dit to bypass security mechanisms identify the time when volume shatters Copy Service entered a running", "start": 879.399, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 15 |
+
{"text": "state so we could just based upon what logs we have or the data we just gathered go to like the um system log because this probably can be where services start and stop and then figure out what event ID this would be related to right um I'm guessing it's going to have service in the name so maybe if I do g-i service on system Let's see we have failed to start change State um type of service changed uh the event log service were started so that's probably not it maybe change state so 7036 we could look at um if we look at security log do we have anything here so g-i service um curb service ticket was requested so nope nothing there so I'm going to guess 7036 let's try looking at that event so let's cat the Json then we can go JQ do um then event type it over to a select then we do system event ID is equal to", "start": 944.16, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 16 |
+
{"text": "uh what I keep forgetting that number I keep saying let's see schedule task was disabled created system. text 7036 okay so we have right now pram 1 wmi performance adapter state is stopped so pram 2 looks like it's going to be the state and pram one is going to be the name so we can just grab um event data pram one then sort dasu g-i on volume and there is a time when volume Shadow cop of yeah volume Shadow copy is pram one so let's now also do a um select then event data. pram 1 is equal to that and there we go we have volume Shadow copy Ram is running and we want the time so it's probably going to be this um probably up to the second wrong answer see is there two events here just one oh I think it doesn't want the T year year month month day day space yeah it did not want that t there we go that successful another", "start": 1025.199, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 17 |
+
{"text": "way you could do this I'm going to show like ways to cheese the answers right so we just did it the very like surgical way looking at the data we have in the log grapping and well selecting and searching but you could just grab this data right and then do the- c like I had said before and now we can just g-i Shadow and then JQ Dot and the very latest log is this running which is the time you could also like um g-i run and it'll probably only give you one event here or we get two events so let's do a JQ dot to look at them again this is going to be the volume Shad copy running and then this one is something about the volume shatter copy this is going the NTFS log I'm guessing run just exists here yeah runs cached so that's why it's hitting because runs is a key here um but this is probably related to it because the device name device hard disk", "start": 1138.48, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 18 |
+
{"text": "volume Shadow copy one um this is the name that a volume shatter copy would be given so if they're copying ntds.dit this is going to be the hard drive name right so this is probably going to be important later on but that's a good way to just GP through logs if you don't know like what event you're looking for if you just want to like explore your data in a very quick way that's a good way to do it okay next question um when a volume Shadow snapshot is created the volume Shadow Copy Service validates the Privileges using the machine account and enumerates user groups find the two user groups the volume shatter copy process queries and the Machine account that did it okay so we want to look look for like a Service quering Groups um let's go ahead and do this again like the surgical way so I'm going to C the security. text because this is kind of a security thing", "start": 1211.96, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 19 |
+
{"text": "enumerating groups probably security related right so looking at this let's see we have 4799 and account was enumerated um looking through all these I think that's going to be like the only thing that could be so let's go back to our JQ command where we select things and I'm going to just look for event ID 4799 and then we have event data um Target username administrators uh subject username this probably be who queried it is dco1 and then we have the process name of what did it so what I'm going to do now is a select on event data. process or caller process name caller process name and we see a few processes we have DFS which foret forget exactly what this is um probably like the directory service um like active directory directory service I believe like replicating to other domains I want", "start": 1269.6, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 20 |
+
{"text": "to say distributed file system replication that's what it is so it's probably the service like saying hey this user account Chang let me replicate this change to another ad server is my guess what that is then we have SVC host which is just a service Elsas this is going to be like a bunch of um like where all the credentials are stored like if you run mimik cats log on passwords it pulls the passwords out of the Elsas process memory uh another service more uh replication service but vsss VC this is going to be the volume Shadow copy stuff I don't know exactly what vsss VC stands for I guess like volume shatter service volume copy maybe let's see does it say uh volume let's see chat gbt may know what does this stand for volume Shadow Copy Service that's not the order okay it's it's related to volume Shadow copies that's all that's important right so now we can search for", "start": 1343.76, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 21 |
+
{"text": "this as the call process so let's do a select event data call a process name is equal to this and we have to close out our select there we go and then I'm going to grab event data and let's see we just want to get the group groups that it queried so I'm going to select Target user name sort dasu and it's the administrators and backup operators these are the two usernames it enumerates so we can go back to the question say administrators backup operators and then the machine account that did it that's going to be the subject us username which is dc1 so we can put that in and I did not like that let's see administrators backup operators is the no space let's look at what the tool tip said we add a comma then a space maybe that's it we add a space after each comma okay that's it man that was", "start": 1413.64, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 22 |
+
{"text": "annoying let's go to the next identify the process ID in decimal of the volume Shadow Copy Service process if we go back to this log we do have that right that is going to be this P ID the call process ID this is in HEX but we can quickly convert this to decimal in Python so if we just do Python 3 put in the hex it's 4496 let's try this 4496 hit enter and there we go okay find the assigned volume ID guid to the shadow copy snapshot when it was mounted so this is going to be one I cheese um we could again probably go into the NTFS doxt and then guess what it is but I couldn't make a good logical guess um probably one of these that has a lot of occurrences maybe the file sysm disc is corrupted unusable um like I don't see one that just says like volume shatter copy mounted is what I was looking for so we could go through", "start": 1510.799, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 23 |
+
{"text": "and look at each of these events but when in doubt I like cheesing and then just like once I find the answer going back and discovering um what it was right so I'm going to delete all this data we'll add that- C again so every event is on its own line and I'm going to do an egrip so this is going to allow me to do good regular expressions and it's asking for guid and this is eight characters D4 characters D4 characters D4 characters D12 characters so I'm going to write a um Regular expression we'll make this case incens and I'm going to say eight characters Dash A to Z 0 to 9 we'll do four characters and then if I have to keep going I will but if I don't get a lot of collisions here that's fine um let's see g-i let's see what do we oh we put the- C in this single quote and that's not it so right off the", "start": 1578.24, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 24 |
+
{"text": "bat we kind of screwed up um looking at it we have a lot of hits because there's Aid in the system we just want to look at event data so I'm going to go over here to the query and we're going to put event data so we're going to have a JQ filtered down here so the- C only shows us event data if I put a comment here we can show this better right there's not much Json on each of these lines because again it's just the event data so now we're going to GP when the event data has a goid in it and right off the bat Let's see we have this which I don't know let's see Drive name see what did this match oh we got Logan goid I'm getting a lot more guid than I actually expected I wonder if I don't want that D maybe I got lucky before Let's see we can do a goid and also contains the word Shadow there we go that looks better so now we're looking for all the", "start": 1644.279, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 25 |
+
{"text": "logs that contain the word Shadow and have a goid and we get a few right so we have this volume correlation ID and that looks like it is the only guid we have other than these all zeros which is just blank right so I'm guessing the answer is going to be that guid for good measure we can see if there's any unique ones here so we can just select that and then looking at that that's all the same so let's put this guid in so I'm going to copy paste submit it probably wants it in Brackets there we go and like I said I want to go backwards and understand um like where this occurred so let's now go back I'm going to get rid of this let's just do cat events like this okay and we can say select then event data volume correlation ID if I spelled that correctly is going to be equal to orid so let's copy", "start": 1730.559, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 26 |
+
{"text": "this paste that we got to close the single quote awesome and now let's just get all the event IDs so I'm going to now query. system event ID we have 49 10 300 and 303 so I'm going to do a 4 I in this file do if I just Echo I now we just have each of these right and the whole reason I did that is because before we created this um these txt files these are going to be in the NTFS log and if I look at nts. text I have vent ID colon so I'm just going to replace this Echo I with grep the line begins with I then has a colon on NTFS doxt and then we have all the events that that contain that guid file Sy structure on dis is corrupt and unusable meta corruption Integrity check this is probably going to be the one I should have checked because when you mount a disc it probably does a file system Integrity check so it makes sense for the guid to be there we have dis operation failure dis read error", "start": 1825.36, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 27 |
+
{"text": "occurred I wondered this occurred because like a permission I don't know why like all these failures occurred for a shadow copy I don't know if that's normal but this is going to be the one I probably should have just gravitated towards when looking at event logs and filtering right we could just look at event log 10 so let's go back to a select statement and say system. event ID is equal to 10 we may have to also filter on um the channel it's not clear to me if um what was it going to say 10 exist in system and security log we don't want that for huh system event ID I expected to get oh we have in quotes there we go so nope there we go this is good that's what we expected NTFS um Shadow copy one I wonder if there's other device names we can do event data. device device name yep so we have different gos for other things so like it for every volume", "start": 1901.88, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 28 |
+
{"text": "it ran the system Integrity check and I'm guessing those guids are going to be different right that's going to be 44 F9 yep that's a completely oh that's system completely different goid because that's the volume four of hard disk so that is that so now we're going into task five identify the full path of the dumped ns. database on disk so let's just now go back to events I don't know what event log this would be in so again I just go back to cheesing it and we can g-i ntds.dit and there's no results so I'm thinking we have to go into the master file table from this point so if we go into the artifacts C we have this mft file and Chainsaw I think has a bug or maybe I don't know how to type the dollar in chainsaw like to get it Pur correctly but if we do dump on let's see like dollar mft like", "start": 1986.84, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 29 |
+
{"text": "this it loads the artifact and doesn't do anything we try to escape it doesn't do anything um I renamed this so if we let's see rename it and I'm just going to call it mf. bin so now when I run chainsaw on this mft it dumps a bunch of data so I'm going to do D- Json and then I'm going to put this up to directories and we'll call it mf. Json let's direct the file there it's going to take a little bit to dump doesn't take too long I think that file is probably going to be like 80 Megs let's see how big this is 87 Megs okay and this is going to contain a record of all the files on disk so if we cat this pipe it over to JQ we can just see tons and tons of files like the full path this is something in the windows directory so all I want to do is a JQ um let's tail das1 real quick I may have wanted to do a head-1 maybe that would have been quicker so it is in a list so", "start": 2054.159, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 30 |
+
{"text": "I'm going to do JQ open close like that and then- c and that's going to put everything on one line I can grap - ntds.dit and then we can do a JQ do and this is going to show me all the lines that contain ntds.dit and we have the full path Windows system 32 ntds s.d which looks like it's probably going to be the default location of where this is but we have another one right here users administrator documents back up and contains this so this is probably the file we want right because it said uh full path of the dumped nts.", "start": 2136.16, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 31 |
+
{"text": "database on disk and it probably wants these slashes to be correct so like this C colon back/ users administrator submit there we go so when was the newly dumped ntds.dit created and we can just look at the timestamps so last modified last access info created we can copy this and then it does not like that t submit okay and the final question is a registry Hive was also dumped alongside the ntds database which registry Hive was dumped and what is the file size in bytes so we see the folder is backup sync DC so let's go back to our query and change your grap to just be backup sync DC and show all the files here so we can see ntds.dit we see a shortcut file because it ends in lnk we also see system and all caps this is probably going to be the system registry file and then this is going to be the folder because there's no file", "start": 2180.119, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|
| 32 |
+
{"text": "there so it's probably going to be system and then the size and bytes so file size I hope this is byes but that wrong answer see I don't know what like unit of measurement this is it may want a comma a space after that comma there we go that's what it was it was system comma space and that's going to conclude the shlock so hope you guys enjoyed the video um take care and I will see you all next time", "start": 2258.16, "duration": 0.0, "meta": {"video_id": "lIQ-sd208FA", "title": "Analyzing Event Logs and MFT Dump with Chainsaw - HTB Sherlocks - CrownJewel-1", "url": "https://www.youtube.com/watch?v=lIQ-sd208FA"}}
|