um welcome everyone this is our module 3 session on generating threat intelligence from an incident this session uses data from kill chain 1 which will be made publicly available and demonstrates how we can generate in generate intelligence from an incident or intrusion and use that data internally all right advancing the slides um so we will touch base on our objective um and we're gonna iterate we're gonna run through the cti life cycle here um we're gonna start by um touching on our stakeholders requirements goals and objectives um then we're gonna get into the cti the cti analyst's role during an incident and talk a little bit about processing intrusion data and information and the bulk of the conversation really is going to be around analysis and production the research and elements to include in a cti report then we'll touch briefly on the evaluation and the cti lifecycle and the cti program in general and finally we'll wrap things up with feedback and evaluation a critical step in the cti life cycle and cti program in general so we'll we'll touch base on that here as well so the objective is really um straightforward we're going to demonstrate the objective and then we're going to talk a little bit more about the cti lifecycle and cti program in general so we'll uh we'll touch base on that here as well important role that CTI plays both during and after an incident. And moving right along into planning and direction. I'll go ahead and pass it over to Stephanie. Great, so we're going to do an overview of the stakeholders in this scenario. So the stakeholders for this kill chain are our CISO, the CTO, the CIO and executive board. We have people sitting in the SOC, so the defenders, forensics team, instant response, malware analysis, and threat hunting teams. We have SOC management and the IT team. And this phase of the CTI lifecycle is where our requirements are created. So we can see here in this diagram some of our goals and objectives. So we want to identify blind spots in our network, how we're getting attacked. So in our endpoint points network platforms, we want to understand the adversaries capabilities. How are they attacking us? Why? What is their method of attacking us? And we want to also call out explicitly any new kind of defense mechanisms we want to create because of this CTI lifecycle we're going through. So those might be new detections we write, new threat hunts, new purple teams, and so forth. And then we want to look at the CTI team test cases. So those might be explicit test cases you run with your purple team to check if a certain blind spot has been covered or not by your defenses. And while performing research isn't necessarily a stakeholder requirement, the CTI team should be digging into those IOCs to find new information that they can use to inform the various teams. So we can use different tools and analytical methods for this kind of research. And back over to Clay. Clay Johnson All right. So yeah, so touching on collection here. Right, so artifacts will be collected from different teams that are going to be involved during the course of an incident. This will be there, our IR team, our forensic team, and even our malware analysis team, who might get some artifacts from the forensics team. So all of these teams work together. And there might be, you know, some people might be on multiple teams. So every organization, this will look different. Additional data and information will come from external sources through OSINT on existing data. So OSINT will be more than just an open source intelligence. We're going to be data collection management framework. And OSINT includes sources documented in our collections management framework or collection management framework that we've created. But will also include sources that are discovered through the process of pivoting, which we'll touch on in a little bit um yeah and pivoting on existing data plays a critical role during oscent when we're pivoting when we're using open source intelligence we might not know what data source we're gonna run across that might be useful for example it could be as it could be an article or a um an in-depth malware analysis report that we find useful um so during oscent um yes we will rely on our platforms that we're aware of and that we've documented in the cmf but at the same time we're also going to be um performing research that's going to lead us to new data data sources that will pull those in as well i just wanted to note on all of that processing so this is the next phase in the ctf life cycle and we'll be using intrusion data and information for this now every organization will be different and depending on the level of maturity the organization has this could be very limited or quite verbose tips are commonly used so the tip is a threat intelligence platform for processing and open cti is a free and open source platform for human gatherings related up to 30 years just a quote pulled from from their website and yeah it's a great way just to structure store organize and visualize technical and non-technical information about threats um automation of data from a tip to a sim is another commonly implemented process the daily work we do look for opportunities to develop this phase of the CTI life cycle and ideas will come at random times you never know when an idea is going to strike or present themselves but make note document those and you know that way it'll you'll you'll make improvements along the way so now we'll get into analysis and production and for that I'll kick it over to Lucid all righty so analysis happens during an export in during an incident and this could be to support other teams and it it produces CTI that will actually be in reporting and the CTI team can really add value by analyzing OSINT by pivoting through IOCs like was was already mentioned you know an open source intelligence can be visualized and analyzed a lot of different tools platforms and models and I'll have a demo here of a couple of those tools virus total in any run which provide Sandboxing and visualization of IOCs all right I just want to highlight a couple of open source intelligence tools that we can use maybe if we have an active incident and we've been provided some IOCs we can see what's publicly available about those those IOCs and see if we could discover infrastructure or tactics or other things that could help us too help the other team's incident response threat hunting to respond to an incident. So in this case, the situation is that the incident response team has provided us with a domain. A user has clicked an attachment in an email and it really wasn't what they were expecting and they reported it and firewall logs showed that this domain, baseballcharlemagnelegardeur.com, was contacted. So we did a little bit of googling first. Okay, this looks like might be a real maybe French baseball team. So maybe this site isn't infrastructure. That was set up by a threat actor. Could have maybe been compromised. If this is really a malicious site, it's suspicious at this point. We can see an alien vault, which is another provider of open source intelligence, shows that this is probably a WordPress page. It's got this WP content in the links that we see here, the associated URLs. So maybe it's a compromised WordPress site. We'll see. Maybe we'll see nothing when we look at virus totals. So maybe it's a compromised WordPress site. We'll see. Maybe we'll see nothing when we look at virus totals. So maybe it's a compromised WordPress site. We'll see. Maybe we'll see nothing when we look at virus totals. Now, virus total sandboxes URLs and files that people upload and then comes up with a report essentially of all of the behavior from those executions. So if we look here, we can see that the domain itself is actually considered malicious by some security vendors, six out of the 94. As we go through the tabs, there's some more information about the domain. In some relations, this is really the bread and butter here, virus total where it shows some of the behavior and other relationships between this domain and other files. Other files that contain this domain in the file itself. Other files that contain this domain in the file itself. Files that when run, communicated with this domain. But really, the best visualization of all of this information is the one that shows up in the profile. is to use the virus total graph now you can create this graph after setting up a free account and we can look right away and see okay something must be wrong there are in fact uh document files that communicate doc and xls excel spreadsheets that communicate with this suspicious domain now we already have more information than we started with but we can start to look over the uh the graph and we can see that these documents are considered malicious by security vendors by different antivirus engines and we can really start to pivot from here we could find a document that's considered malicious and see what its other relationships are and expand those out these aren't expanded right now so for instance if we expand domains we will see that there's some other domains that get contacted when this document's opened some of them are related to microsoft so those might aren't really suspicious but there's other ones like this domain tango with colette and we can really just continue to expand because um if there's there may be other documents that also communicate uh with with this uh with this domain tango with colette so we're going to find some additional documents so this might give us you know tango with colette that's a pivot to infrastructure uh from and we pivoted from that infrastructure potentially to more um tactics uh to uh abilities uh that that the actor has um based on you know the uh the results but these are executed in the sandbox uh this is already a lot of information uh that we could pass back to the other teams we can really keep going we can look around the graph and see that um there is also this powershell script it's not quite obvious from looking at that it is uh the file name uh that it's powershell script but we could see that is executed by several of these files that communicate domain the suspicious domain that we've been given so maybe our teams are going to start looking for powershell scripts in their in their in their tools their on-premise tools and another thing we can do is that we can take a document that is has relations to this what looks like a campaign and we can run it through any run now any run is also a sandbox it will show it would play back uh well it's interactive first of all when you run the file you're able to interact with it in a in a virtual machine in a sandbox but then after the fact it creates a report and a link back to that session that shows what happened in real time so in this case we can really just look back through all the public tasks to see if a file of that hash was run through any run now we can see there's a bunch of different runs this is a historic uh campaign uh from a um a thread actor lazarus group and uh we can see that um some of these may be more or less complete as far as whether it act the files actually reached out and downloaded a malicious uh payload just and that there could be all kinds of reasons for that but uh this one here um is probably the most complete run and we can see on the right here the exact timings of the fact that when word ran windows microsoft word ran and that exploit of some sort caused this powershell to execute and we can see more information about this powershell itself and all the different events that happened as a result we can get a pcap that's actually capture all the network traffic uh that was generated from this session we can see all the connections here and look through them and see if there's any other domains maybe that we um that we missed when there's actually this towing operations there's another domain here that we actually didn't miss i don't know that we necessarily saw that on our graph over here so as you take bits and pieces that you get from one tool you can put them into another and you can find out more information that you can pass back as a list of iocs that could be very useful to threat hunting and everybody else that's responding to an incident that is my demo of virus total and any run so this graphic focuses on the production element of the phase and this could be a template it's just it shows some of the things that go on a report it's not it doesn't limit you to just these items um you know the graphic section doesn't just show all it's not limp doesn't you're not limited to these graphics uh but you could put things on there like a multi-graph uh or uh just the diamond model uh but this is a good visualization of all the things that would go on the report um and uh you're thinking about well with a complete report does it tell uh or if you're thinking about whether to put something on the report as you're completing it you're trying to ask the question does it help to tell the story so uh one of the things from the previous slide the diamond model for intrusion analysis um this could be used to both track uh contract both fail or successful intrusions and it models the relationship between data points and it helps with pivoting testing theories about how things are connected or how an intrusion happened so in this example the antivirus on a endpoint within the organization detects a scheduled task that might be suspicious that information has passed a threat hunting team that discovers a maldoc a malicious document that communicates with infrastructure which we see on the left of the diagram we're able to resolve that ip to a domain name and that domain name we don't know who the adversary is we're just going to use it to define our adversary so because we had malware love that xyz we're just going to call this cluster of activity uh part of malware love and uh we can do this use this model to perform analysis periodically whatever schedule makes sense for the organization uh the other way to show the data an intrusion is an intrusion summary this is just a listing of all the different uh data points from the previous uh graph same information and um intrusion summaries inside an organization are really the best source of intelligence show what's actually going on with that company uh with you know thousands of attacks going on outside of the organization data even in a single day and the diamond model can help to visualize the data points from these summaries and then you can start to see clusters of activity emerge from this process of going from a summary to a way of modeling or visualizing the data to starting to see patterns the mitre attack navigator this is a web-based tool it's free for annotating and exploring these matrices you can visualize your defensive coverage you can plan for red or blue team activities purple team um and um this is this this visual is a heat map of ttps that were part of kill chain one uh this is an example we there's not every not everything that happened in kill chain one is on here uh not all of the little sub methods are on here um so you'll be able to uh with a re there is a link at the end of the presentation or you can just search for this attack layer navigator and fill this out yourself i will turn it over now back to clay all right excellent thank you so here is an example of a malteigo graph Maltego is a link analysis tool that we can use to pivot and to define additional data points, information and context. This example demonstrates how we pivot from an IP address to a file hash. So the file hash that I'm referring to here is the one that is tagged as sandstone malware. Just made that up. The malware has been attributed to a threat group. We see Stardust Kalima reference there. But it's also associated with another IP address, which has another website or URL associated with it. So all additional context. So now what? Well, the IP used in our attrusion can be associated to other pieces of malware so we can see that. So this should be investigated for additional evidence. The malware we pivot to or pivoted to in this example was not found in our environment. So it is possible that another adversary is using the same infrastructure. Right. So further evidence is required. Right. In order to be able to identify that or apply some sort of level of confidence as well. So I actually added another piece of malware to demonstrate that there are two pieces of malware in this scenario now. So there can be different scenarios that come about. But just wanted to highlight this other possibility where another piece of malware was identified. Using that IP address or that IP address was serving up multiple different pieces of malware there. And another one was identified. And it is attributed to a different threat actor. In this example, it's noted that the limestone malware is has been attributed to hidden Cobra. So for our example and demonstration purposes. For kill chain one. Two different threat groups using two different pieces of two pieces of malware have been associated with that with that IP address. And each piece of malware is associated with a different threat group. Now one thing that is interesting is that hidden Cobra and Stardust Kalima are are attributed to North Korea. So. We could. Say with high confidence that our intrusion is associated with North Korea. Now, for Magnus Tempus. Attribution is not one of our threat intelligence requirements. Maybe it is for your organization. I would argue for most organizations that attribution shouldn't matter. What matters is the intrusion. Right? Who cares? Who did it? How will? How would? Knowing the adversary change anything you do? Would it? I would argue that it wouldn't. Perhaps another discussion for another time. But since attribution is not one of our threat intelligence requirements. It's an interesting observation that we can make. And an interesting observation that we can include. Or an interesting assessment. Maybe that we can include in our. CTI report. Yeah, it could be useful. For other things as well. But. Yeah. Just wanted to really demonstrate. That. Maltego can be used for. For pivoting. Finding additional information. And providing more context. Around an intrusion. Okay. And with that. I'll kick it over to Stephanie. Great. So these last two sections will be about dissemination. Of the information. And. The feedback and evaluation. So dissemination here. In this kill chain, specifically, since all of our teams were involved in the incident. They're already aware of the outcomes. And aside from the report. There's a lot of information. That we need to know. That wasn't involved. And was not a stakeholder. We don't have anyone else. That we have to. Update. About the incident. Right. So there's no other dissemination required. In another scenario. If there was a team. That wasn't involved. And was not a stakeholder. You might want to think about how to. Distribute the information to them. And what they need to know about the incident. So next we'll talk about. Here. Just an overview again. Of the stakeholders. In terms of. The feedback and evaluation. In this specific. Incident. So we had. Or the specific kill chain. We had. The executives. Management. It team. And then. Members of our stock on the right. So next we'll talk about. Feedback and evaluation. And. A method for. Evaluating. Your CTI life cycle. So. Here. During the planning and direction phase. You want to make sure you have defined. Documented. And socialized. Processes. For feedback. You don't want. To be. You want everyone to know how to provide feedback. And you want a clearly defined process for this. You don't. You want it to be documented. So everyone is aware. And you want really ongoing feedback. You want it to be readily. Available for people to give. Feedback to you. And once you receive this feedback. You want to evaluate. Your. Processes. So you want them to be complete. Accurate, relevant, and timely. So we'll talk about these in a little bit more depth. So you want to complete. You want your CTI information. Intelligence provided to be complete. So does it have enough information to generate a proper response? So how comprehensive is the intelligence? Are all of the data attributes present? Is there. Vulnerability analysis? Does it correlate across an entire organization? And doesn't look at like non-cyber intelligence and other events for like a complete threat profile. So this comes back to like your intelligence requirements at the very beginning. Were you able to. Capture all of these and did you deliver? The next part is, was it accurate? So were there errors in your generated intelligence? You know, what data sources did you use? Were they accurate? Was this the most up-to-date information? Or were there information changes along the way? And is it time bound? Is there like an expiration for this intelligence? Sometimes if you, if you provide information about specific IOCs, those might change very quickly. So it's important to note. If it's time bound and how long this will be accurate for. Okay. So now we'll talk about. Is it relevant? And is it timely? So your intelligence has to address the relevant threats inside your organization and be delivered in a way that allows for effective action, right? So does it map back to your original intelligence requirements? How do the stakeholders submit requirements and provide feedback for more relevant intelligence? And is it timely? It has to be produced and delivered quickly. So it can be used fast enough to make a difference. So how is it delivered to ensure quick consumption? Is it delivered by email, et cetera? How long between the discovery of a threat and notifying the stakeholders? And is this, is this intelligence released to the stakeholders as you go along and you learn more, or is it at the very end? Okay. So that's it for feedback and evaluation and I'll pass it back to clay. All right. Thank you. Thank you, Stephanie. Yep. So here's some resources that were touched upon in the presentation. Thank you. Thanks for watching. We joined the conversation on discord here. This is our discord. There's also the DEF CON discord that, that folks should be in. We'll be monitoring those channels as well. So please engage there. And. Wanted to call out that we. We, we did create a module one session and that was released. Prior to DEF CON. So if you're unsure about any of the content in this, in this module three, be sure to refer back to that, that module one session. That is available and up on YouTube. So thanks again, everyone. And look forward to. Engaging in the conversation and see you in, in future modules. Thank you.