Hello and welcome to the Projects Obsidian Endpoint Forensics Kill Chain 3 walkthrough. Before we go through the actual walkthrough, I'd like to draw a little context around what this presentation is. So first of all, what is Project Obsidian? Obsidian is a project that the Blue Team Village has been working on for a few years now. It is designed, we created a fictitious company. We staffed that fictitious company with employees. And then we had the Red Team, the Project Obsidian Red Team, attack that network. And from there we did incident response, forensic examination, malware reverse engineering, cyber threat intelligence, and cyber threat hunting. This presentation today, is really the endpoint forensics part of it. So the forensics team will have several presentations. This one is Kill Chain 3, and it covers only looking at the endpoints from a forensics perspective. To do that, we did collections on the machines in the environment after the environment was attacked. I'll show a little bit of a timeline. We're not going to focus on the timeline because mostly what I want to show in this presentation is the artifacts, how we would look at the artifacts, how we would draw a conclusion from those artifacts, and then a small demo of what it looks like when you would actually do the analysis. Here we're seeing the timeline. We'll see several slides, and I'm not going to really cover these, but I just wanted to cover the kinds of things that we'll see in today's presentation. We'll see some, some bloodhound being run in the environment, SMB scanning, connections from a machine called RDP01 to domain controllers. We're going to focus mostly on three machines. RDP01, which is the source of where the attacks came from, and then some activity on the domain controllers. We'll see some malicious admins being added via automation. We'll see some evidence that the actor tried to exfil some data. Some lateral movement, dumping of credentials via dumping LSAS. And then NTLM downgrade to allow less secure hashes to be dumped, which could be cracked offline. And then security logs being cleared. Excuse me. So let's see the first piece of evidence that we notice in this environment. One of the things that we look at very often, when we're looking at a possibly compromised environment, is the 7045 message. And this one does not disappoint. On the domain controller, dc.magnumtempest.financial, we see PS exec being run on that machine via the PS exec service. And furthermore, we don't see any additional 7045 messages. But this is something that we'll keep in mind as we look more at the data. One of the things that we do when we analyze a machine is we look for files that look like they're hostile. Now, actors don't always name their files obvious. This is a hostile file, you know, .txt. But in this case, we did see several files that, that looked like they could be created by the attacker. One of them was this bloodhound zip file on Pat Reese's desktop. We saw several other files indicating that powersploit had been run, and the invoke port scan module had been run on the machine. In addition, we saw some files that indicated credential dumping. And evidence indicates that the first one was using the task manager, lsass memory dump. And the second, using a technique to use run DLL and execute commservices DLL to dump lsass. In addition, we find some other very interesting on the Brett Solsham desktop, four files called computers.txt. One .txt, two .txt, and three .txt. And diving into those files a little further, we identify that there are a list of IP addresses. Now, this is important because when we look at these files as an investigator, now we have some evidence to decide the next set of machines we should look at. Now, those four files were used by PSExec on the RDP01 machine to automate adding hostile users to the local administrators group, right? We see the addition of combo security, a user ID called Jimbo, a user ID called Hass, and a user ID called Andy using PSExec, and automating that using these four files. So diving into some of the evidence, the first place we're looking here, we have Pat Reese's PowerShell console history. And again, we see that they used the Bloodhound tool to scan the environment, find vulnerabilities in Active Directory. We also see, just as an aside, this lsass dump that we had talked about earlier. This is coming from running chainsaw against the sysmon operational event log. And chainsaw identified this activity, event ID 11, as lsass memory dump file creation. Looking further into some of the evidence, we find in Pat Reese's console history, PowerShell console history, execution of port scan running against the subnet 172.16.50, looking for 4.4.45 being active. Again, looking further at this evidence, we see evidence that the invoke share finder module was used. And looking a little bit further down at the log, we see evidence of Mimikatz being run in the environment to dump the hashes, lsass hashes. Next, looking further at, again, Pat Reese's console history, PowerShell console history, we see this dump file that we had identified earlier. Console history doesn't contain dates and times in it, but going back to the creation time that we saw earlier of this dump file, we can get an idea in our timeline of when this activity took place. Looking further at browser history, we would identify, we collected browser history using Velociraptor, and then taking that browser history, converted it to a CSV file. And then took that CSV file and put it into a reporting mechanism that I use called ACHReport. Using this, and I'll show that in a little bit, we see that this machine reached out to file.pizza and transfer.sh, indicating that the actor wanted to take the data from the machine and exfil it out. We also see it reaching out to interface, and we see that the attack was successful. Now, this one might say that this could be evidence of exfiltration. Interact.sh is actually an out-of-band detection mechanism. It's used when you would, when a hostile actor would execute an attack. And then this interact.sh is used to report on whether the attack was successful or not. This is a typical URL we would see from interact.sh. So the actor reached out to interact.sh and was likely just looking at it, probably not being used for exfil. Looking further into the evidence, again, we see in the sysmon logs, event ID 13, and PowerShell, I mean, Chainsaw, identified that this was likely an NTLM downgrade. So this is at 1909, and at 2054, we saw the actor execute an NTLM downgrade. The idea in an NTLM downgrade is to force the machine to allow insecure hashing, and then those credentials can be dumped, those hashes can be dumped, and they're easier to crack offline. So we see evidence of that activity. And if we wanted to, we could actually look in the user's registry, actually not in the user's registry, in the machine registry, HKEY local machine, and we would find the evidence in LM compatibility level, NTLM min client sec, and restrict sending NTLM traffic. We would find evidence in those keys that the, that NTLM had been set to allow downgrading. Looking at this activity in Chainsaw, we also see further evidence of PowerShell being executed in the environment. Kind of just an added thing. We were really looking at the NTLM downgrade, but this is what you see. You'll find often when looking at evidence is other pieces will pop out. You'll take note of them and then add them into your timeline. Here we're seeing evidence of PSExec. Now this is important because what we see here is the two machines that are being attacked, right? We see DC02 and RDP01. So we see RDP01 authenticating to DC02 and then we see DC02 running PSExec, running the service that allows PSExec. And you'll notice that all of the timestamps are 8.59. So this is a strong correlation that RDP01 authenticated to DC02 and ran PowerShell, I keep saying PowerShell, ran PSExec on that machine. Again, we mentioned earlier that these files found on the desktop, this desktop, computers.txt, 1.txt, 2.txt, and 3.txt were used to automate PowerShell to add hostile actors to the administrator, hostile user IDs to the administrators group. And here we see that evidence in the sysmon logs, again, extracted using Chainsaw and formatted using ACH Report. So these are event ID 1 that we saw Chainsaw identify as Hurricane Panda, but really what we're looking at here is PowerShell being used to automate adding hostile administrators to several machines that are located in those txt files, IP addresses located in those txt files. On the machines themselves, here we're seeing on DC the commands being executed and we see combo security being added with a password of B4BYMETAL. An important piece of information because now we can go to that machine and we know both the hostile user that was added and its password. We also see here later on in this log evidence that the event logs were clear, application security and system. Another piece of added information that we can add to what we know about this machine is we saw, we see now Pat Rhesus in his console history that Mimikatz was run, invoke Mimikatz from PowerShell Empire. And these hashes were used, you'll see the hash being used to escalate this machine to administrator. As mentioned earlier, we see now using Chainsaw, Chainsaw identified that the event logs had been cleared. This would be an important time in our timeline because it would define the point in time where we can really, we really won't know about what happened so once the event logs were cleared, data previous to this would not be available to us in the event logs. We would have to look to other pieces of evidence to identify activity on this machine. Okay, that was a real quick run through of the evidence that we looked at. Actually, not a lot of pieces, or not a lot of artifacts, but a lot of information being gathered. So let's take a look at some of that data in its native form or in the form that, you know, we would review as we gathered information about this machine. First on the DC system, I mentioned that we were looking at the 7045 messages. So here we're looking at the system, event log. In this case, probably the best way to look at this data would be to filter the log, looking for 7045. And sure enough, as we mentioned in our walkthrough earlier, we see the evidence of PowerShell, the PowerShell service piece being run on the domain controller. We also mentioned on RDP01, let's see, we're looking at DC here, RDP01, this is the report tool that I use. This report tool does not do a lot of the, of the parsing of the data. It does some parsing, but mostly it's used to put all of the data, to run the parsing utilities and put them all in there. And it does that in one place. So what we're going to look at is we identified that Bloodhound was running the environment. And here we see that Velociraptor collected the console history, PowerShell console history of Pat Rhesus. And this reporting tool simply shows the, the activity that was, that was in that console history. And here we see the execution of a Bloodhound, and then the file name that it was saved under. And this gives us information on, if we look at that file, when that was run. Now, that's not an indication of the first time it was run, it was, it's really an indication of, of what is available to us. So Bloodhound could have been run five times, four times, it could have been run once. But what we have in this evidence is that Bloodhound was run and that it was run at a specific time. We also identified that a port scan was run. So again, looking in this console history, we identified that, that the port, that port scan was run from, from PowerSploit. One of the things we previously identified was the dump file created by running com, running com services DLL through the, through run DLL, creating this dump file, which would be a dump of LSAT. Now, if we look at that search for SQL and backslash dump, we also find here is when that was run. So looking at RDP01, we see that dump file being created. And in the, in the Sysmon event log, Chainsaw identified this activity and reported it. And we just, we just take that and put it into this reporting format. Another thing that we saw earlier was evidence of at least attempts to exfiltrate data. So looking at the activity around that time, we see the actor reaching out the file, pizza transfer.sh. And if we look a little bit further down, we also see the actor reaching out to webwormhole.io. These are all evidence that the actor was at least interested in exfiltrating the data out of the environment. One of the other things we saw, we mentioned earlier, was an NTLM downgrade attack. So here, looking at the Chainsaw output, we see what we had seen earlier, which is the NTLM, Chainsaw identified this as NTLM, net NTLM downgrade. And again, we could go to the registry itself if we wanted to have some corroborating evidence. We could go to the registry itself and show that those register keys had indeed been modified. Furthermore, on DC02, we also identified that PowerShell, the PS exec had been run on that machine also. We see that in an event ID of 11. So let's look for event ID 11. And we saw that activity at about 2059. So as we look through this data, we go down to 2059. And we see that we had a lot of activity at about 2059. And we can see that, all right, that PS exec had been run on this machine at 2059-057. All right. So looking further at our reporting tool, we see on RDP01, this evidence on RDP01 that PSExec, and again, this is, you know, just what we had seen in the screenshot, but here we're looking at the evidence itself, Event ID 1 identified by Chainsaw as PowerShell Exec automating the addition of combo security to the administrators group on that set of IP addresses in the computer.txt, 1.txt, 2.txt. 2.txt and 3.txt files. As we look at this data, we could then look around it and see that the actor had also done some discovery of the environment running WhoAmI and other activity. Again, we see the dump of LSAS. So looking at this data in context, we can identify the text. We can identify the times that this activity happened, and we get a better idea of sort of what the actor was doing on this machine. And that can help us draw conclusions about what the actor was after, what they were interested in, and what they accomplished, and sometimes what they didn't accomplish. So looking at the domain controller, right, we'll see the evidence that that activity was successful on the domain controller. So let's do a find, and let's look for combo security. And here we see that on the actual machine that net user combo security was run. And again, we're able to draw some context around times and activity on this machine. Moving back to our RDP01, we also saw the pass the hash escalation or elevation activity. And again, looking at Pat Reese's console history, PowerShell console history, we don't have times, but we do have times. So look at RDP01. You have a good picture of what the actor did, using PowerShell. Not entirely, not all the things the actor did. But the activity that the actor did on this machine, when using PowerShell. The other, the last thing we're going to look at, of course, is this evidence that that the actor cleared the event logs, we can see not only the execution of that command, oops, that the event logs were cleared, but we can get an idea of exactly when that happened by looking at what is left in the event that box after they're cleared. OK, so recapping what we did on this machine to analyze it and to draw some conclusions. We had an environment that was compromised. We ran Velociraptor. We ran Velociraptor on the machine to gather telemetry and artifacts. Sysmon was running on the machine, so we used that as the basis for a lot of our conclusions. We ran Chainsaw on the machine to look at the event logs and identify hostile activity. Chainsaw uses sigma rules to identify hostile activity. We took that data and we put it in a reporting tool, ACH report, to put all the data in one place to make it easier to kind of draw context around times and activities. And we also use a tool called MFT dump, which takes the MFT, which Velociraptor collected, turns that into a comma-separated values file, a CSV file. And then ACH report. And then ACH report. And then ACH report. Can ask that file questions about files that are identified on that machine. And this is where we got some timestamps of when those hostile files were created and how they were created, what tools we used to create them. That concludes our walkthrough of Kill Chain 3. That concludes our walkthrough of Kill Chain 3. That concludes our walkthrough of Kill Chain 3. To learn further about Project Obsidian, about Blue Team Village, please join us on our Discord channel. Join the conversation. We'll be releasing all of this data as open source. We'll be providing it to the community for lots of reasons. One is so that you can walk through the data using your own tools or the tools we used to learn more and to gain some hands-on experience. and to gain some hands-on experience. of how your workflow would go when you're analyzing data, you're learning to analyze data. The second thing is that we hope that this will be used by people with new tools. So as new tools come out, new Blue Team tools are always coming out, this data can be used to test those tools to see if the same conclusions are drawn or if those tools find other information that we may not have uncovered. And also, you can join the conversation on Twitter. We're at Blue Team Village. Or if you want to learn more about the Blue Team Village, you can go to our website, blue team village.org.