text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
okay so the computer right there chainsaw rule Shadow okay so the field is computer and that is the event system computer then name Dump location and I don't know if this is going to be accurate or not um we could just do the entire event data but that field is a little noisy right I don't want to dump all of this so I...
1,358.2
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
system event ID 327 and then Event Event data data 4 and then um we'll say NTD s.d and I discover you could do wild cards by just like looking at the previous rules right when we did that gp-r um and then we'll say snapshot path because I don't want all that um noise so do this and then we'll say dollar snap like that ...
1,453.799
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
there we go we have The Dump location so that was a quick um fet into creating signatures I don't know if this signature is good um after this video I'm going to spend more time learning more how to create the rule file so if you um are watching this I would highly recommend going to github.com um what is it I forget e...
1,531.72
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
it before well it didn't really save me any time I was hoping it would be easier to just dump this without all the verocity but um oh well we will paste this in and see if it works submit there we go task three when was the database dump created on disk oh well that's easy we had this so going back here let's grab this...
1,599.44
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
next question um when was The Dump considered complete and ready for use is that this time awesome so it looks like the dump gets created and then it probably takes a couple seconds or minutes for it to be considered complete so we want to look for when the actual dump started so I'm going to look for like the file cre...
1,716.679
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
what was the path TMP okay we got three events that have the full path so this is probably the correct way now let JQ dot less and let's see so the first event ID is 330 and we have the data here then we have what event ID is this 325 data here so we want to look at what these events are so event ID 330 let's see es NT...
1,800.84
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
which would be nice um detached is that so that's nice to know so 325 IS started so I'm going to go and edit my hunt command actually so we can CP this to be 325 as well and you kind of want both because maybe it never detaches um so I would actually do both so we do active directory dump begin uh that is all good 325 ...
1,920.48
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
that user Event Event data Target username did I screw that up oh that was probably in the um thing we copied from there's no username in this log at least I don't think do we have a username doesn't tell us who did it I don't see nope I don't see a username is is process ID useful nope 0 okay so that's good let's go t...
2,018.399
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
it's relatively like it says the source I don't know why chainsaw calls it something different but that's the answer so that one is a little bit tough if you don't use the native Windows Event log viewer but we'll just handwave that because I've ran into that issue before so let's see when ntds util is used to dump the...
2,126.16
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
caller process name and then Target username group and whatnot um username can also be group names so we have backup operators there so we want to look at where the process name is probably going to have um ntds util right so I'm just going to do a grap ntds there we go then we can JQ Dot and now we have all the ones w...
2,195.88
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
login session started okay so this one let's see um let's grab everything here and there should be a log on ID which is this and we're going to look at for all events with this so JQ dot let's do less and let's see um I'm going to change up my query a little bit let's get uh a list I'm going to say what do I want we'll...
2,263.8
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
system time create tribute system time there we go uh let's see if it's this time the very first event I don't think it would be but it's possible it is so we could look at the first event because that's when they like attempt to log in right but normally that's not the event I go off of it may be the same exact time j...
2,368.68
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
not say and there we go so Windows Live login that this is again that task I am not getting the log I expected I thought we'd be able to see like a keros ticket let's see I may pause the video and come back to this if I don't see this um TI It opt is that it do we get lucky with the login session maybe the login sessio...
2,444.2
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
000010 um that's probably going to be rubius if it is uh 5 8 and then all zeros I think that's going to be impacket um sometimes you have this bit off so it be 40810 z um but the key things I look at is right here this one being a zero so 4080 would be rubius um again impacket this would just be I think 508 is impacket...
2,541.72
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
this put this in we can see um all the ticket options so name chaliz renewable okay affordable and renewable that's one of the more common ones rubius doesn't do that flag I believe memory serves right which gets rid of this field um and impet they do a five there and nothing there and they do proxy affordable renewabl...
2,624.76
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
not necessarily be suspicious Windows does rc4 a lot by default um ZX12 this would be as um generally you see attackers using the rc4 quite frequently because when they do a curb roasting attack they want to go ahead and crack it so they request as weak of an encryption type as possible so it cracks faster right you co...
2,702.319
0
{ "video_id": "PXWrCK7bgB0", "title": "Log Analysis and Chainsaw Rule Creation - HTB Sherlocks - CrownJewel2", "url": "https://www.youtube.com/watch?v=PXWrCK7bgB0" }
what's going on YouTube this is IPC and I wanted to take probably 30 45 minutes to talk about this tunable exploit that came out in early October and if you've been living under a rock and don't know about it it is a local pesque in GBC so it impacts a lot of Linux dis like uh Fedora 3738 Ubuntu 2223 Debian 12 and 13 u...
1.079
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
non-trivial um the second thing is hopefully there's not many untrusted users on your l Linux machines uh it's not like Windows where every employee gets one Linux hopefully only the admins do and you trust those users anyways and the limits like you're not going to get social engineer to gain access to Linux so like t...
55.039
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
access to use like SSH tunnels or chisel so again I did not really need um route access on Linux whenever I did pen testing not to say that um having root isn't fun you can do a lot of fun things like persist in odd locations back door the Pam module so you log all the passwords of users logging into the box but typica...
106.36
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
with what dis are impacted it affects the dynamic loader of GBC and it does it through this GBC tunable environment variable if you don't know what a tunable is I don't know the exact purpose of it but it lets you modify how G LIC behaves without having to recompile anything right so if you want to change like how Malo...
157.28
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
put into it so a disclaimer anything I say could easily be wrong there's going to be zero editing in this video hopefully not even a single cut because that means it just takes me longer to get this video out there right so the main thing I want to point out is the technical detail post because this is where all the go...
210.599
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
network card disconnect so it did not update once it was installed I removed the unended upgrades package and then connected the Nick and enabled DHCP but if you don't want to do all of that then there is a hack the Box machine called 2 million that is free for everyone to play that um is vulnerable so we can also use ...
268.479
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
yourself um again I'm not going to read it all because it would take so long uh the links would be in the description below but let's go through this um this is one thing I did like that they pointed out so this whole piece here is talking about um all the things they tried but failed because they couldn't get an explo...
331.16
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
the program but they did find one exploit primitive and that was it used a minimal calic which let them allocate some memory in a very malicious way we should say I guess I don't know exactly everything that goes under the hood but I you don't have to to put out good mitigations and these links over here are going to b...
381.72
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
into detection in probably 20 minutes I think I don't know um so let's see how the xlate works is they essentially poison environment variables and eventually land into this Lino dtrr path which is the library search path this is how your computer is going to know where libc or LD preo libraries are typically um this e...
432.52
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
are a few binaries we can't use like pseudo because um it specified its own elf run path user lib exact sudo which over Ides this environment variable so even though we write this later on in the program it will reassign that variable um chh and passwd on Fedora because they're protected by special SE Linux rules and I...
499.759
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
have that saved I did not so let's save it uh let's move it here so move downloads gnu Acme to this directory and the first thing we should do is kind of just look at the source to analyze what's going on um I'm debating if I wanted to use Visual Studio code we'll just do V we'll do v um so the first thing we want to d...
567.279
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
this is going to be I want to say like the LD build ID so this is like the version of GBC maybe that you're running and then this is a magical offset so we're going to show you exactly how to find these magical offsets because this script does make it easy for you to do that and then you can kind of just look through t...
623.92
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
check if aslr is enabled this is the EXP of it sending the environment variable builds Banner architecture and I don't see anything malicious here's where it's going to write the patch libc again it's getting libc Main and then putting our Shell Code and if you are root or I don't think you have to be root you have to ...
683.2
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
so we can copy and paste a bit easier and I'm going to grab this Shell Code um I guess we can do the exit code first because it's smaller it'll be quicker so if we look at Exit code how's it use it I'm pretty sure this only goes if um aslr is not enabled it's going going to set the Shell Code to be exit code if aslr is...
756.279
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
going to create a c program let's just analyze it first so I'll comment those out and then we can write the Shell Code so if I run this shell code is going to create the file shell code.
823.199
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
out which is just that um so let's open up gedra so we can analyze this real quick because this is really small super easy to analyze uh we could make this a c program and then step through it in GDB but let's just do it this way so create a new project not going to really care about the name of this opening this I'm g...
836.759
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
can see it pushes 66 then Pops that to the RDI register then pushes uh 3C pops it to Rax and does AIS call so let's convert these uh let's see is there a convert convert to unside decimal so it's going to put 102 and convert where was that uh comments it may be faster if I just like print F this function is convert lik...
914.24
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
is second argument is RSI third argument is RDX rcx R8 and R9 um the main ones you need to memorize probably are RDI RSI RDX because they're it's pretty rare for a CIS call to have more than three arguments um so let's go back to this we are at CIS call 60 and that is just going to be CIS exit and then the error code s...
999.639
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
let's go to the next Shell Code I just like copying out of less more than um them so that's why you always see me hopping between the two uh that is 32bit we want 64bit and this one's going to be a little bit harder to um analyze just because it's larger uh let's see let's go back to Shell Code to CP and that's going t...
1,085.76
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
out2 analyze it sure go to the top you could right click and do dissemble or just hit D and then it will go in um the decompiled output not the greatest you you see it does three CIS calls so we could go and just see which CIS calls it does so whenever we see the CIS call go up to where it's uh popping Rax uh 75 that i...
1,154.12
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
which is 101 and then it's going to uh put those into EDI edx ESI and then call the set user ID to be that but how um set uid files work it goes by the file owner typically so as long as the file owner is root then then it'll escalate to root privileges I believe um so we figured out that CIS call and then we go here t...
1,236.159
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
I'm going to go Shell Code to C we're going to not write it to a file but I'm just going to print it to a c program so if now I run this we have it and I'm probably going to put this on my um CTF scripts repel so if you just go to github.com then like CTF scripts you'll probably find all this code so you don't have to ...
1,316.72
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
will make the program and then we now have shell code. elf that we can run with GDB and then you can do a l to show the source code and now we can just do a break point on uh 13 then we run it we broke and soon as we hit this call RDX now we're into our Shell Code right so we're pushing 6B to Rax if we print f um let's...
1,380.84
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
see it the first one I think was RDI you saw what it was there we can run we go up RDI is now set to 1,1 so it just sets all that and then we're pushing 75 uh popping it to Rax calling that CIS call and again uh if we print F on this it's 117 so that is setting the user ID and then we run it and here is where we get in...
1,473.24
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
let's just double check that uh Echo DN this wc- c um n oh we probably have an extra slash yeah it's eight I don't know where that extra slash is coming from but I'm pretty sure it's just eight and that's what it is then we pop RSI and we can kind of see what it's doing we get to the CIS so now what we want to do is ex...
1,556.32
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
x4g X I think we can see it just goes to string and then aull thing since this was an array it goes until the null bite since we only have one argument which was sh we just see that here if there were two arguments you would see another address here and then a null so we know there's just one argument and then the last...
1,642.64
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
Awesome everything works here uh remove protected file sure so now let's go over to 2 million and just see if this exploit works so um let's see before I do that I want to do one thing um I think that's the root password it is so if you didn't know on most of the newer hack the Box machines I say newer probably in the ...
1,724.08
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
run it and we can see it already had the build ID here so while that runs if we look at it we have the build ID and it's using 560 once we exploit this once and go over the detections I'm going to delete this and we're going to figure out the um magical offset so in Cas you come across a Target that is vulnerable but d...
1,805.84
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
the box so it does go a bit quicker and here we go we have a shell I do an ID and I am root so that is awesome so let's go ahead and um shoot I should not have exited I do want to be um again hold on there we go so let's look at it we want to disable aslr so if I do an echo Z to proc CIS kernel then randomize VA space ...
1,867.399
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
I think I may oh did it find it uh it came across something close uh but here we go we have working offsets so any of these offsets will actually work it doesn't just have to be one number I don't know exactly what this offset is but um you can use it so let's just go I don't know what it was 61 elf so it was using 560...
1,956.48
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
we have added that build ID and this I need to enable aslr again type in the root password Echo one to proc CIS kernel randomize VA space Python 3 run the X exploit so hopefully this goes somewhat quick and we will see the um root code um it's going to really be bad if it never works and that is a bad offset um that wo...
2,038.44
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
don't know what click House Server is is I want to say fish is like a um minimal jail terminal I don't know exactly what it is I've definitely come across that before but never click House Server but anyways because the public PC uses Su um elastic actually thinks it's a credential brute force and then Flags it because...
2,125.4
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
here they're looking for a seg fault um from the loader right so we have kernel so in the kernel log seg faal and The Meta Library starts with LD Linux so they have a suite of detection the lp collection so this is local Prest collection of just a bunch of detections all free so I would definitely recommend using crowd...
2,182.16
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
tunable exploit if we go over there we can see what they are adding and this is a cool one it's going to look at the environment variables and if you just add this rule it may not work you actually have to configure the agent to log or look at environment variables and it does it specifically by looking like you config...
2,241.4
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
sensitive but now that they have it if you are looking at environment variables it's loging process and ver GBC tunable and it says runs five so I'm guessing if a program runs five times in a quick succession with this environment variable then it will flag right so now that we have a shell we could analyze it ourselve...
2,297.8
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
one event and I can pipe it over to JQ and that was me doing rm-rf I could have sworn we should see the Python program this should have logged the file create of libc and I can't really go over this right now uh the video would be much longer but hopefully later in the week I find some time to look over my audit D rule...
2,379.319
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
test that you're logging it it's very easy to miss it right so definitely there is importance in validating your logs but if we wanted to detect it another way uh remember the Kern dolog flies a bunch of seg faults because you do crash the program a lot hoping to get it working so this is the foolproof way to detect it...
2,431.92
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
you like this and want me to do more deep dives into just detecting it maybe figure out why aut didn't log it show some demos of um elastic and crowds detecting it whatnot let me know what you want to see take care and I'll see you all next time
2,485.4
0
{ "video_id": "1iV-CD9Apn8", "title": "Looking into the Looney Tunable Linux Privesc CVE-2023-4911", "url": "https://www.youtube.com/watch?v=1iV-CD9Apn8" }
what is going on YouTube this is IPC and we're going to be going on the defensive today because hack the box now released Sherlocks and I like to is the first one to retire Sherlocks are investigative challenges geared towards blue teaming and deer which is I think digital forensics and uh inant response um and instead...
0.359
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
that's going to prevent us from like opening the memory dump in volatility and using all those plug which would be amazing right because volatil would be able to give us like screenshots of what programs are running there's so many cool things we can get from volatility unfortunately we don't have it um we could click ...
53.879
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
we suspect the attacker may have changed the password for or service account please confirm the time this occurred um which protocol did the attacker use to remote in another time user agent used to access the webshell what is the instance ID of the attacker what command was run by the attacker to retrieve the webshell...
105.96
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
and deployed this flare VM but um to get things started I don't know exactly how I'm going to structure it or well structure these videos because it's very different than what I'm used to but uh we'll go along I put all the questions as individual files here and the reason why I did it is so we can link when we get um ...
161.64
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
files we have to identify what type of files we have and to do that I really really hate just clicking around in goys and I'm really familiar with like the Linux command line so I'm going to load up Ubuntu on the WSL I think that's windows subsystem for Linux so I just have all my familiar tools here even though I'm on...
210.28
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
Json is this going to be like a proxy web server and we have all the HTTP request if we look at it uh does not look like it I mean we have a lot of weird things and things that I don't think are installed on the server itself right so this is probably going to be some config of some tool that was ran to download things...
264.72
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
and put a bunch of files here and it's just used like on a suspected compromised machine run Cape against it I think to uh triou it don't know um so I'm going to skip it and we're just going to go look at this upload directory right off the bat I have a move it dosq if I look at it it looks like it is a MySQL dump so u...
327.96
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
out and then let's see what we have so we have move it transfer logs so let's create a new thing logs move it and then what else do we have this inet Pub log is probably going to be I access logs I'm guessing um let's look at it real quick I can't do shift insert yeah that is I logs okay system 32 so we do have system ...
396.639
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
hives um and we can get if we scroll up oh my history is not there wow pipe it over to less there we go we have a few credentials so let's create a new file um I think contr n yep 10 doing credentials and then I'm just going to paste all this here uh wonder if I do bash if it makes it pretty no um and I have to move it...
481.12
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
see the move it service account one was what did the attacko change so I changed his password to so we could probably go to like hashcat and try to crack this password um I don't know that and then 217e this is going to be password one with like an at and um stuff this I've seen this password hash so many times I've re...
555.839
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
think none of those maybe we should do a-i to make it insensitive um maybe do dump so I don't think we have any of those if we did then that's also things we could um do analysis with because it's more memory dumps and volatility would work with it so what else do we want to look at um I'm going to look at evtx and I d...
640.04
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
any let's see oh uh console history so this is Powershell logs poot logs okay that's good and all this I've never I've always been out of that auto directory we haven't really gone in NTFS so I'm manually going to look at that and we have mft so this is going to be the master file table for the NTFS dis which is just g...
681.68
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
mft C uh CMD if we search this it'll probably come right up on GitHub Eric Zimmerman it's this tool so this will let us parse the mft and put it into files if you do it in a CSV format um there's a timeline program that's really good do they talk about it here I forget what it's called I think it's like timeline Explor...
754.8
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
Sherlocks um let's go Mount C Sherlocks maker um analysis Mak mft there we go we'll do c V to that same location Sherlocks analysis mft so this will take still a little time to run that's why I want to do it ahead of time so when we get to it we have the data it's kind of like end map right or any type of Recon tool yo...
845.48
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
analysis or no uh triage uploads grip Pub on files. out and let's go into this directory okay so if we C this file we have a lot of data and one of the things um that's interesting is we have two IP addresses we have this 1010 025 and 10255 2543 if we went over to Google um let's see see is log format there is I think ...
923.44
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
on this right so so the first thing I want to do is um filter out all the comments so any line that begins with a um comment I don't want to see it so I'm going to do a g-v and then escape the comment on it and now we don't have those so now let's see um let's get all the server IPs so I'm going to do a a and then we'r...
1,017
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
IPS so let's do the same thing except we want to count to the second IP address so 1 2 3 four five 6 7 8 nine Al print n there we go and let's see I'm just going to get rid of all that that there we go that looks better okay so I'm going to guess the attacker is either two or three um but again I don't want to jump the...
1,112.6
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
to guess the attacker IP is whoever used nmap right so let's grip end map on this and we see it is 1055 2543 so I'm going to go over to this paste that and then I'm going to link the file so we'll just do a double bracket 20 IIs logs and then I'm going to do a um carrot and we will say um user agents right we could als...
1,231.919
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
ASX could do another sort we probably should have done another sort afterwards so in our notes everything was ordered um oh well so one of these is a webshell my first guess is going to be machine 2.
1,323.36
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
aspx but what we could do is also join the IP address uh that was I think 9 it was so now we have the IP and the file and we see Machine 2 was only accessed by Local Host so let's just GP on 2543 since that's the attacker's IP and they've only accessed three files um move. ASX human. ASX and guest access if we um looke...
1,339.84
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
move it files so let's save this and say um do that and then files access accessed by the attacker go here move.
1,421.36
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
aspx and then again link it to the I logs and it does put links here you're free to delete them on these Pages if you don't care about knowing uh the page linked the link will stay active in the question and links here so you don't need whatever it creates here so we got the first two we want the attacker user agent um...
1,444.52
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
aspx on this log and we're going to have this Tacker user agent and again copy paste it in here uas that accessed move.
1,479.399
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
aspx okay so now we're starting to make progress um date attacker access something datea of aspx webshell these I'm probably going to um get the mft at least the data of the aspx webshell let's go back to the actual question on four CU I did not take good notes on what that actually means when was the ASX uploaded um w...
1,507.08
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
can see everything that Ruby is accessing it's going to this dll then guest access whatnot so that is going to be Ruby user agent Ruby okay and since we know it is Ruby I would also um go to Magis blit framework GitHub and look at the move it exploit let's see where is the file did they do like move underscore it no wo...
1,604.72
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
make against moveit api.dll I think here we're deleting things we are um doing an SQL injection to create a user and we also have inst ID so um metas sploit send sets the instant ID so let's look at inst ID let's just grab it see update move it what if I do A- I there we go the instance ID is probably going to be 1 two...
1,758.44
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
I think it was so it probably accesses the dll first right or something let's just search for that dll so there it's accessing the dll with Ruby then it goes to guest access then it does V1 token folders upload and we see all of those here right they're not in that exact order but all the URLs are there so we know what...
1,905.08
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
agent date accessed uh user agent to access the webshell so we already had that one met exploit modules is logs FES accessed user agent there we go one there we go this is it and we can link it this is 20 is logs don't know what the title is files access uas there we go do ZZ so we need the password instance ID we thin...
1,990.44
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
this I don't see it has file IDs so this is going to be something we get out of the database or um the mft log file right because we have that we can just put it here okay so let's look at event logs I guess that's going to be the next logical thing we do so where is that grap evtx Falls that out we are going into this...
2,122.32
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
let's say we could probably just do DH it has hunt with Sigma rules we can search we can just dump it um hunting is pretty cool I can show you real quick so we could do chainsaw hunt um then I want to say we need A- s in the sigma directory uh so I have that opt Sigma the instructions for installing chainsaw talk about...
2,238.76
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
rules we did the mappings we can specify the out file and oh we need to specify the actual file I think it's- F EVT what did I call that EVT dur um Echo EVT dur I did call that so it's no dasf we just specify EVT dur and it's going to load every event log in this directory which it's probably going to be a bit much and...
2,304.599
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
Json format um I'm going to guess I could type it now I did not expect that to take so long so let's see we did chainsaw and then we want to do a dump and then the log file so I'm just going to copy this because my aable is not in this pan and we can say D- Json and we'll call this security.
2,399.319
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
Json maybe we have to put-- Json before this uh unexpected argument TR saw dump path wonder if it defaults oh yeah I wonder if it defaults to Json maybe- o security.
2,439.16
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
Json so it's also dumping that um maybe I'm going to pause the video and we'll resume when these dumps are finished something definitely odd happened there dump Dash oh we just specified D- Json okay there we go so yeah I'm going to pause the video let this chaina finish and then we'll go over the results so this has b...
2,475.44
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
or mft cmd.exe and we have a CSV file and there's like a timeline viewer program that really likes this CSV format um let's see l-s CSV I don't like the CSV format I find it hard for me to um do a lot of searches right and if we used a guey yeah that would be great but the Json format is really great as well so if I do...
2,555
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
accessed uh uploaded aspx and file size of ASP I made mistakes when I was doing that right that's correct for when was okay so we want to look for I think that was move. aspx so I'm just going to gra for move.
2,632.64
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
aspx on the Json file and there are two hits so let's pipe this over to JQ and I should have done a less and this is going to show us the two files or the two hits right this one's probably a file create let's see file name I don't know what the do compile name is uh maybe this is uploading to the tempter and then it m...
2,660.4
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
this will be move.
2,766.76
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
aspx and let's grab this full Tim stamp go here and This is 40 carrot move aspx there we go so we have a link straight to that forensic artifact we can say that's now done file size of the ASP webshell if we look at the aspx it does have file size oh shoot I did tail das1 head-1 and it's slightly bigger um do we have x...
2,772.48
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
aspx and we did head-1 and we probably have to update the time stamp right created and modified the same time that is good there we go okay ASP webshell so if we look there was a file size this is400 um that other one had a very small file size I forget what that was but that's what tipped me off I did the wrong thing ...
2,855.839
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
ASP let's see does have two this isn't going in that I'm guessing ASX like when you access the ASX file it compiles in and puts in that directory and then runs it or something that's what the behavior looks like to me okay so now we have this one we have file size 1362 on both entries see we think one may be a delete s...
2,930.24
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
ASP Json I'm guessing I clicked somewhere it only highlighted one thing uh oh oh I have the head dash1 after JQ dot that's why I was only collecting that so let's move head das1 there okay F size 1362 link it there we go and we've completed that question so we need the password change protocol used to attack remotely s...
3,013.64
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
and we can grab this one so we're looking at the administrator and they've only ran NT stat so that's not interesting and I would probably take notes of that in my um obsidian notebook but if I took notes of all like the things that aren't super interesting but that I've looked at um this video would go many more hours...
3,116.799
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
password changes here string within the header we can say Powershell and um let's see interesting directories so if we were cleaning it we'd want to um make sure these directories are off right um let's just do artifact directories or something it's not a good name for it uh we need to double backslash and the other on...
3,213.839
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
so I think I have Maria DB installed I think I just did a let's see install history grap install um I ran this command pseudo install Maria DB server to stand that up right let's do pseudo system CTL start my SQL Server is that it my SQL there we go pseudo my SQL show databases create database move it use move it let's...
3,313.88
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }
um let's see I want the time see I definitely want time uh let's that's log time then inst ID username IP address uh file name folder path that may be good so let's select those so if I grab this paste awesome so we can see um I guess three instance ID 0 36 36 and 1 2 3 4 um they're all from RP address I'm guessing it ...
3,429.68
0
{ "video_id": "iqu5SkdK8_w", "title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To", "url": "https://www.youtube.com/watch?v=iqu5SkdK8_w" }