misp-website/content/blog/visualising_common_patterns...

66 lines
6.9 KiB
Markdown
Raw Normal View History

---
2019-10-28 14:18:48 +01:00
title: Visualising common patterns using MISP and ATT&CK data
2021-12-24 08:02:55 +01:00
date: 2019-10-27
layout: post
2021-12-24 08:02:55 +01:00
banner: /img/blog/visualisation_cylance_attack/actor_delta.png
---
2019-10-28 14:18:48 +01:00
# Visualising common patterns using MISP and ATT&CK data
2019-10-28 14:39:50 +01:00
Having access to a large amount of Threat information through MISP Threat Sharing communities gives you outstanding opportunities to aggregate this information and take the process of trying to understand how all this data fits together telling a broader story to the next level. We are transforming technical data or indicators of compromise (IOCs) into cyber threat intelligence. This is where the analytical challenge begins.
2019-10-28 14:39:50 +01:00
In his [Psychology of Intelligence Analysis](https://www.cia.gov/library/center-for-the-study-of-intelligence/csi-publications/books-and-monographs/psychology-of-intelligence-analysis/PsychofIntelNew.pdf) book, Richards Heuer, a reference in intelligence analysis, describes some of the power and limitations our mental machinery has. While discussing the short term memory, long term memory and working memory he concludes the following:
> A well-known article written over 40 years ago, titled “The Magic Number Seven—Plus or Minus Two,” contends that **seven—plus or minus two—is the number of things people can keep in their head all at once**. That limitation on working memory is the source of many problems. People have difficulty grasping a problem in all its complexity. This is why we sometimes have trouble making up our minds. For example, we think first about the arguments in favor, and then about the arguments against, and we cant keep all those pros and cons in our head at the same time to get an overview of how they balance off against each other.
2019-10-28 14:39:50 +01:00
The recommended technique for coping with this limitation is to externalise the problem. We need to get it out of the human head into a form that simplifies the story, shows the main elements and how they relate to each other.
In this article we will be using visualisation techniques to help us better explore cyber threat information shared through [MISP](https://github.com/MISP/MISP) and tagged with [MITRE ATT&CK](https://attack.mitre.org/) techniques, all within a visualisation tool called [Maltego](https://www.paterva.com/buy/maltego-clients/maltego.php).
## Getting started
2022-01-09 17:11:05 +01:00
To get started you will need access to a MISP Threat Sharing community, or run your own instance. As a quickstart, you can use the [MISP Training VM](/download/#virtual-images) and download data from the [CIRCL OSINT feed](/feeds/#default-feeds-available-in-misp).
You will want to download the [Maltego CE](https://www.paterva.com/buy/maltego-clients/maltego-ce.php) (free, limited) or the [classic](https://www.paterva.com/buy/maltego-clients/maltego.php) (paid) edition and install the open source [MISP-Maltego](https://github.com/MISP/MISP-maltego/blob/master/doc/README.md#installation) transform.
## The report
2019-10-28 14:39:50 +01:00
As an example, when looking at the report of attacks called "[PcShare Backdoor Attacks Targeting Windows Users with FakeNarrator Malware](https://threatvector.cylance.com/en_us/home/pcshare-backdoor-attacks-targeting-windows-users-with-fakenarrator-malware.html)", published by Cylance on the 25th of September 2019, and shared using MISP to 'All Communities' with the UUID `5d9b5ad3-6b64-4962-a63c-42ae73e10023`. They also attributed the attack to the [Tropic Trooper - G0081](https://attack.mitre.org/groups/G0081/) actor.
2021-12-24 08:02:55 +01:00
![associated ATT&CK techniques](/img/blog/visualisation_cylance_attack/tags.png)
## Analysis and Visualisation
2019-10-28 14:39:50 +01:00
In addition to the technical report of these attacks and the leveraged malware, the author documented 16 related ATT&CK techniques. Interestingly MITRE associated 18 ATT&CK techniques to this actor.
An avid reader will immediately notice the report has 2 techniques fewer than the actor described by MITRE.
**Is this correct or is the reality completely different?**
2019-10-28 14:39:50 +01:00
Keeping in mind the limitations of our working memory (7±2 items) we will need additional external support to compare the techniques. Whilst we could indeed take two papers and compare both lists for the duration of 5 minutes, let us do the exercise in a more visual and dynamic way.
2019-10-28 14:39:50 +01:00
**Open Maltego** and create a **MISPEvent entity** with the MISP event number on your MISP server (for me this is `63423`). **Right click** on the event and choose **"Event To Galaxies"**.
2021-12-24 08:02:55 +01:00
![Event To Galaxies](/img/blog/visualisation_cylance_attack/to_galaxies.png)
2019-10-28 14:39:50 +01:00
We now have a first visual view of the tags that were attached to the report. Now, select the threat actor and choose **Galaxy to Relations** again, in order to expand this using MITRE ATT&CK relationships.
2021-12-24 08:02:55 +01:00
We now see a completely new graph which is much less readable. Make sure you configure Maltego to make collections of 4 or more similar entities. You can do this in the toolbar in the top: ![Collections](/img/blog/visualisation_cylance_attack/collections.png)
2021-12-24 08:02:55 +01:00
![visual delta between the report and ATT&CK](/img/blog/visualisation_cylance_attack/actor_delta.png)
**Suddenly our graph becomes much more readable and we see at a glance that our initial intuition of two missing techniques was actually completely wrong !**
2019-10-28 14:39:50 +01:00
The Cylance report of these attacks does NOT have two (2) techniques fewer than expected. Actually, only five (5) are common with what MITRE documented! Thirteen (13) are only present in the MITRE documentation and eleven (11) are not associated with this actor by MITRE. Zooming in allows us to see the details:
2021-12-24 08:02:55 +01:00
![visual delta between the report and ATT&CK](/img/blog/visualisation_cylance_attack/actor_delta_zoom.png)
## What does this mean?
Does this mean Cylance or MITRE are wrong?
Not necessarily, many factors can explain this, for example:
- When creating and updating ATT&CK, MITRE only had incomplete knowledge of each actor. They only saw a piece of the puzzle.
2019-10-28 14:39:50 +01:00
- Actors change their behaviour and their TTPs evolve over time.
- We have also seen that tagging techniques can be a very subjective exercise. Additionally, the current techniques are sometimes very generic and their understanding is not universal. To address this challenge MITRE has been developing [sub-techniques](https://medium.com/mitre-attack/attack-sub-techniques-preview-b79ff0ba669a).
2019-10-28 14:39:50 +01:00
- potentially others that are not covered in this article.
## The beginning of a long journey
This example is only the beginning of a long journey of analysing and understanding the data which is available to us.
2019-10-28 14:39:50 +01:00
We always need to keep in mind that we only see a fragment of the entire story. Only by combining what you see in your network or constituency and what others see in theirs will we be able to better analyse and understand what is going on. This is yet another good reason to share cyber threat information with trusted communities.
2019-10-28 14:39:50 +01:00
We also know we have limited mental capabilities and can be assisted by technology to help ourselves with this challenge, for example with graphing and visualisation tools that are interconnecting with MISP!