start	end	text
0	7220	Alright, let's move on with the next talk, which is brought up by Mohammad Nabeel.
7720	13240	Mohammad Nabeel is a PhD and is also a cyber security veteran.
13340	18840	He has leading efforts on proactive detection and graph-based intelligence research.
19560	25740	He is an open source enthusiast and a member of Apache Software Foundation.
25740	28540	So it's really someone who's special that has joined us today.
28540	32560	He also works with Palo Alto Networks, so you all know who Palo Alto is, right?
33380	49400	His talk for today is CTI Agent Automated Battle Cards from CTI Reports, where it comes across an agentic system to automate the collection and synthesis of cyber threat intelligence from threat reports using LLM agents.
49400	52240	So please give it up for Mohammad Nabeel.
55290	57120	Hello everyone, good afternoon.
57120	58180	Can you all hear me?
58540	62360	So thank you for the kind introduction.
67890	71330	So today I'm going to talk about CTI Agent.
71330	81080	It's an agentic system that takes CTI reports, these are threat intelligence reports, and tries to come up with structured threat actor battle cards.
84250	91150	So as you all know, the public threat intelligence reports are very useful, but there is a problem.
91150	107710	They are written in natural language and it's very hard to automate and identify actionable insights, mainly because they are in natural language and also use different modalities like videos, images, and whatnot.
107790	115130	And also sometimes these threat reports have conflicting information or sometimes they have incomplete information.
115130	118870	And that makes it difficult for us to consume and enforce.
118870	123030	And the third bullet point, it's even more harder.
123030	128430	Most of the time these TTPs, Techniques, Tactics, and Procedures, are implicit.
128430	132230	They are not listed in the threat report.
132230	135870	You have to infer based on the domain knowledge you have.
136210	142250	And because of these reasons, this is not only time-consuming, it's error-prone.
142250	157030	In this work, we are trying to address these points and try to come up with an agentic solution which will help us to take these ambiguous and somewhat vague threat reports and come up with structured better cards.
158510	162430	So at a high level, this is what we are going to do.
162530	165270	I've broken it down into four steps.
165290	169810	In the first step, we'll try to collect as many threat reports as possible.
169810	174490	And once we have those, we'll try to group them by the threat actors.
174490	181970	And once we have those groups, we will be using the agent, the number three bullet points, to identify better cards from that.
182330	190410	And once we have these better cards, we want to identify the new IOCs associated with these better cards.
190410	199410	Because the reality is, by the time these blogs get published, or threat reports get published, the IOCs in them are already outdated.
199410	205110	Because there is a time frame between writing a blog and getting approved and published.
205110	214450	And so we want to have a system, once we have this better card, we want to automatically update with newer and up-to-date IOCs.
217350	235270	So for this work, we'll be using reports from trusted sources, like security vendors and all the investigative journalists who are into cybersecurity, and also repeated GitHub reports and repeated Twitter handles.
235290	244890	The main reason why you want to use good quality data is, if you start with bad quality data, what you will end up is going to be with a lot of noise.
244910	248170	The same machine learning principle applies here.
248170	250870	If it is garbage in, it's going to be garbage out.
253550	260830	And from each of these reports, what we are trying to do is to identify these structural entities from these reports.
260830	270930	The summary of this report, and the campaign it is representing, and the threat actor it is about, and the indicators and the TTPs.
272790	284810	The TTPs are grounded based on the MITRE, the famous MITRE ATT&CK metric, which has 14 tactics and 300 plus techniques.
287110	296970	And our goal is to come up with these kinds of reports, which will be consumed with much less ambiguity.
297490	310990	For each threat actor, we will have one battle card, and it will include the threat actor summary, and any aliases, location, and it will have one or more campaigns that the threat actor launched.
311450	321330	And for each campaign, we will be identifying the IOCs, the TTPs, any tools they use, and any binaries they use for the attack.
324880	327220	So now we have the reports.
327220	332060	Once we have the reports, we want to have a mechanism which allows us to group them.
332200	341920	So this is where you use unsupervised learning to identify from a list of random items, to find some kind of a grouping.
344140	346740	We identified two strategies here.
346740	352560	The first one is to take the documents, and take the embedding, and then do the clustering.
353180	361460	Assuming that you guys have some basic information, knowledge about machine learning, what this embedding is, so I'm not going to go into details of it.
361640	377760	And the second strategy we took here is, instead of directly taking the embedding, we take the documents, these are the threat reports, we take the summary, we prompt the LLM to identify a summary about threat actor from those reports, and then take the embedding,
377760	379140	and then do the clustering.
380640	384340	And which one do you think outperforms?
384340	387080	Do you think the first one would be better, or the second one?
388120	389360	First one?
389820	391020	Any guess?
391020	392180	Second one?
392820	393760	Alright.
393800	396360	So the answer is actually the second one.
398400	407300	So, when you try this technique, the first one is document embedding, the other one is summary embedding.
407300	409460	And it consistently outperformed.
409460	413720	The silhouette score says how different these clusters are.
413820	418380	If the silhouette score is close to zero, it means the clusters are overlapping.
418380	423060	If it is close to one, you get ideal clusters which has much less overlapping.
425400	440420	And we also tried different embedding for the summary reports, and we consistently found that Gemini embedding, which is from the large-language model, outperformed BERT, and also the BERT-related ones like...
445140	452230	So this diagram shows a down-sampled version of some of the reports we analyzed and clustered.
452580	460980	There are about seven contactors we are tracking here, and it shows how well these documents get clustered based on the summary.
460980	466260	Yeah, give me a second.
476370	480130	So we want to understand why it worked well.
480130	486730	So one reason we hypothesize here is that these are the summaries that LLM generated.
486810	497050	As you can see, these summaries have some kind of consistency identifying the threat actor and the aliases and the kind of activities they were involved in.
497050	512510	So when you get this homogeneous kind of a summary, once you convert that into an embedding, it's going to come up with embeddings which are closer in space for the threat reports with the same threat actor.
512510	517090	That's why we got much better results with the summaries.
517470	524910	And also the plus point here is when you take embeddings over summaries, it's much faster and it costs you much less as well.
527030	530390	So now we have the group reports.
530450	535450	Each group represents threat intelligence reports for each threat actor.
535450	540270	It could be Gamma Ray Dawn, it could be Kim Sooky or APT23, whatnot.
544720	555320	The next step, what we are going to do is we are going to take these threat reports and we want to use the power of LLMs to convert them into battle cards.
555320	560480	These are going to be structured reports out of the natural language and the other modalities.
560480	570660	And I would like to spend the next few slides to give you a quick background information about LLMs and agents and then go into my solution.
570780	577920	So at a high level, you can propose, use this kind of solution in three ways.
577920	579980	The easiest way is to prompt LLMs.
579980	583240	You just create your prompt and ask to solve the problem.
583240	586720	You give a report and ask to generate the battle card.
586900	594920	And the second one is you are going to ground your data work with some kind of contextual information called RAC.
594920	606200	This is Retrieval Augmented Generation where some relevant contextual information is injected into the prompt and then the LLMs are going to answer your question.
606480	617880	And the final one is it's a kind of LLM in a loop which can use multiple tools and it might have a memory which can keep track of what it was saying before.
622060	638060	One way to conceptualize LLM is to think about a LLM in a for loop which calls a tool and try to identify what that tool tells you and then update the environment based on that call another tool until it arrives at the final answer.
640620	642900	So why agentic systems?
643280	656040	So as you can see, these are some of the recent research work and they have shown again and again when you... out of those three options it's always the agentic systems outperforms the other.
656040	670980	The main reason being they have access to more data, they have access to tools which allows the LLM to infer information about what they want to achieve and also it can optionally have memory where it can store whatever it learns.
674850	702750	And another key aspect of using agent is to identify the type of planning that you want to use and there is a whole literature behind it and most of the time, most of the practical works either use the decomposition pattern where they try to break the problem into a smaller problem and then solve it or they will be using reflection kind of pattern where they force the LLM to think back and refine the answer and get back to you.
704030	708710	So this slide shows the two most popular patterns people use.
708710	713770	One is called React and the other one is called Self-Refine.
713770	730070	The React is, the way it works is it calls a tool and then learn from that tool and then think about it and then make an assertion about what it learned from that and then decide which tool to call again.
730070	734210	And it goes in a loop until it comes up with the final answer.
734310	736610	And similar thing for the Self-Refine.
737110	743130	Any of these agentic patterns, if you look at it, it's kind of a loop but the way the loop is done is different.
745230	756290	So, with that basic information, I'm going to show you how we take those threat reports and then turn into battle cards using an agentic system.
756590	761090	So as you can see, we start with the group threat intelligence reports.
761090	762170	These are the grouped ones.
762170	774170	Once we get those clusters, we group them and then we have a detailed prompt as to what it should be doing and then we use this react pattern along with these tools.
774170	777830	So usually agent is nothing if you don't have good tools.
777830	783210	The main part of building this agentic system is to build your own tools that can solve the problem.
783210	785950	So the tools are the heart of the system.
785950	788110	In this case, we built three tools.
788190	795230	The report collection tool, the search tool and the extractor tool.
797210	797310	Extractor is
800670	811910	a simplistic tool which takes these threat reports and then fetches all the necessary information and keeps them in the local storage so that the other tools can use it.
812030	817590	And the search tool helps to identify things missing in the threat intelligence report.
817590	831230	When it analyzes these reports, it can invoke the search tool and get additional information about any of the ambiguous information and the bulk of the work is done by the extractor tool.
831230	839870	It will go through each of the CTI reports and then try to analyze them and identify the artifact that we mentioned about Battlecard.
841650	847270	So I want to zoom into the Battlecard extraction tool.
856920	871680	So basically the idea here is to take all the threat reports which belong to that threat actor and then try to identify a single Battlecard that will represent all these threat reports.
871680	881160	So the first approach we tried was like we took all the threat reports and asked another LLM to analyze them and come up with a Battlecard.
881160	910260	More often than not it broke because it was not like it needs to consume a lot of reports at once and then sometimes even though you have unlimited input tokens like Gemini and all of the support over millions of tokens but the when it comes to output token it's limited to about 65k so it needs to process the data in a way that limits that window.
910260	915580	So because of that reason we tried a different approach because it was failing.
915920	918840	We used the, we borrowed the concept from MapReduce.
918840	930020	We mapped each report to an agent and then asked it to generate a Battlecard for that report and then it will get processed in parallel.
930080	941140	Once we have Battlecard for each report we have another LLM which synthesizes these Battlecards into one single Battlecard.
945480	957720	Yeah, and one interesting thing to note is in the synthesis LLM when we look at the trace we found that it actually generates a code that does the synthesis.
957720	965840	We don't explicitly mention to the LLM that you need to come up with a code that will combine all these Battlecards into one.
965840	974800	So it wrote a detailed program which takes all the Battlecards and deterministically come up with the synthesized report.
974820	976900	I found that one to be cool.
977420	989960	I mean with the LLMs being now smarter with code there is no wonder that all the work will get converted into codes and run as deterministic tasks.
991880	1001180	And this is one example trace from one of the execution and this is for the scattered spider.
1001200	1007680	So we took all the reports and sent it to the LLM that agent and these are the traces that they go through.
1007680	1011680	And this is how a React kind of loop works.
1011680	1024120	It calls one tool and gets the information update the environment and then it decides which next tool to call and continues in a loop until it comes with the final answer that's the Battlecard.
1026000	1034120	This is another example a similar kind of loop but it's for a different threat actor.
1034120	1036760	It will call different tools and then stop
1042300	1048620	and at the end of those agentic process and the synthesis it comes up with a report like this.
1048620	1054840	This is an example Battlecard that's for the model Libra which is also called scattered spider.
1054840	1067000	So as you can see now it's not only informative it's structured in a way you can programmatically consume or you can share with any other SOC team to enforce it.
1067000	1093340	So it has the threat actor information and then for each campaign you'll have campaign information when it roughly started when it roughly ended and any other aliases or industries targeted IOC and the PTPs involved and the tools used malware binaries used to attack and also any CVE vulnerabilities they exploited.
1093340	1104780	And finally we also list the sources from which the agent has used two reports from our report to generate this report.
1108570	1126730	So now we have the Battlecard for each of these threat actors so as I mentioned earlier by the time these blocks get published they are somewhat outdated because there is a long publishing process involved especially with reputed publishers.
1126810	1140230	So in order for us to identify additional IOCs associated with these Battlecards we used a technique called Graph Expansion.
1140230	1142170	I'm going to briefly touch on that one.
1142170	1153350	The high level idea here is we take the IOCs identified from the Battlecard and then try to identify additional IOCs associated with them.
1153350	1170070	So the key observation is most of the time attackers they don't act in isolation they often rotate their infrastructure they reuse their infrastructure this intrinsically creates some kind of association which we can leverage to identify new ones.
1170070	1209170	So in this case for example this is the infrastructure timeline for the popular threat actor Kim Suki and they we saw this behavior the second part of last year and as you can see they started with few seed malicious domains with time progresses they created multiple malicious domains which they used in their attacks but they shared the infrastructure they rotated the domains so this helps us to use these rotations and reuse behavior for us to not only identify the malicious domains but also to associate with Kim Suki.
1212260	1230660	And this is another example I just want to show you the intuition behind how we do it so we take the seed domains so in this case it's a US postal service campaign it was a very popular campaign too and what we do is we use different kind of associations IP ,
1230660	1275380	in this case certificate or it could be phishing kit and identify other domains linked to these domains so in this case we identify out of those two domains identified from the battle card we identify about 5-6 new domains and then we come up with a technique that the surrounding domains and IPs are malicious and also after we identify whether it's malicious we want to have some kind of technique to attribute that to that because there could be IOCs which are shared by multiple threat actors in the same infrastructure so just because you identify some malicious IOCs in one place it doesn't necessarily belong to the same threat actor.
1277320	1299840	So for that pipeline I'm going to give you a very high level view of this one it's somewhat involved just to give you an idea about how it works we start with IOCs from the battle card and then we build that same network that I showed you for that USPS and then we enrich these different properties for IPs,
1299840	1306800	URLs and ASN and then we do a graph embedding it's kind of another embedding which takes into consideration
1310080	1334840	the number of properties associated with those domains and once we have those embeddings we do another clustering and once we get the clustering we check the cluster membership if there are many known threat actor domains associated in that cluster and we identify that the other domains in that cluster are malicious we attribute them to the threat actor and update the battle card.
1337500	1370880	So I ran this pipeline yesterday again just to update some of the threat actors we tracked so in this slide I'm showing three examples one for Lazarus and the other one for Revolver Rabbit and this for Kimsuki and we already have a lot of published reports and that is the battle card most of the competitors are using And what we did here is we ran off that graph pipeline and identified the clusters and then associations.
1370880	1378020	And we were able to identify new domains and IPs they created after these reports were published.
1378020	1380400	Because these are continuous attacks.
1380400	1389140	And as you can see from the right side, not many vendors have picked up this signal yet.
1389140	1394460	BT-102 means still not many people in the community know about these IOCs.
1395380	1398660	So that shows the proactiveness of the detection.
1401940	1404760	All right, so we read the last slide.
1404760	1410920	So in summary, we showed how to use threat intelligence reports and come up with battle cards.
1410920	1417220	Specifically, we took the CTI reports and then we clustered by the threat actors.
1417220	1425940	And then we used those clustered threat actor reports to identify battle cards using an agentic solution.
1426020	1435420	Once we have those battle cards, we showed you a way how we can automatically update these battle cards to keep up-to-date information.
1436320	1443460	And as part of the next step, right now the system I showed you was using only textual information.
1443460	1454380	But some of these threat actor reports have images and charts and attack chains, which we can leverage to improve the battle cards.
1454420	1459980	And also, another thing is, if you notice carefully, we had a human in the loop still.
1459980	1465620	Because there are cases where the agent could make up certain things.
1465620	1470020	So in order to make sure that we only release valid ones, we still have a human in the loop.
1470020	1478000	But one way to get rid of, one way to reduce the involvement of human is to enrich the validation data.
1478000	1490840	For example, we might be able to pull in the MITRE metrics, tactics and techniques, and all the detailed information into the agent to make sure that whatever techniques and techniques it comes up with are valid.
1490840	1494000	So that's another interesting research avenue.
1496680	1498540	So with that, I'm going to conclude.
1498540	1500660	If you have any questions, I'm happy to answer.
