Home

Awesome

๐Ÿ‡ท๐Ÿ‡บ ะ ัƒััะบะฐั ะฒะตั€ัะธั | ๐Ÿ‡ต๐Ÿ‡ฑ Polska wersja

Atomic Threat Coverage

Actionable analytics designed to combat threats based on MITRE's ATT&CK.

Atomic Threat Coverage is tool which allows you to automatically generate actionable analytics, designed to combat threats (based on the MITRE ATT&CK adversary model) from Detection, Response, Mitigation and Simulation perspectives:

Atomic Threat Coverage is highly automatable framework for accumulation, development and sharing actionable analytics.

Description

Atomic Threat Coverage is a framework that provides you with ability to automatically generate Confluence and Markdown knowledge bases (as well as the other analytics), with a mapping of different entities to each other using MITRE ATT&CK techniques IDs.

Here are links to our demo environment where you can see the outcome of the framework usage:

Motivation

There are plenty decent projects which provide analytics (or functionality) of specific focus (i.e. Sigma - Detection, Atomic Red Team - Simulation, etc). All of them have one weakness โ€” they exist in the vacuum of their area. In reality everything is tightly connected โ€” data for alerts doesn't come from nowhere, and generated alerts don't go nowhere. Data collection, security systems administration, threat detection, incident response etc are parts of bigger and more comprehensive process which requires close collaboration of various departments.

Sometimes problems of one function could be solved by methods of other function in a cheaper, simpler and more efficient way. Most of the tasks couldn't be solved by one function at all. Each function is based on abilities and quality of others. There is no efficient way to detect and respond to threats without proper data collection and enrichment. There is no efficient way to respond to threats without understanding of which technologies/systems/measures could be used to block specific threat. There is no reason to conduct penetration test or Red Team exercise without understanding of abilities of processes, systems and personal to combat cyber threats. All of these require tight collaboration and mutual understanding of multiple departments.

In practice there are difficulties in collaboration due to:

That's why we decided to create Atomic Threat Coverage โ€” project which connects different functions/processes under unified Threat Centric methodology (Lockheed Martin Intelligence Driven Defenseยฎ aka MITRE Threat-based Security), threat model (MITRE ATT&CK) and provide security teams an efficient tool for collaboration on one main challenge โ€” combating threats.

Why Atomic Threat Coverage

Work with existing <sup>[1][2][3][4]</sup> analytics/detections repositories looks like endless copy/pasting job, manual adaptation of the information into internal analytics knowledge base format, detections data model, mappings to internal valuable metrics and entities etc.

We decided to make it different.

Atomic Threat Coverage is a framework which allows you to create and maintain your own analytics repository, import analytics from other projects (like Sigma, Atomic Red Team, as well as private forks of these projects with your own analytics) and do export into human-readable wiki-style pages in two (for now) platforms:

  1. Atlassian Confluence pages (here is the demo of automatically generated knowledge base)
  2. This repo itself โ€” automatically generated markdown formated wiki-style pages

In other words, you don't have to work on data representation layer manually, you work on meaningful atomic pieces of information (like Sigma rules), and Atomic Threat Coverage will automatically create analytics database with all entities, mapped to all meaningful, actionable metrics, ready to use, ready to share and show to leadership, customers and colleagues.

How it works

Everything starts from Sigma rule and ends up with human-readable wiki-style pages and other valuable analytics. Atomic Threat Coverage parses it and:

  1. Maps Detection Rule to ATT&CK Tactic and Technique using tags from Sigma rule
  2. Maps Detection Rule to Data Needed using logsource and detection sections from Sigma rule
  3. Maps Detection Rule to Triggers (Atomic Red Team tests) using tags from Sigma rule
  4. Maps Detection Rule to Enrichments using references inside Detection Rule
  5. Maps Response Playbooks to ATT&CK Tactic and Technique using references inside Response Playbooks
  6. Maps Response Actions to Response Playbooks using references inside Response Playbooks
  7. Maps Logging Policies to Data Needed using references inside Data Needed
  8. Maps Detection Rules, Data Needed and Logging Policies into Customers using references inside Customers entity
  9. Converts everything into Confluence and Markdown wiki-style pages using jinja templates (scripts/templates)
  10. Pushes all pages to local repo and Confluence server (according to configuration provided in config.yml)
  11. Creates Elasticsearch index for visualisation and analysis of existing data in Kibana
  12. Creates ATT&CK Navigator profile for visualisation of current detection abilities per Customer
  13. Creates TheHive Case Templates, build on top of Response Playbooks
  14. Creates analytics.csv and pivoting.csv files for simple analysis of existing data
  15. Creates Dashboards json files for uploading to Kibana

Under the hood

Data in the repository:

โ”œโ”€โ”€ analytics/
โ”‚ย ย  โ”œโ”€โ”€ generated/
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ analytics.csv
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ pivoting.csv
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ atc_es_index.json
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ thehive_templates/
โ”‚   โ”‚ย ย  โ”‚   โ””โ”€โ”€ RP_0001_phishing_email.json
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ attack_navigator_profiles/
โ”‚   โ”‚ย ย  โ”‚   โ”œโ”€โ”€ atc_attack_navigator_profile.json
โ”‚   โ”‚ย ย  โ”‚   โ”œโ”€โ”€ atc_attack_navigator_profile_CU_0001_TESTCUSTOMER.json
โ”‚   โ”‚ย ย  โ”‚   โ””โ”€โ”€ atc_attack_navigator_profile_CU_0002_TESTCUSTOMER2.json
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ visualizations/
โ”‚   โ”‚ย ย  โ”‚   โ””โ”€โ”€ os_hunting_dashboard.json
โ”‚ย ย  โ””โ”€โ”€ predefined/
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ atc-analytics-dashboard.json
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ atc-analytics-index-pattern.json
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ atc-analytics-index-template.json
โ”œโ”€โ”€ customers/
โ”‚ย ย  โ”œโ”€โ”€ CU_0001_TESTCUSTOMER.yml
โ”‚   โ”œโ”€โ”€ CU_0002_TESTCUSTOMER2.yml
โ”‚   โ””โ”€โ”€ customer.yml.template
โ”œโ”€โ”€ data_needed/
โ”‚ย ย  โ”œโ”€โ”€ DN_0001_4688_windows_process_creation.yml
โ”‚ย ย  โ”œโ”€โ”€ DN_0002_4688_windows_process_creation_with_commandline.yml
โ”‚ย ย  โ””โ”€โ”€ dataneeded.yml.template
โ”œโ”€โ”€ detection_rules/
โ”‚ย ย  โ””โ”€โ”€ sigma/
โ”œโ”€โ”€ enrichments/
โ”‚ย ย  โ”œโ”€โ”€ EN_0001_cache_sysmon_event_id_1_info.yml
โ”‚ย ย  โ”œโ”€โ”€ EN_0002_enrich_sysmon_event_id_1_with_parent_info.yaml
โ”‚ย ย  โ””โ”€โ”€ enrichment.yml.template
โ”œโ”€โ”€ logging_policies/
โ”‚ย ย  โ”œโ”€โ”€ LP_0001_windows_audit_process_creation.yml
โ”‚ย ย  โ”œโ”€โ”€ LP_0002_windows_audit_process_creation_with_commandline.yml
โ”‚ย ย  โ””โ”€โ”€ loggingpolicy_template.yml
โ”œโ”€โ”€ response
โ”‚ย ย  โ””โ”€โ”€ atc-react/
โ”œโ”€โ”€ mitigation
โ”‚ย ย  โ””โ”€โ”€ atc-mitigation/
โ”œโ”€โ”€ triggers/
โ”‚ย ย  โ””โ”€โ”€ atomic-red-team/
โ””โ”€โ”€ visualizations/
    โ”œโ”€โ”€ dashboards/
    โ”‚ย ย  โ”œโ”€โ”€ examples/
    โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ test_dashboard_document.yml
    โ”‚ย ย  โ””โ”€โ”€ os_hunting_dashboard.yml
    โ””โ”€โ”€ visualizations/
        โ”œโ”€โ”€ examples/
        โ”‚ย ย  โ””โ”€โ”€ vert_bar.yml
        โ””โ”€โ”€ wmi_activity.yml

Detection Rule

Detection Rules are unmodified Sigma rules. By default Atomic Threat Coverage uses rules from official repository but you can (should) use rules from your own private fork with analytics relevant for you.

<details> <summary>Detection Rule yaml (click to expand)</summary> <img src="images/sigma_rule.png" /> </details> <details> <summary>Automatically created confluence page (click to expand)</summary> <img src="images/dr_confluence_v1.png" /> </details> <details> <summary>Automatically created markdown (GitLab) page (click to expand)</summary> <img src="images/dr_markdown_v1.png" /> </details> <br>

Links to Data Needed, Trigger, and articles in ATT&CK are generated automatically. Sigma rule, Kibana query, X-Pack Watcher and GrayLog query generated and added automatically (this list could be expanded and depends on Sigma Supported Targets)

Data Needed

<details> <summary>Data Needed yaml (click to expand)</summary> <img src="images/dataneeded_v1.png" /> </details> <details> <summary>Automatically created confluence page (click to expand)</summary> <img src="images/dn_confluence_v1.png" /> </details> <details> <summary>Automatically created markdown page (click to expand)</summary> <img src="images/dn_markdown_v1.png" /> </details> <br>

This entity expected to simplify communication with SIEM/LM/Data Engineering teams. It includes the next data:

Logging Policy

<details> <summary>Logging Policy yaml (click to expand)</summary> <img src="images/loggingpolicy.png" /> </details> <details> <summary>Automatically created confluence page (click to expand)</summary> <img src="images/lp_confluence_v1.png" /> </details> <details> <summary>Automatically created markdown page (click to expand)</summary> <img src="images/lp_markdown_v1.png" /> </details> <br>

This entity expected to explain SIEM/LM/Data Engineering teams and IT departments which logging policies have to be configured to have proper Data Needed for Detection and Response to specific Threat. It also explains how exactly this policy can be configured.

Enrichment

<details> <summary>Enrichments yaml (click to expand)</summary> <img src="images/en_yaml_v1.png" /> </details> <details> <summary>Automatically created confluence page (click to expand)</summary> <img src="images/en_confluence_v1.png" /> </details> <details> <summary>Automatically created markdown page (click to expand)</summary> <img src="images/en_markdown_v1.png" /> </details> <br>

This entity expected to simplify communication with SIEM/LM/Data Engineering teams. It includes the next data:

This way you will be able to simply explain why you need specific enrichments (mapping to Detection Rules) and specific systems for data enrichment (for example, Logstash).

Customer

<details> <summary>Customers yaml (click to expand)</summary> <img src="images/cu_yaml_v1.png" /> </details> <details> <summary>Automatically created confluence page (click to expand)</summary> <img src="images/cu_confluence_v1.png" /> </details> <details> <summary>Automatically created markdown page (click to expand)</summary> <img src="images/cu_markdown_v1.png" /> </details> <br>

This entity used to track Logging Policies configuration, Data Needed collection and Detection Rules implementation per customer. Customer could be internal (for example, remote site) or external (in case of Service Providers). It even could be a specific host. There are no limitations for definition of the entity.

This entity expected to simplify communication with SIEM/LM/Data Engineering teams, provide visibility on implementation for Leadership. It used to generate analytics.csv, atc_attack_navigator_profile.json (per customer) and atc_es_index.json.

Triggers

Triggers are unmodified Atomic Red Team tests. By default Atomic Threat Coverage uses atomics from official repository but you can (should) use atomics from your own private fork with analytics relevant for you.

<details> <summary>Triggers yaml (click to expand)</summary> <img src="images/trigger.png" /> </details> <details> <summary>Automatically created confluence page (click to expand)</summary> <img src="images/trigger_confluence_v1.png" /> </details> <details> <summary>Automatically created markdown page (click to expand)</summary> <img src="images/tg_markdown_v1.png" /> </details> <br>

This entity needed to test specific technical controls and detections. Detailed description could be found in official site.

Mitigation Policy

is a measure that has to be executed to mitigate a specific threat. For more information, please refer to the atc-mitigation repository.

Response Playbook

is an Incident Response plan that represents a complete list of procedures/tasks that has to be executed to respond to a specific threat. For more information, please refer to the atc-react repository.

Visualization

<details> <summary>Visualization yaml (click to expand)</summary> <img src="images/visualisation_yaml_v1.png" /> </details> <details> <summary>Dashboard yaml (click to expand)</summary> <img src="images/dashboard_yaml_v1.png" /> </details> <details> <summary>Dashboard in Kibana (click to expand)</summary> <img src="images/dashboard_v1.png" /> </details> <br>

Visualisations include separate Visualisations / Saved searches and Dashboards, built on top of them.
Basically, atomic visualisations represent building blocks for Dashboards of different purposes.

For now we only support export to Kibana. But we are targeting multiple platforms export (Splunk being the nearest future).
This entity could be described as a Sigma for Visualisations.

Detailed HowTo could be found here.

atc_es_index.json

Atomic Threat Coverage generates Elasticsearch index with all data mapped to each other for visualisation and analysis of existing data in Kibana.

<details> <summary>ATC Analytics Dashboard in Kibana (click to expand)</summary> <img src="images/atc_analytics_dashboard.png" /> </details> <br>

This way it can help to answer these questions:

<!-- - What threats can I respond to with existing Response Playbooks? -->

Ideally, these visualisations could provide organizations with the ability to connect Threat Coverage from detection perspective to money. Like:

If you don't have Elasticsearch and Kibana deployed, you can use analytics.csv for the same purposes.

atc_attack_navigator_profile.json

Atomic Threat Coverage generates ATT&CK Navigator common profile (for all existing Detection Rules) as well as per Customer profiles for visualisation of current detection abilities, gap analysis, development prioritisation, planning etc. You only need to upload it to public or (better) private Navigator site, click New Tab -> Open Existing Layer -> Upload from local. Here is how it looks like for default ATC dataset (original Sigma repository rules, Windows only):

<details> <summary>Navigator profile for original Sigma Rules (click to expand)</summary> <img src="images/navigator_v1.png" /> </details>

analytics.csv

Atomic Threat Coverage generates analytics.csv with list of all data mapped to each other for simple analysis.

<details> <summary>Example of lookup for "pass the hash" technique (click to expand)</summary> <img src="images/analytics_pth_v1.png" /> </details> <br>

It could be used for the same purposes as atc_es_index.json.

pivoting.csv

Atomic Threat Coverage generates pivoting.csv with list of all fields (from Data Needed) mapped to description of Data Needed for very specific purpose โ€” it provides information about data sources where some specific data type could be found, for example domain name, username, hash etc:

<details> <summary>Example of lookup for "hash" field (click to expand)</summary> <img src="images/pivoting_hash_v1.png" /> </details> <br>

At the same time it highlights which fields could be found only with specific enrichments:

<details> <summary>Example of lookup for "ParentImage" field (click to expand)</summary> <img src="images/pivoting_parent_v1.png" /> </details>

Goals

  1. Evangelize MITRE ATT&CK framework
  2. Stimulate community to use Sigma and Atomic Red Team projects
  3. Evangelize threat information sharing
  4. Automate most of manual work
  5. Provide information security community framework which will improve communication with other departments, general analytics accumulation, developing and sharing

Workflow

Demo with Docker

If you just want to try it with default dataset, you can use docker:

  1. Clone the repository or download an archive with it
  2. Go to the project directory
  3. Download and update Sigma and Atomic Red Team projects using git submodules:
git submodule init
git submodule update
git submodule foreach git pull origin master
  1. Copy scripts/config.default.yml to config.yml
  2. Update config.yml with links to your own Confluence node (following instructions inside the default config)
  3. Build the container using docker build . -t atc
  4. Run the container using docker run -it atc
  5. Provide login and password to Confluence node when script will ask for it

That's all. Confluence will be populated with the data and all analytics will be generated on your side (elasticsearch index, csv files, thehive templates, navigator profiles etc).

We do not recommend to use this type of deployment for production.

If you just want to make yourself familiar with final result with default dataset you can also use online demo of automatically generated Confluence knowledge base.

Production use

  1. Add your own custom Sigma fork to detection_rules directory
  2. Add your own custom Atomic Red Team fork to triggering directory
  3. Add Data Needed into data_needed directory (you can create new one using template)
  4. Add Logging Policies into logging_policies directory (you can create new one using template)
  5. Add Enrichments into enrichments directory (you can create new one using template)
  6. Add Customers into customers directory (you can create new one using template)
  7. Add Response Actions into response_actions directory (you can create new one using template)
  8. Add Response Playbooks into response_playbooks directory (you can create new one using template)
  9. Change output templates to fit your needs. Just copy our templates from scripts/templates/ and adjust templates_directory in your config.yml
  10. Configure your export settings and paths using config.yml (create it from scripts/config.default.yml and adjust settings)
  11. Execute make in root directory of the repository
  12. Provide login and password to Confluence node when script will ask for it

If you want to partially regenerate/update analytics you can investigate Makefile options or main.py help.

Uploading ATC Analytics Dashboard

You need both Elasticsearch and Kibana up and running (relevant for version 7.3.1).

Define variables:

ELASTICSEARCH_URL="http://<es ip/domain>:<es port>"
KIBANA_URL="http://<kibana ip/domain>:<kibana port>"
USER=""
PASSWORD=""

Then upload index pattern to Kibana:

curl -k --user ${USER}:${PASSWORD} -H "Content-Type: application/json"\
  -H "kbn-xsrf: true"\
  -XPOST "${KIBANA_URL}/api/saved_objects/index-pattern/42272fa0-cde5-11e9-667e-6f37d60dcef0"\
  -d@analytics/predefined/atc-analytics-index-pattern.json

Then upload Dashboard to Kibana:

curl -k --user ${USER}:${PASSWORD} -H "Content-Type: application/json"\
  -H "kbn-xsrf: true"\
  -XPOST "${KIBANA_URL}/api/kibana/dashboards/import?exclude=index-pattern&force=true"\
  -d@analytics/predefined/atc-analytics-dashboard.json

Then upload index to Elasticsearch:

curl -k --user ${USER}:${PASSWORD} -H "Content-Type: application/json"\
  -XPOST "${ELASTICSEARCH_URL}/atc-analytics/_doc/_bulk?pretty"\
  --data-binary @analytics/generated/atc_es_index.json

You can automate index uploading adding last command to Makefile in your private fork.
This way each time you will add new analytics, Dashboard will be automatically updated.

Current Status: Alpha

The project is currently in an alpha stage. It doesn't support all existing Sigma rules (current coverage is ~95%), also have some entities to develop (like Mitigation Systems). We warmly welcome any feedback and suggestions to improve the project.

Requirements

FAQ

Will my private analytics (Detection Rules, Logging Policies, etc) be transferred somewhere?

No. Only to your confluence node, according to configuration provided in config.yml.

What do you mean saying "evangelize threat information sharing" then?

We mean that you will use community compatible formats for (at least) Detection Rules (Sigma) and Triggers (Atomic Red Team), and on some maturity level you will (hopefully) have willingness to share some interesting analytics with community. It's totally up to you.

How can I add new Trigger, Detection Rule, or anything else to my private fork of Atomic Threat Coverage?

Simplest way is to follow workflow chapter, just adding your rules into pre-configured folders for specific type of analytics.

More "production" way is to configure your private forks of Sigma and Atomic Red Team projects as submodules of your Atomic Threat Coverage private fork. After that you only will need to configure path to them in config.yml, this way Atomic Threat Coverage will start using it for knowledge base generation.

Sigma doesn't support some of my Detection Rules. Does it still make sense to use Atomic Threat Coverage?

Absolutely. We also have some Detection Rules which couldn't be automatically converted to SIEM/LM queries by Sigma. We still use Sigma format for such rules putting unsupported detection logic into "condition" section. Later SIEM/LM teams manually create rules based on description in this field. ATC is not only about automatic queries generation/documentation, there are still a lot of advantages for analysis. You wouldn't be able to utilise them without Detection Rules in Sigma format.

Contacts

Authors

Thanks to

TODO

Links

[1] MITRE Cyber Analytics Repository
[2] Endgame EQL Analytics Library
[3] Palantir Alerting and Detection Strategy Framework
[4] The ThreatHunting Project

License

See the LICENSE file.