Try Hack Me Red Team Threat Intel
@ Animesh Roy | Friday, Aug 12, 2022 | 8 minutes read | Update at Friday, Aug 12, 2022

OverView

Operating System Securitylogo
Operating System Security [Subscription Required]Operating System Security

Task 01: Introduction

Threat Intelligence (TI) or Cyber Threat Intelligence (CTI) is the information, or TTPs (Tactics, Techniques, and Procedures), attributed to an adversary, commonly used by defenders to aid in detection measures. The red cell can leverage CTI from an offensive perspective to assist in adversary emulation.

Learning Objectives

  • Understand the basics of threat intelligence and how it can be applied to red team engagements.
  • Learn how to create a threat-intel-driven campaign.
  • Use frameworks to understand concepts and leverage threat intelligence.

Task 02: What is Threat Intelligence

Traditionally, defenders use threat intelligence to provide context to the ever-changing threat landscape and quantify findings. IOCs are quantified by traces left by adversaries such as domains, IPs, files, strings, etc. The blue team can utilize various IOCs to build detections and analyze behavior. From a red team perspective, you can think of threat intelligence as the red team’s analysis of the blue team’s ability to properly leverage CTI for detections.


Task 03: Applying Threat Intel to the Red Team

To aid in consuming CTI and collecting TTPs, red teams will often use threat intelligence platforms and frameworks such as MITRE ATT&CK, TIBER-EU, and OST Map.

These cyber frameworks will collect known TTPs and categorize them based on varying characteristics such as,

  • Threat Group
  • Kill Chain Phase
  • Tactic
  • Objective/Goal

Once a targeted adversary is selected, the goal is to identify all TTPs categorized with that chosen adversary and map them to a known cyber kill chain. This concept is covered further in the next task.

Leveraging TTPs is used as a planning technique rather than something a team will focus on during engagement execution. Depending on the size of the team, a CTI team or threat intelligence operator may be employed to gather TTPs for the red team. During the execution of an engagement, the red team will use threat intelligence to craft tooling, modify traffic and behavior, and emulate the targeted adversary. This concept is covered further in task 5.

Overall the red team consumes threat intelligence to analyze and emulate the behaviors of adversaries through collected TTPs and IOCs.


Task 04: The TIBER-EU Framework

TIBER-EU (Threat Intelligence-based Ethical Red Teaming) is a common framework developed by the European Central Bank that centers around the use of threat intelligence.

From the ECB TIBER-EU white paper, “The Framework for Threat Intelligence-based Ethical Red Teaming (TIBER-EU) enables European and national authorities to work with financial infrastructures and institutions (hereafter referred to collectively as ’entities’) to put in place a programme to test and improve their resilience against sophisticated cyber attacks.”

img

The main difference between this framework and others is the “Testing” phase that requires threat intelligence to feed the red team’s testing.

This framework encompasses a best practice rather than anything actionable from a red team perspective.

There are several public white papers and documents if you are interested in reading about this framework further,



Task 05: TTP Mapping

TTP Mapping is employed by the red cell to map adversaries’ collected TTPs to a standard cyber kill chain. Mapping TTPs to a kill chain aids the red team in planning an engagement to emulate an adversary.

To begin the process of mapping TTPs, an adversary must be selected as the target. An adversary can be chosen based on,

  • Target Industry
  • Employed Attack Vectors
  • Country of Origin
  • Other Factors

As an example for this task, we have decided to use APT 39, a cyber-espionage group run by the Iranian ministry, known for targeting a wide variety of industries.

We will use the Lockheed Martin cyber kill chain as our standard cyber kill chain to map TTPs.

img

The first cyber framework we will be collecting TTPs from is MITRE ATT&CK. If you are not familiar with MITRE ATT&CK, it provides IDs and descriptions of categorized TTPs. For more information about MITRE and how to use ATT&CK, check out the MITRE room.

ATT&CK provides a basic summary of a group’s collected TTPs. We can use ATT&CK Navigator to help us visualize each TTP and categorize its place in the kill chain. Navigator visualizes the ATT&CK chain with the adversaries’ designated TTPs highlighted under the corresponding sub-section.

To use the ATT&CK Navigator: navigate to the groups summary page, next to “Techniques Used,” navigate to “ATT&CK Navigator Layers,” from the dropdown navigate to “view.” An ATT&CK Navigator layer should have opened with the selected group’s TTPs highlighted in a new tab.

Going through the Navigator layer, we can assign various TTPs we want to employ during the engagement. Below is a compiled kill chain with mapped TTPs for APT39.

  1. Reconnaissance: No identified TTPs, use internal team methodology

  2. Weaponization:

    • Command and Scripting Interpreter
    • PowerShell
    • Python
    • VBA
  3. Delivery:

    • Exploit Public-Facing Applications
    • Spearphishing
  4. Exploitation:

    • Registry modification
    • Scheduled tasks
    • Keylogging
    • Credential dumping
  5. Installation:

    • Ingress tool transfer
    • Proxy usage
  6. Command & Control:

    • Web protocols (HTTP/HTTPS)
    • DNS
  7. Actions on Objectives

    • Exfiltration over C2

MITRE ATT&CK will do most of the work needed, but we can also supplement threat intelligence information with other platforms and frameworks. Another example of a TTP framework is OST Map.

OST Map provides a visual map to link multiple threat actors and their TTPs.

Other open-source and enterprise threat intelligence platforms can aid red teamers in adversary emulation and TTP mapping, such as,

  • Mandiant Advantage
  • Ontic
  • CrowdStrike Falcon

5 Answer the questions below

5.1: Read the above and use MITRE ATT&CK Navigator to answer the questions below using a Carbanak layer.

N/A

5.2: How many Command and Control techniques are employed by Carbanak?

follow this Map ans is 2

5.3: What signed binary did Carbanak use for defense evasion?

Rundll32 ref to "Defense Evasion" tactic

5.4: What Initial Access technique is employed by Carbanak?

Valid Accounts ref to "Initial Access" tactic


Task 06: Other Red Team Applications of CTI

CTI can also be used during engagement execution, emulating the adversary’s behavioral characteristics, such as

  • C2 Traffic

    • User Agents
    • Ports, Protocols
    • Listener Profiles
  • Malware and Tooling

    • IOCs
    • Behaviors

The first behavioral use of CTI we will showcase is C2 (Command & Control) traffic manipulation. A red team can use CTI to identify adversaries’ traffic and modify their C2 traffic to emulate it.

An example of a red team modifying C2 traffic based on gathered CTI is malleable profiles. A malleable profile allows a red team operator to control multiple aspects of a C2’s listener traffic.

Information to be implemented in the profile can be gathered from ISACs and collected IOCs or packet captures, including,

  • Host Headers
  • POST URIs
  • Server Responses and Headers

The gathered traffic can aid a red team to make their traffic look similar to the targeted adversary to get closer to the goal of adversary emulation.

The second behavioral use of CTI is analyzing behavior and actions of an adversaries’ malware and tools to develop your offensive tooling that emulates similar behaviors or has similar vital indicators.

An example of this could be an adversary using a custom dropper. The red team can emulate the dropper by,

  • Identifying traffic
  • Observing syscalls and API calls
  • Identifying overall dropper behavior and objective
  • Tampering with file signatures and IOCs

In telligence and tools gathered from behavioral threat intelligence can aid a red team in preparing the specific tools they will use to action planned TTPs.


Task 07: Creating a Threat Intel Driven Campaign

A threat-intel-driven campaign will take all knowledge and topics previously covered and combine them to create a well-planned and researched campaign.

The task flow in this room logically follows the same path you would take as a red team to begin planning a campaign,

  • Identify framework and general kill chain
  • Determine targeted adversary
  • Identify adversary’s TTPs and IOCs
  • Map gathered threat intelligence to a kill chain or framework
  • Draft and maintain needed engagement documentation
  • Determine and use needed engagement resources (tools, C2 modification, domains, etc.)

In this task, we will be walking through a red team’s thought process from beginning to end of planning a threat-intel-driven campaign.

The hardest part of planning a threat-intel-driven campaign can be mapping two different cyber frameworks. To make this process simpler we have provided a basic table comparing the Lockheed Martin Cyber Kill Chain and the MITRE ATT&CK framework.

Cyber Kill ChainMITRE ATT&CK
ReconReconnaissance
WeaponizationExecution
DeliveryInitial Access
ExploitationInitial Access
InstallationPersistence / Defense Evasion
Command & ControlCommand and Control
Actions on ObjectivesExfiltration / Impact

To begin working through this task, download the required resources and launch the static site attached to this task.

Your team has already decided to use the Lockheed Martin cyber kill chain to emulate APT 41 as the adversary that best fits the client’s objectives and scope.

7 Answer the questions below

Open the provided ATT&CK Navigator layer and identify matched TTPs to the cyber kill chain. Once TTPs are identified, map them to the cyber kill chain in the static site.

To complete the challenge, you must submit one technique name per kill chain section.

Once the chain is complete and you have received the flag, submit it below.

ref to image below

img


Task 08: Conclusion

When planning an engagement, it is essential to note the significance of adversary emulation and how threat intelligence can aid you in identifying adversaries and their behaviors.

Each red team will have its methodology of collecting and digesting threat intelligence in the real world. This room covered basic ground-level knowledge of varying concepts commonly applied to a red team scenario.

When planning an engagement, remember that it is crucial to look at scenarios from all perspectives: offensive, defensive, and the adversary’s.

Threat intelligence allows us as the red team to look deeper into an adversary’s behavior by using the blue team’s methodology to our advantage.


© 2010 - 2024 Classroom

Reading Stuffs

Social Links

YOU CAN REUSE MY CONTENT