Add IR_Employee_Fell_for_a_Call_Center_-_HTB_Sherlocks_-_Tick_Tock.jsonl
Browse files
IR_Employee_Fell_for_a_Call_Center_-_HTB_Sherlocks_-_Tick_Tock.jsonl
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"text": "what's going on YouTube this is IPC and we're going to be doing Tik Tok from hack the box which is another Sherlock challenge it's a defensive one and I haven't solved it myself I'm we're going to be doing it live I have helped a few people based upon the things they've asked me I kind of know what's in here but I haven't collected the data myself ran the analysis and done things right they kind of just said um what are ways we could look for a and I um briefed them or gave them answers but let's go to the scenario glattus is a new Joiner to the company she received an email informing her that it is wants to do some remote work and she is guided towards a call to the IT team where they walk her through allowing remote access to a computer um unfortunately that was a rogue group that it was hackers and", "start": 0.08, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 2 |
+
{"text": "they tricked it into running a program and this is something that happens so often you'll probably work this case at least once a month if you're in any type of ir right um someone calls you or you call them and they guide you into installing a legitimate remote access software like screen connect team viewer there's another one I can't remember the name but they just get you to install it and then your system gets compromised they normally install ransomware or something like that not the most sophisticated but sometimes they pass you off to a sophisticated adversary or sell access um so I'm excited to do some IR against this because it's good public ir and good experience for you right so let's look at the questions and then we'll go explore the data and answer the questions so what is the name of the executable that was uploaded as a C2 agent", "start": 43.48, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 3 |
+
{"text": "could be screen connect could be team viewers sometimes they get called c2s could also be like Cobalt strike Metasploit um I'm trying to think of the empires the Powell one there's a bunch of c2s it could be so I'm kind of interested what that is Task two says what is the session ID for initial access this leads me to believe it's like screen connect because those create log files at log session ID so you can track what's happening of course c2s that are done maliciously or I guess ctly I should say say um don't have log files right we'd have to do some like memory analysis or um decrypting Network traffic which is probably out of script for medium Sherlock uh task three attacker attempted to set a bit Locker password on the C drive what was the password so this leads me to believe it's going to be ransomware right um the", "start": 90.799, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 4 |
+
{"text": "attackers are using legitimate things like a legitimate remote access software legitimate way to encrypt the drive because they don't want to worry about antivirus right Defender isn't going to say hey Bit Locker you can't encrypt the drive um so it looks to me they're trying to encrypt it then they will extort glattus for the uh for money and say give us $100 in gift cards probably more than $100 in gift cards or you won't get the password back to your computer right um and it's important to kind of keep a track of what sophistication level you're going against because this isn't IR investigation doesn't mean you shouldn't look for both sophisticated and unsophisticated but people want answers quick so you want to know where to start um now I'm starting a bunch of unsophisticated things I'll prioritize looking at like remote desktop just the um obvious ones I'm not going to look", "start": 141.84, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 5 |
+
{"text": "right away at a lot of just um Advanced Techniques right now I will still look at them but if I want to get answers quickly I'd probably start at the more basic ones what is the name used by the attacker first and last name so I'm kind of curious how that obsc leak happens what IP address did the C2 connect back on so they probably have a legitimate C2 I wouldn't ask this question if it was like team view or screen connect because there's a cloud software they have a lot of IP addresses based upon the location to minimize latency right a lot of just c2s don't have Global networks and try to minimize latency so um they have fewer IPS doesn't mean people don't have a lot of forwarders set up to do things but it's just a question I see more often when it deals with actual C2 and not remote access software what category did Windows", "start": 195.0, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 6 |
+
{"text": "Defender give the C2 binary file so again if this is remote access software it could be some potentially unwanted program or application Pua um if it's C2 it could be like a remote access Trojan I forget what that last letter means it is a d so it probably indicates something maybe that says it's deleted um let's see what is the file name of the Powershell script the attacker used to manipulate time so it looks like we have some type of time stomping an easy indicator of this would be just looking at the time stamp because time stamps are 32bit um and the actual um what is it the time stamp 32bit but most people only set it to be like a second so you have all those lower numbers being zeros if it comes out of like a zip archive it is still going to be zeros as well so you can't always trust that but it's just something to look at right and if you want to know", "start": 245.68, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 7 |
+
{"text": "more about that uh let's go over to um do I go let's see f11 and we can say IPC rocks and type like 32bit time and we see compromised I talk about it um there's probably multiple boxes I talk about time stamps but you can just search around um undetected compromised those are ones I would definitely talk about right and I even say my favorite way to find um tools left behind by hackers maybe we'll do some Advanced time looking in this video I don't know um what time did the initial access start what is the Sha one and sha two sum of the binary how many times did the pow shell script change the time of the machine so it doesn't look like it's time stomping it looks like they're just changing the time which means that won't be an indicator right um more indicators of this would be changing the event log um like when you change the system time a thing is written to the event log to", "start": 302.759, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 8 |
+
{"text": "tell you it changed so we definely need to look at that and I'm also laughing because before what time did the access start just before that question attack is manipulating time after that question attack is M play time you can't trust time what time did it start I just find that funny um I'm be curious if we can get a known good time out of that may um it's going to be hard because if they're changing the physical time of the machine it's hard to know exactly what time it was written um maybe there'll be a time stamp of a server talking back to us that we can pull and compare with the active time I don't know um what is the Sid of the victim user and that is it for the questions so let's go take a look at what we have right as always I'm using obsidian we have some questions over here just so I can stay on track", "start": 364.68, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 9 |
+
{"text": "with what I'm answering but I typically don't Focus my investigation around answers because that's not realistic and we learn so many cool things when we go off the reservation right so let's look at what we have um I'm in this collection directory already um this these files are just going to be like cape output this is the tool that was used to collect it we could read it and kind of get an idea of what is collected here but that's generally not what I like to do I like just looking at the files themselves because sometimes people would drag files that weren't part of Cape into this or um other things right um maybe it just didn't get logged um if you don't know what I'm talking about with cape you could always go to the I like to video that is a show loock that has a similar type of files we have and before I", "start": 414.919, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 10 |
+
{"text": "forget we need to make myself smaller so I don't keep getting in the way of things so let's take a look um what I want to start with is well I see it right now we have mft so I think that's called the master file table um it's like the nft uh and um Dr and I'm blanking on the file system name that Windows likes using NTFS that's it um the journal where like files get created files get deleted it'll have a bunch of metadata around that so that'll be good to process um the other thing I like looking for let's see um let's look at event uh event logs so star. evtx do we have those we do so we have event logs evtx um another good log file to search for is files that end in log and we have some uh it looks like let's see we have Team Viewer so team viewer is definitely installed we have a user", "start": 464.919, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 11 |
+
{"text": "profile because we got in app data so we can say logs. log um user profile let's see MP CMD run this is going to be Defender this up here is also Defender um I'm guessing this is like a schedule task that's running because users typically Don't just run it's in a utf16 format and I don't know the flag off top my head to view it but we can just scroll up and we see like it's running signature update Spy Net service that's a funny name to give something a legitimate like Spy Net just sounds so ominous but we have logs um we have the user profile let's see is much in program data just Microsoft so doesn't look like we really captured program data um like browser profiles the history file would be good to look at because chances are if they got a phone call um I can also put that maybe browser history", "start": 527.88, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 12 |
+
{"text": "uh because if they get a phone call that means um they probably downloaded the file with their browser so uh let's see the last thing we have and sorry I'm a bit scattered my dog wants to go outside and she's whining at the door so sidetracking while we get through this um let's see there is a prefetch directory so let's look at that um prefetch so the prefetch file when you run an executable on Windows it saves some metadata around it so the executable can run faster the next time it gets launched um and we see some things like team viewer here I see Merlin Merlin's a known C to um or manager this is normally used for like process boofing I want to say maybe it's process hollowing or not war man War fault um like Cobalt strike this is a default thing for that I'm I'm not sure if Merlin uses this as a default for how", "start": 610.72, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 13 |
+
{"text": "they do it essentially um I want to say it struts up a binary Card War fault and then injects whatever they want to run into that so you can't see the exact thing they are trying to run um let's see we got that prefect um we have event logs already I guess the last thing we would want to look at is do we have the registry Hive so that would be in system 32 config we do and we have I'm going to put this up at the top so registry Hive because this is the first thing I want to look at because it's so quick right and it always gets quick wins so we can do secrets dump.", "start": 672.72, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 14 |
+
{"text": "piy and then specify the Sam file um the system file uh let's do security as well and then say local and this is going to Output a bunch of information um 31 D6 this is a blank ntlm Hash A a3b or a d3b blank LM hash so no administrator password No guest password no um default account these accounts are probably disabled we have forla workstation gold and St so um we can just crack these hashes right um so let's put this in our log file or let's just go over to ntlm PW I really need set and install a better password on or better browser on this nm. PW there we go so we can put the nlm hashes here and see if they're a known password um typically I wouldn't recommend using sites like this because you're trusting whoever you send these passwords to if it doesn't crack um they can always like try to crack it", "start": 714.72, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 15 |
+
{"text": "individually because this is just using um a database right so they have is that 8 billion unique passwords um if it doesn't crack they may try to use a rule file to crack it and if like a company name is in that now they know the password you don't and that's a big info leak right but we're in investigation attackers already have this we need things quick um we do get two passwords so both of them did crack e19 and um 217 so let's add those into um our notes so we can do creds and then paste it and let's add the username as well so going back here we have forer workstation gold and it having gold in the name is indicative of it being like a gold image a gold account which is very bad um they should use something like laps the local admin uh is it local admin it's like local admin password solution I think is what lap stands for and make all these passwords unique", "start": 787.36, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 16 |
+
{"text": "because it having this um same password on every machine means users can likely just do lateral movement with this password they don't even need to crack it because they can just uh pass the hash and then they can just access all the workstations as admin right um one of the big things they access all the workstations dump all the um credentials they probably won't use mimik cads right away anymore because Elsas is such a protected thing instead they'll go after like um browser profiles to dump all the saved passwords in that because it's less monitored than Elsas but definitely don't have gold images even I was doing a forensic report not a pen testing thing if I saw something like this in the local account um I would definitely be calling it out and saying um this is bad right you don't want to have the same account on every machine you don't want to have local accounts even um but if they don't", "start": 850.68, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 17 |
+
{"text": "have like active directory of course maybe every user has their own local account just don't have the same password on every machine because that is really really bad um let's see so let's go back to what we have so we've done registry Hive now I'm going to set up things to look at mftn event logs because this can take a while to process so I like having this um running in the background while we look at other things so um let's see let's go um how do I want to do this let's go Mount C Sherlock's Tik Tock maker analysis U makor after analysis I want to do mft and then let's say um let's process the um event logs or let's process the MF I said MF there I was thinking event logs because I created this directory in my Ubuntu shell um the whole reason I use Windows for these Sherlock videos is", "start": 903.079, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 18 |
+
{"text": "pretty much the mft analysis program works best on Windows I don't know how to do it on Linux apparently chainsaw does support it but I can't get it working so I always use Windows for that um it's the main reason I'm using Windows for this uh video so let's do C colon users IPC desktop um mft cmd.exe this is the program of it um this is just on GitHub again if you wanted me to explain this program go to my channel look at the I like to video because that's where you run it the first time so we can do the file and that's going to be in C Sherlock's Tik Tock collection C doll mft okay then we want to say we want output and Json to C colon Sherlocks Tik Tock analysis mft and then I'm also going to specify the CSV in the same directory um I have a dash there I don't want that Dash how do I get rid of the", "start": 973.12, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 19 |
+
{"text": "dash there we go so not sure if I said it I got distracted um CSV is useful for like a program like timeline Explorer if you load it to excel I like just pressing Json but you can't really go to the CSV easily if you only did Json so just like my end map I output it in every possible format because it doesn't really take much longer to do that and I'd rather have it and not need it than need it and not have it right and that was quick that did not take long to process at all so we have the mft processed um let's see we also want to do event log so let's make dur EVT and I'm going to have two things going at once probably because this one's going to take a while um or maybe it won't I like doing chainsaw and then we're going to do hunt first and then we have to specify the sigma then the rules uh chainsaw rules then the mapping that Maps Like rules to Sigma I want to", "start": 1037.959, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 20 |
+
{"text": "say chainsaw mappings it's Sigma event logs all okay and then after this um we got to give the event log directory I want to say and then maybe we can just say outfile real quick um chainsaw.", "start": 1108.0, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 21 |
+
{"text": "hunt. log and then let's do Mount C Sherlocks Tik Tock um collection C Windows where are vent log stored find. grap evtx uh let's see we did Windows system 32 logs paste that let's get rid of the double that run it and it looks like it is chugging along awesome shoot uh there is a skip error right let's see chainsaw hunt skip errors we want that Dash Das skip errors okay so now it's hunting we also want to um dump all the logs the pain I'm on okay and I'm going to say log dump.", "start": 1127.76, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 22 |
+
{"text": "sh and let's do for log in we really should go to this directory copy this bwd grab it there's probably a better way to do this but this is how I do it so we grab every single log file then we do a do and we want to do a chainsaw dump let's not forget to skip errors Das o um this is going to be out file so we're going to do i. Json specify we want the Json format and then the log path slash I and let's put this in quotes because some logs do have spaces in them and then done so if I do bash log dump now uh we air it 100 times because why did we error Echo bash let's see let's just run one command and look at oh it didn't put out of habit whenever I'm in for Loops I call the variable I for index and we call it log that looks better right so let's get rid of the echo run it and there we go now we're", "start": 1206.84, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 23 |
+
{"text": "dumping all the logs so we have chainsaw running so what we have um I don't want to say done we'll say gathered um running so what do we want to look at first um let's go for prefetch CD collection C windows prefetch and let's see let's pipe this over to less this is not interesting dism Hurst eh not exactly interesting that could be like def um bit lock or something explore so we have Firefox so we know let's see let's grab this 20 um prefetch do bash so we have that syntax highlighting I'm just logging Firefox there because it's nice to know when we look for browser profiles right um K this is probably when the forensic investigation started we don't have the exact time I wonder if we should get that um probably uh Merlin that is interesting um Edge MP CMD run notepad I'm gonna highlight", "start": 1317.64, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 24 |
+
{"text": "this a lot of users may not run notepad and I do see ransomware people like use notepad to communicate with the person um Power shell probably not interesting because power shell always runs in the background run DL 32s not exactly interesting um that's just going to flood it it could be um each of these are different because it's like run dll 32 comma the function you want to call so that could be interesting but a lot of things may just use it legitimately right so that'll put a bunch of noise uh we do have cismon so we have cismon logs I'm going to put that in what we have because this is a huge win even if you aren't doing um like any type of centralized logging still do sysmon I know people sometimes say well attackers can clear the logs well if you clear the log it becomes a CTF because that doesn't happen legitimately someone malicious is on the system right so um if they clear the", "start": 1430.679, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 25 |
+
{"text": "logs it's still a good indicator it's something you want to know I'm going to highlight all the team viewer stuff um where fault I am going to highlight this one just because it's so often used in c2s that like we want to look at the time of Warf fault and find um a confliction right because that would indicate they're using it um which ones are really interesting Firefox isn't super interesting Merlin is what is in the prefetch is this anything good no let's just do stat against it and we can grab it so this is when I unzipped it um prefetch I guess doesn't have the full time stamp we see all those zeros so let's just grab it I can probably I'll put everything so we'll do Merin there we go then let's see the next thing we wanted to grab um we do team viewer I'm struggling because I hate copying and pasting out of t-m I should have", "start": 1503.44, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 26 |
+
{"text": "installed like a plugin that let me um let's just do team viewer exe and setup Merlin team viewer okay we'll do that and let's do setup grab this okay so let's see Team Viewer this is five 4 1234 pretty much the same time so as soon as it installs it runs okay so let's answer one of those questions real quick um name of C2 agent I'm going to say um 20 prefetch and then we can put Merlin like that okay so now when we um or answering questions we can just go there click here quickly and see where we got it um let's go to what else can we answer I don't think anything right Sid no nope that's about it from the prefetch directory so let's go back to what we have I'm going to say done um logs again is going to be the last I'm going to put this as running as well let's move this up um let's go look at the team viewer log find dot- name star.", "start": 1622.72, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 27 |
+
{"text": "log let's see I'm guessing it's going to be this this looks good so team viewer log what do we have um let's see I'm looking for like a connect event right participant so this is a host name um a name here so let's copy this uh let's go contrl n 30 team viewer log um name of let's do interesting lines okay we have that that'll be fine for highlighting Let's see we had a desktop name I don't know if this right now is the workstation name of um the client which is the person that got hacked or the workstation name of the attacker but that is the thing it logs uh we also have a session we should log this as well so that is him interacting with him I guess it's a him I don't know what frit Joff is grab screen so there's ways to normally like run a command or upload files through the application so that's what I'm looking for um right here it looks like they're grabbing the screen to set up the like", "start": 1750.0, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 28 |
+
{"text": "VNC session and they're having trouble let's see there's got to be a better way we can look at this um server URL there's nothing indicative here I was hoping it would have like the client ID or the license ID or something of saying um valid hours to that is interesting oh right file right here uh let's see 1121 um I can just search for Merlin 1135 11 that's funny as I'm searching through we have 11 35 1136 1121 1122 1227 so that is the like time stomping that we talked about right um where is Merlin so we shoot I lost it Merlin okay so we have this string lines um time jumps around and log system time change we already know that based upon the question but that is something I would just be looking at while we do it vo so I guess there's a way for them to talk to people um and that may be it", "start": 1873.24, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 29 |
+
{"text": "so we have a few things we want to look at um I'm just going to go in this directory and show you a technique I normally use to confirm or not confirm but to help make sure I got everything I want to right so let's cat this team vior then we're going to pipe it over to a and we're going to say um give me this is 1 two 3 4 five six the six field okay and let's do a sort uni- C sort DN and this shows us like all the function calls right so if we see something dangerous here we know to look at it like right uh there is a lot here um couldn't get so I may also like filter and split colon so like this main window Handler I don't really care I haven't found anything interesting here um connect to other process I guess is interesting um sender so so far I've seen sender right um that thing I just put on my clipboard", "start": 1976.039, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 30 |
+
{"text": "so let's GP sender out of this log um Team Viewer 15 VoIP sender oh this is the line it was Center thread pool so instead of doing all that let's just go back here pipe to another a field separator of a colon print one sort uni- C sort DN and this is going to be a little bit less to go through and I think we have everything I was looking for like command run things like that but I don't see anything if we G this for right um we would have seen the team viewer um thing team viewer log that's that uh we wanted like enter process communication right um that sounded like dangerous grap enter process let's do again sort uni- C sort n grap D IC process control ready to to process commands this is interesting let's just look at that what happens around this um doesn't seem to be anything interesting so I think we got data out", "start": 2069.48, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 31 |
+
{"text": "of Team Viewer logs and they uploaded Merlin so again on the name of C2 agent we can also link to our 30 team viewer log and say interesting lines there is there anything else we called out desktop name oh the name of the attacker full name used 30 team viewer logs interesting lines and that was frit off right okay so we have that and I also like putting ZZ whenever I solve something um doesn't mean I'm not going to add to it again it just hides it away so I know it's been answered um so let's go back to the what we have so we've looked at this I guess we didn't do a thorough job but we did a good enough job let's see let's go roaming Mozilla Firefox profiles we're looking at the Firefox profile now so let's see SQ where is places is this it glay three place say SQL light um pseudo apt install SQL light", "start": 2178.76, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 32 |
+
{"text": "3 I don't know my password for this sweet it's always password um let's see now we have it we can do a do dump uh is it schema oh God I hate skial light um let's see SQL light history history visits let's see let's just do dum g-i HTP okay it's going to go in Mozilla places um schema MOS places so we can say select um let's see hash index okay here we go URL hash visit count frequency last date origin there's another place that stores it no Milla origin I was hoping to get like a time stamp this is where I'd go to like chat GPT or something um select star from M places okay we have what we want is it like describe PA places um because there is a time stamp here oh I want to look at the create table not index so ID so we want to do select URL probably title then and where's a date field last visit", "start": 2282.96, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 33 |
+
{"text": "date would be good last visit date from M's places there we go I will put this I don't know if this is the exact history but it's close enough um 40 history and again when you do like in like this type of investigation the first comb through data doesn't have to be um indepth and good right you just want to get a general feel let's see I'm trying to think of a good way to do this um we did URL uh what was the next thing title which is often blank here that's odd and last visit date okay we want to convert this to markdown so let's just copy everything here V Let's Go an analysis V temp. sh um let's see set paste that paste there we go for I in H 4 I cat or bash. sh do Echo done line 15 I'm not sure how I'm screwing this up let's do N is a period there we go not the most elegant but you don't always have to be elegant uh we probably need to end", "start": 2430.319, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 34 |
+
{"text": "that let's see does this there we go that is ugly we spent all that time and I do not like it I guess that's because I'm in some weird view of this but I guess that's fine so we have Team Viewer this is where we downloaded it so we can highlight this and this is not Epoch time this is Windows Epoch time I think guess we should make sure these end let's see so team viewer downloaded around this time we have three downloads so you go here this is not indicative of any specific thing team viewer setup ref team viewer download Windows version 15 so we'll just say this time stamp team viewer downloaded okay I don't think that answers any questions um we have this answer as well that was in team viewer log um 30 lines where is the session and I guess we should GP for whatever line was in the log around the session to see if there's multiple sessions but", "start": 2599.68, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 35 |
+
{"text": "we'll come back to that so IP time initial access I am going to put an thing on History um you were downloaded I should call this browser does this automatically update power shell time initial access it does sweet and I'm not going to fully trust this time because I don't like how we got it um that's just when they downloaded the file um yeah it could be right where is initial access okay so let's see what else do we have on our what we have list um user profile browser history we'll say done probably did a poor job at that but that's fine uh user profile what else is in the user profile I'm not sure exactly what we wanted to call out um I think it was just the browser history let's see glattus there's an app data so we didn't even get like the desktop or things so there's not much so I think", "start": 2733.28, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 36 |
+
{"text": "that's done on glattus unless there's something interesting in team viewer logs I think that's the log file we looked at so we'll say that is done so all that's left is analyzing event logs it looks like um yeah so is that all done we are still dumping logs um this is Windows state repository let's just go into our analysis um go into evtx we do have a lot of log files now um let's see grap we can look at the chainsaw hunt. log this is that um wonder if I do a less- S is that any better yeah so this is the first chainsaw command we ran so we have a bunch of Defender things it doesn't have much there highly enough I wonder if that was like error processing things we should look at the defender log to see if there's more data because the question's asking for a specific threat name and Chainsaw did not display", "start": 2825.88, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 37 |
+
{"text": "it so we have log T tampering so four times the logs got reset um this is back in 2022 1027 Defender head alerts 2023 oh the workstation name is wait oh that's the user never mind um desktop d psm4 pf8 let's go to the team viewer logs so the attackers workstation was R30 um our workstation name is DSM so I'm just going to say 05 interesting and we'll call this out to be victim let's see victim workstation um attacker workstation we will put in here team viewer log like this okay let's see event logs cleared this is so long ago I'm kind of ignoring it but again time t uh time stomping and them changing the system time maybe that shouldn't be ignored right um let's see we'll just do a 50 chainsaw hunt and I'll say um system time or log clear put that there I not form it as well as I wanted to that's fine I'm not going to put", "start": 2910.44, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 38 |
+
{"text": "everyone I can say four times okay so this is registry things RDP events again all this is 2022 this is old we have a new one session log off um glattus default user gold image gold image um glattus RDP let's see let's do this be events gladus RDP should say like notable um and I'm going to call one of these gold images out because this is probably them setting up the workstation but if it's not um then the attack could change the time back and has actually compromised the uh gold image account and we've already talked about why that's important so um yeah okay Sigma rules so firewall settings changed this happens so often it's annoying um firewall rule modified modified modified I don't care about firewall um cismon configuration change Sigma cismon config change maybe the attacker um change something but more", "start": 3042.24, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 39 |
+
{"text": "importantly that's when we know cismon was probably deployed right uh potential defense by raw disk access what is doing raw disk access this looks like it is system cismon that's fine probably defense EV asion cismon auto run key modified explore modified it run once gladus I don't see exactly what they are changing maybe it's run once delete cached update binary don't get much information out of that file was deleted one drive current version auto run key explore defense uncommon tool ah Merlin and we have destination IP so this is going to be um let's see 2023 0838 is that the same time here let's see Merlin talks to this which is an ec2 box that's gonna be a pain to copy this is why I like viewing things like in Json format it's easier to grip easier to search and filter out um but yeah Port 80 we want the", "start": 3156.52, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 40 |
+
{"text": "PID Source host name Source IP that goes in interesting okay so we have what IP did the C2 connect to that's in chainsaw hunt it's probably going to be in other things but um yeah and hopefully this isn't boring you right um the whole purpose of this kind of is to show you all the information you can just get when you start examining logs and seeing it's the same things that would be in the questions right you don't need to go after the question first um and there's so information here I know I'm going to miss something but it's taking so long to process those logs I don't really have much else to do right now unless we just pause the video and that Merlin it is logging every single connection um yeah so let's see we want to probably grab everything with this line so we can grab this on chainsaw hunt l- s", "start": 3275.839, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 41 |
+
{"text": "okay this is probably time of initial access um talks to time that okay let's see ipc2 we've answered that Defender we still need bit Locker password we need poell script name we need time initial access we have that and let's say um where is it that's in 50 chainsaw hunt notable Sigma there we go and can say team viewer DL this is Merlin run sh one sums time changes victim user okay raw dis I think all these are going to be like Merlin's beacons right so not much to do here um I should view all that log but it's a pain let's see do we have this finished it is not it is processing sysmon this is the file that we're like most interested in right um I guess we could look at security log if that's done ls- I security um notification it is not done so I think security log and cismon are the two that we really want I guess we go for Defender if that's", "start": 3363.76, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 42 |
+
{"text": "here it is not as well um we're striking out on all the logs let's see fora application oh there's a poell log poell operational oh we didn't look at poell console history that's a good one to look at um we want to go here collection find. g-i console it was console host history right but yeah we have this so set execution bypass and we have of the power shell script invoke time wizard okay let's just copy this um we call call this 60 Powershell console host history there we go and let's see that was Question Time initial access time changes power sh file to manipulate time there we go we have that uh that was called invoke time Wizard or something okay we've answered that still processing the event log let's see LS grap dasi Powershell what do we have in this log nothing that's funny so Parell", "start": 3473.039, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 43 |
+
{"text": "operational is blank okay um cismon operational is still processing so I think I'm actually going to pause the video get a drink of water and we'll come back because uh we still have things right uh probably shouldn't have dumped every single log and just focused on the ones I want because however long this video has been going um we just got to the one that was interesting to us so um that sucks but live and learn so I'll pause the video and we'll come back in a bit okay all the event logs have been processed so let's start with cismon because cismon is always a um wealth of information right and it's a bit of a pain to search this just through command line because it's all like JQ tax I know there's better tools I've learned JQ and I'm too stubborn to learn new ones and wow I just stopped on merlin. exe um this is going to be event code let's see event", "start": 3605.079, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 44 |
+
{"text": "ID um let's see 80 maybe at system okay three so three is going to be a network event ID uh we want to go to cismon event IDs and see what there is right um does this page list it okay it does so like one is a process creation three is network connection we have image load create remote thread process access we probably should pull the vent like the cismon log and see what they're logging but um I'm lazy and that sounds like a lot of work so let's just see what event codes we have so I'm going to do a uh JQ dot like that and let's just make sure we go into to the cismon log we do so let's see I want to only show let's just do a grap we'll be super duper lazy um grap where is it event ID like that 22 wow that's a high one sort uni- C sort DN so these are all the event IDs we have um 296 process creation 11 what", "start": 3666.72, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 45 |
+
{"text": "is 11 file create so we can see when files were created 13 um registry events 16 is service configuration change only one of those um this could be like persistence so we could easily look at that um let's see trying to think of a good way to do this maybe JQ dot like that and then we want to do A- c and- c is going to put it all on one line and do a reset to fix my colors real quick there we go so now it's all on one line I can do a grap and we wanted to look for 16 so I do colon 16 does that find anything uh we also have time stamp um quote colon um ID like that event ID there we go I can pipe it back to JQ and see exactly what this was and this was them installing cismon so they changed the config because I guess cismon loaded a new config um so if what I did here doesn't make sense let's just break this apart real quick so um this jq- C that's going to put", "start": 3754.68, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 46 |
+
{"text": "everything on one line and then I just want to um GP for the like tag I want and then I pipe it back to JQ to split it up um that's the easiest way to work with this that I found you could do a fancy select statement which I do and like I like too but um this is my natural way to do it so let's go back to the fancy command with a unique sort um event ID 22 DNS so that's going to be all the DNS places it talked to that could also be a fun one to look at um so let's do the same thing event ID 22 and then we could easily look at where talked so query name is what we want so if we're just going quick we can grip now for query name and see all the domains right um we know they didn't download Merlin because they copied it through team viewers so we wouldn't see that here but this could be interesting to look at um", "start": 3843.279, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 47 |
+
{"text": "there's them interacting with Team Viewer but this is just kind of how i' search through l on a quick glance but the one I want to focus on is event ID one process creation and I'm going to get away from doing my hacky way to GP this because when you do it you lose a lot of information right so let's do like this and then I'm going to do a pipe and we can say select and then we want to go down to what we want um the event we want to go in event event data system event ID so that's how we want to select it so we'll do select. Event Event data um no event system event data was not part of that right event data would be like the sysmon information system is not so event system and then event ID is it uppercase or lower case it's super case sensitive which is annoying equals one um is it a capital D here there we go so now we can do JQ Dot", "start": 3918.68, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 48 |
+
{"text": "and this is going to be all the process creation events so what I want to do is now we'll select the fields we want to show and I'm going to try something real quick um could I easily put this on one line I don't think no I was trying to split it up on lines doesn't look easy we'll copy it once we're done and go over the query just like we did before so we do a pipe after the select and then we can do this and then select the fields we want um I'm going to say let's grab I'm just going to close that window so we want command line that sounds good um company I don't really care about current directory that could be good um image I don't exactly want the full thing I'll go with original file name um because there's a lot of data to fill the screen uh let's see login ID parent command line could be good um parent image could be good", "start": 3998.799, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 49 |
+
{"text": "parent process ID could be good um the process ID could be good and the user plus UTC time so those the fields I want um trying to think of a good way to do this let's just do this um command line Event Event data dot command line and a comma let's see if this works for us then we want current directory um original file name process ID parent command line this is so tedious image it's one of those things like I could have scripted or did um some macro to make it a bit less painful but by the time I spent that would have been done doing this okay data.", "start": 4081.799, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 50 |
+
{"text": "UTC time so I think that's all the fields I'm going to encapsulate it in these brackets um G to write to out and I wonder if I can just copy it like this and paste it in um was out the you have UTC time okay I don't know why UTC time didn't show on this one that was bizarre so we have that let's go here we put the brackets already so going delete that and paste it did not like it one bit we have to put that all on one line we're on this pain there we go be out I saved it because I hate having it on one line but it's just easier to work with we go up let's go back here paste and hope there we go so now we have it filtering just what we want right and we can use the same exact method we did before so now I can say um what do we want to look for I'm just going to grap for Merlin and then pipe back to JQ and now this is going to show me", "start": 4172.92, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 51 |
+
{"text": "everything that has Merlin in it Merlin PID um what is this oh this is them probably launching Merlin through Explorer but we can see everything with Merlin in it um the parent command line Merlin is doing woral so either it crashed or they spawned woral as a sacrificial process and then ran something uh let's see Explorer where's them running Merlin 1992 is Merlin's command line so let's grab process ID like this and instead of grapping Merlin we can grap that P ID and because we're capturing the parent process ID we can see things that Merlin is running so like um let's see that's probably just a confliction I don't know what that is but here's where Maryland starts we have a war fault maybe they tried to migrate into this I don't know exactly what was going on there but we see C m d. exe being ran", "start": 4294.96, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 52 |
+
{"text": "the parent process is Merlin here and here they are trying to do a mini dump I'm guessing they didn't do double backslashes and treated the backslashes and Escape so this command probably failed um we would want to look at C colant temp el. dump to see if this existed right so let's go over to the mft dump this will be the first time of us using the mft dump but that's going to tell us the files right because I did not see a temp in C uh there is no temp so maybe it wasn't collected but because we have the mft we can see every single file so let's go here um cat 2020 Json we will grip for ls. dump pipe the JQ and we have nothing so ls. dump never got created so we can confirm that um Merlin didn't do like this did not work it could be Defender blocking it but we just know ls. dump never got created and that's pretty much all they", "start": 4375.48, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 53 |
+
{"text": "use Merlin for again we're not seeing um a lot of data because we're only looking at event ID one if we got rid of that select and looked at all the data now we're going to start seeing um the network connections right and all these are know because network doesn't have these lines we have to write a different filter to show that information but I'm not too interested in it because we already answered um the question about IP so we have that um what else could we look at um so let's GP for uh Powershell see all the Powershell commands that were ran on this JQ Dot and right off the bat this looks a ious right bunch of B 64 so it's doing an encoded command if we Echo that b 64 b 64- d we see it's doing um secure string so it's converting really long password to a secure string and then enabling bit Locker so really long", "start": 4445.08, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 54 |
+
{"text": "password is what it is um let's go back here how do I want to show this what pain was I on zero that's it so I'm going to copy this we're going to make a note and I'm going to just call this 70 sysmon and let's see this field is um Powers shell Json like that and we can make a note that let's see encoded PS like that so attempt to set the password this is going to be really long password was that what it was really long password yep and let's highlight that on 70 cismon encoded Powershell okay we name this easy we're done the other good thing about logging like all the places we're getting this data from is when you do a incident and let's say we didn't have cismon data if we found this in another log it helps you identify other things you could look for right uh because all the data is generally stored in multiple places it's just a matter of finding it so let's see we looked at", "start": 4516.0, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 55 |
+
{"text": "Powershell is there anything else um there's this command jab I think that may be the same one we just looked at b 64- d that is uh pre-download that doesn't look fishy okay so we looked at Powershell um what other things would we want to look at in cismon I don't exactly know Defender category time changes so I want to see let's go for the time change question so we know time changes have been happening that's probably not going to be in the um cismon log I'll go to Google maybe Bing would be better at answering this um event ID system change time uh 4616 maybe that the system event ches what is 6416 new external device I don't know why that was shown we probably want to go to 4616 and that was in the security log I think it said um subject security ID so let's see LS grap security dasi security event j. Json so cat this. evtx", "start": 4631.76, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 56 |
+
{"text": "Json it did not parse that's not good um why did it not purse I guess there was something bad in this log file so I'm actually have to pause and figure out um how to do this I guess we can try log dump let's try this command again again chainsaw dump d o running this again wouldn't help there must be something wrong in that and we have to find a different way to dump it that is extremely extremely annoying uh I'll come back to that I need to do research there uh let's see malicious binary time initial access Defender category we can look at Defender LS sc-i Defender do we have the data in here um cat this file this is blank too what the heck um I find a different way to convert these to Json which means I have to go pull up oxd F's blog for this probably see how he does it he's probably laughing at now because I gave him a hard time for not using chainsaw oh let's see time changes on", "start": 4730.6, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 57 |
+
{"text": "the machine so we can answer that later initial access yeah so I'm going to pause the video figure out a better way or a different way to convert these Json things so we can um actually analyze them CU that's weird Okay so o xdf used a tool to called evtx CMD and this is the same place where um a bunch of other the tools I ran were like um the mft parser right so let's see we want to download this version. net 6 and for don't know what net version I have let's just see if this works if it doesn't we'll go down to the other one um guess we want all those files how do I minimize this minimize minimize there we go okay so we have that let's open up CMD and let's see we are going to want to go back in EVT I'm going to make a directory new I guess bad name for it but oh well um so let's do c colon users IPC", "start": 4834.8, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 58 |
+
{"text": "desktop EVT CMD make sure it runs it does uh we want to specify the file and the log let's cat log dump. sh it's going to be in this directory as security.", "start": 4926.36, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 59 |
+
{"text": "evtx security.", "start": 4947.44, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 60 |
+
{"text": "evtx what if we can do the forward slashes I guess we'll find out okay uh we want say Json and then where we output the logs I think so C colon Sherlocks analysis uh what do we call it see call strocks Tik Tock analysis event new um CD new that is not what I expected it is not a evtx file did something happen when I was like unzipping it it is a size zero what the heck happened is that how I in the zip I still have it I do collection C Windows system 32 win event logs it is not did I run out of space nowhere near that I am at a loss for words what happened but now we know why chainsaw did not work um yeah I guess maybe that happened to the uh other logs too Defender replace now we have data there where is Defender power shells here too see we'll copy both of those unless the dash f is that output file did I clobber it let's look at the", "start": 4956.719, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 61 |
+
{"text": "syntax um let's see evtx how do we use this F follow a process that is not it darn I was hoping that's what happened let's try this again hey it is outputting and it's warning us the time goes backwards because we can't trust the time here and that went super fast um I've never used JQ on one of these events let's let's see uh what do we have two oh one's the empty one that's right so cat JQ dot it looks to be what we'd expect we don't have Event Event data like that but that could just be because we're not in cismon logs so we wanted that event code for changing here it is event ID 4616 event ID so let's do JQ dot um select do event ID 4907 174 616 that's event log cleared where' I get 4907 from 4616 oh canot open file um there we go that look like a lot of data I'm just going to grap system time", "start": 5126.239, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 62 |
+
{"text": "was changed I want to make sure this is all the same that is so the system time was changed a lot um if we do a jq- c it's going to put it all on one line so if we just count the number of lines here we can see that can't be correct 2374 times what 2,374 that is not correct okay good um something weird is going on previous Time new time previous Time new time it's going to GP map destruction let's see there may be another event ID for this um Jo 4616 event Code system time change what is the question how many times oh did the power shell script change the time I wonder if we should just look at how many times Powershell was ran but I don't think that would help because this was ran through console like we saw it through console history we didn't exactly see it through um sysmon so let's see let's go back to", "start": 5264.199, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 63 |
+
{"text": "this output um less let's go through each of this we have previous Time new time uh this executable info do we want to look at executable info g-i executable there we go so we have a few things that are not Powershell so let's do jq- c so we put it all on one line g-i Powershell wc- l all but three 2371 is that right okay that's it that is a weird thing but it is useful to know what is setting the time um so we can grab that I guess let's make a note of this um here it is um do a new one we'll call this 75 security log uh bash like that there we go and we'll say time change and we have it so 75 time change reading comprehension definitely does help um I guess maybe it's my fault because I just summarized the question poorly the downside of doing it this way um we want to go in Defender time initial access we need sha one sums and Sid let's go in Defender", "start": 5408.239, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 64 |
+
{"text": "we've now um copied the new log right so I can probably just do star Defender star does that work Maps loaded do we have data I think we do uh do not maybe that's three bites that is not the defender log di C colon Sherlocks Tik Tock collection C Windows system 32 when event logs let's do Defender operational they probably just did not like the wild card that we used because it probably matched two different event logs and the- F is not meant for multiple files is my guess uh put this in quotes what are you complaining about unrecognized argument Defender uh back slash the space are you kidding me I may just edit that space out okay single quotes Maybe does not exist let's make this exist I've had enough you space that looks better you don't have that many event logs but we have them so here's this it's probably going to be", "start": 5520.6, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 65 |
+
{"text": "this copy C JQ dot is this Defender it is okay so let's do a less and what do we want um there's probably Merlin right there we go so we have process detection this is the entry let's go back here 80 Defender log we can say that's Json Merlin detection so let's see um grab this 80 Merlin detection so we have Defender category now time initial access sha one and so Defender probably has sha one some and shot to see we also have user ID protection I'm going to add A- for raw so it stops um double escaping things do we have like sha two anywhere grap d i sha two we don't let's see cp-i glad that is what we want add A- C JQ Dot so what is glad in this this is her desktop I was hoping to get like the user ID crap so we only have one user ID in this log I wonder if there's anything in that other Defender", "start": 5674.76, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 66 |
+
{"text": "log CU there were two right or there just one Defender let's see what are the actual questions Sid time initial access Chaw sums I'm just going to quickly look to see if there's a log file we're missing and then I'll look at Defender more MP log MP detection that is UTF there a lot more data in this log let's see see we want to make sure we view this right maybe strings um D there we go that converts it to what we want so is Merlin in this at all it is I'm going to search for S Dash lowercase s Dash no there's sha extended I bet this is it I just wish it would tell me sha one or sha two g s sha two there we go so this log definitely has it um we have glattus Merlin sha one Shaw two so we can grab this vender log Rel detection EVT Merlin sha log file sha one then sha two so I guess with def Fender it is important to know to look in two different", "start": 5853.199, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 67 |
+
{"text": "locations um because those logs have different things so time initial access we have a few times um let's see victim user Sid so I really want to find that s like the Sid of the user um bet that's in does Secrets dump tell us can we get like Sid local turn debug on maybe maybe that gets it let's see I'm going to example user Sid s. one I want to search everything for S15 CDC gp-r S15 on everything and that could take a while so this is the user class it matches um app data that doesn't look to be it I hope this isn't something we have to just put together ourselves right because the impacket secret stump it did tell us the user ID right when we did um creds I don't think I saved the whole output right when we did secret stump it told us the user IDs because I remember the gold image being", "start": 6045.8, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 68 |
+
{"text": "1001 so we did have that this didn't get anything um I think if we do a grap Das R A and then put a period after each of that it's going to get that utf16 little Indian it does and oh man that is a lot more information so we want to get for what glattus is um what if we did star there then dash one 0 0 that going to be any better this is a horrible way to search by the way but it is a way find. Dame star.", "start": 6158.04, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 69 |
+
{"text": "log we'll just run this GP against these logs um Dash exac grap a s dot dash we'll do S15 do it the same way that did not get anything we put this in quotes nope I could have swore that string existed maybe it doesn't let's see I'm going to go back to the secret stump see colon Windows says 32 config secret stump.", "start": 6220.32, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 70 |
+
{"text": "py Sam security uh system local so she is 103 where is my notes this is okay this was 1001 so knowing that we know it's even begin with like a s-1 D5 then the computer Sid then the user Sid let's add a debug what does debug show us Target boot key new style hash nothing dump.", "start": 6303.04, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 71 |
+
{"text": "p-h user status history there's a display uh DC options times St no let's see g- a i S15 on uh maybe the Sam security grap 13 this is probably it we probably got that a bad way but um this is probably I'm curious let's see that is it um I don't think we got that the correct way definitely check out like oxd F's write up or something um I'm sure he did it a better way than I there but hey anyway works right um so let's answer all the questions what question was I on task N9 let's make sure we have them all grab this paste that's good initial access we haven't finished that question seven invoke time wizard PS1 okay Defender category is this what we'll have to go back to that C2 IP this what name did the attacker use this one T attempt to set a bit Locker password that was really long password session", "start": 6368.96, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 72 |
+
{"text": "ID name the executable that's merlin.", "start": 6547.52, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 73 |
+
{"text": "exe okay we have two questions um Defender category that is weird um where do we pull that from Defender logs so Merlin wonder if there's no slash if it's just no it does have the Slash see one two three four five six seven one two three four five I bet there's two logs and there's probably a different category of win32 like I bet it's the um ran. D but 132 is probably where we're off does Google help we have a different Windows flag for this still just says win 32 let's see find dot- name star.", "start": 6552.56, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 74 |
+
{"text": "log let's go back in the command line log I'm just going to CD to this directory because that space that space upsets me so we can run a strings on this grap dasi m y r DD we keep getting this detection do they want verol that is part of the detection okay um time initial access so let us figure this out um this is when Merlin was Ran So hour year month day year month day we need slashes okay it's not Merlin uh Windows does not use that's probably not a Windows Epoch time um or not a regular Epoch time Windows has its own Epoch is this it ldap that is not it 1606 no um OT converter let's see that doesn't look right either but it is okay um I guess maybe it's like millisecond time right uh Thursday May so where are we um May 4th see two year year year month month day day hour hour mmss does that", "start": 6647.159, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 75 |
+
{"text": "work no uh I lost my page so let's do that so I can see this 2023 month day 2023 04 I think May five I think um no what is it month day I hate timestamp things I'm actually going to pause the video and find a way to convert this on the date command line um maybe I don't have to pause it can I just do this real quick will I do this luckily um which try date- D then plus year year year month month day day does that work percent year let's see how do we do month lowercase lower oh we're getting there percent H percent M I'm guessing a lowercase s uppercase s look at that that is beautiful wrong answer all that work and it did not pay off um what else could we use Let's see we could the previous question was like a session ID so we could probably go off of that I would think we have to go back in the team viewer log do we just have that in our notes", "start": 6790.36, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 76 |
+
{"text": "let's see um Team Viewer participation we a session that's a participant try this because that's his desktop connecting to us right wrong answer was I the Right format believe so month day yeah 5504 let's just go back into this log let's see find dot- name star. log Less on Team Viewer actually got a copy it okay let's see what are we looking for I'm going to go grab this session string is there anything here so we connect 27 handle Block Set is there a join no there we have a connected here so maybe I'm off by a second if it's using this log wrong answer where is this maybe is it up above leave session see five we have some earlier so session ID here um let's see BU log on incoming session connection incoming this is what we should look for GP connection incoming on the log is this it there we go now we have completed this Sherlock hope you guys enjoyed the video this went longer than I expected", "start": 6924.96, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|
| 77 |
+
{"text": "but um I guess maybe it's beneficial maybe I'll do more preparation in the future because that was more painful than I expected um always the simple things that are heard right and I don't say more painful than I expected in a bad way I mean I learned a lot about the logs I thought this would be something I would just Breeze my way through based upon the questions but it was not the case so take care and I will see you all next time", "start": 7122.599, "duration": 0.0, "meta": {"video_id": "IL0cI_GkJxU", "title": "IR Employee Fell for a Call Center - HTB Sherlocks - Tick Tock", "url": "https://www.youtube.com/watch?v=IL0cI_GkJxU"}}
|