Skip to main contentSkip to main content
Room Banner
Back to all walkthroughs
Room Icon

Cyber Kill Chain

The Cyber Kill Chain framework is designed for identification and prevention of the network intrusions. You will learn what the adversaries need to do in order to achieve their goals.

easy

45 min

230,412

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

 

The term kill chain is a military concept related to the structure of an attack. It consists of target identification, decision and order to attack the target, and finally the target destruction.

Thanks to Lockheed Martin, a global security and aerospace company, that established the Cyber Kill Chain® framework for the cybersecurity industry in 2011 based on the military concept. The framework defines the steps used by adversaries or malicious actors in cyberspace. To succeed, an adversary needs to go through all phases of the Kill Chain. We will go through the attack phases and help you better understand adversaries and their techniques used in the attack to defend yourself.

So, why is it important to understand how Cyber Kill Chain works?

The Cyber Kill Chain will help you understand and protect against ransomware attacks, security breaches as well as Advanced Persistent Threats (APTs). You can use the Cyber Kill Chain to assess your network and system security by identifying missing security controls and closing certain security gaps based on your company's infrastructure.

By understanding the Kill Chain as a Analyst, Security Researcher, Threat Hunter, or Incident Responder, you will be able to recognize the intrusion attempts and understand the intruder's goals and objectives. 

We will be exploring the following attack phases in this room:

  • Reconnaissance
  • Weaponization
  • Delivery
  • Exploitation
  • Installation
  • Command & Control
  • Actions on Objectives

Learning Objectives

In this room, you will learn about each phase of the Cyber Kill Chain Framework, the advantages and disadvantages of the traditional Cyber Kill Chain. 

Outcome
As a result, you will be ready to recognize different phases or stages of the attack carried out by an adversary and be able to break the "kill chain."

Answer the questions below
Read the above.

Reconnaissance is the research and planning phase of an attack against a system or victim. Adversaries use this phase to gather information about their target to inform their next steps. This information can include infrastructure details, employee data, business processes, and exposed technologies. Reconnaissance is often passive and undetected.

Poor recon typically leads to sloppy attacks, while well informed adversaries can create highly targeted, believable payloads that increase their chances of success.

A valuable piece of recon is (Open-Source Intelligence). With , adversaries gather insights about their target through publicly available information. Some public sources where data can be collected from include:

  • Search engines
  • Print and online media
  • Social media accounts
  • Online forums and blogs
  • Online public record databases
  • WHOIS and technical data

Find out more about from this Varonis article, "What is ?" (opens in new tab)

Reconnaissance Types

  • Passive Recon: This involves having no direct interaction with the target. This may include WHOIS lookups, social media scraping, or reviewing breach data.
  • Active Recon: This involves direct contact with the target with activities such as , port scanning, banner grabbing, or probing for open services.

Let's look at it from the attacker's perspective, who initially doesn't know what company he wants to attack.

A malicious attacker who names himself "Megatron" decides to conduct a very sophisticated attack that he has been planning out for years; he has been studying and researching different tools and techniques that could help him get to the last phase of the Cyber Kill Chain. But first, he needs to start from the Reconnaissance phase.

In order to operate in this phase, the attacker would need to conduct . Let's have a look at Email harvesting.

Email harvesting is the process of obtaining email addresses from public, paid, or free services. An attacker can use email-address harvesting for a attack (a type of social-engineering attack used to steal sensitive data, including login credentials and credit card numbers). The attacker will have a big arsenal of tools available for reconnaissance purposes. Here are some of them:

Answer the questions below
What is the name of the Intel Gathering Tool that is a web-based interface to the common tools and resources for open-source intelligence?

What is the definition for the email gathering process during the stage of reconnaissance?

After a successful reconnaissance stage, "Megatron" would work on turning the raw information into actionable attack tools through crafting malware and exploits into a payload. Most attackers usually use automated tools to generate the malware or refer to the DarkWeb (opens in new tab) to purchase the malware. More sophisticated actors or nation-sponsored (Advanced Persistent Threat Groups) would write their custom malware to make the malware sample unique and evade detection on the target.

Before we proceed, let's define some key terminology.

Malware is a program or software that is designed to damage, disrupt, or gain unauthorized access to a computer.

Exploits are programs or code that take advantage of the vulnerability or flaw in the application or system.

A payload is a malicious code that the attacker runs on the system.

Continuing with our scenario, "Megatron" chooses to buy an already written payload from someone else in the DarkWeb, so that he can spend more time on the other phases. 

In the Weaponization phase, the attacker can adopt the following tactics:

  • Create an infected Microsoft Office document containing a malicious macros or VBA (Visual Basic for Applications) scripts.
  • Create a malicious payload or a very sophisticated worm, implant it on USB drives, and then distribute them in public.
  • Set up Command and Control () infrastructure for executing the commands on the victim's machine or deliver more payloads.
  • Infect the victim's host with a backdoor, which would provide a way to access the computer system, and bypass the security mechanisms.
  • Tailoring templates or OAuth-consent apps to look legitimate and dupe the victim.
Answer the questions below

What is the term for automated scripts embedded in Microsoft Office documents that can be used to perform tasks or exploited by attackers for malicious purposes?

Delivery is when Megatron decides to choose the method for transmitting the payload or the malware onto the target environment. There are plenty of options to choose from: 

  • email: after conducting the reconnaissance and determining the targets for the attack, the malicious actor could craft a malicious email that would target either a specific person (spear attack) or multiple people in the company. The email would contain a malicious link or email attachment that would result into a compromise.

  • USB drops offer the attacker a physical delivery medium into public places like coffee shops, car parks, or on the street. An attacker might decide to conduct a sophisticated USB Drop Attack by printing the company's logo on the USB drives and mailing them to the company while pretending to be a customer sending the USB devices as a gift.

  • Watering hole attacks are targeted and designed to aim at a specific group of people by compromising the website they are usually visiting, redirecting them to a malicious website of the attacker's choice or creation. Victims would unintentionally download malware or a malicious application to their computer, resulting in a drive-by download. An example can be a malicious pop-up asking to download a fake Browser extension.

Answer the questions below

What do you call an attack targeting a specific group by infecting their frequently visited website?


Exploitation is the moment the attacker's code executes on the target, taking advantage of a known vulnerability. In this phase, Megatron can opt to utilise a number of key techniques to gain access:

  • Malicious macro execution: This may have been delivered through a email, that would execute ransomware when the victim opens it.
  • Zero-day exploits: These leverages on unknown and unpatched flaws in a system. These exploits leave no opportunity for detection at the beginning.
  • Known CVEs: The attacker can choose to exploit unpatched public vulnerabilities found on the target environment.

After gaining access to the system, the malicious actor could exploit software, system, or server-based vulnerabilities to escalate the privileges or move laterally through the network. 

Signs of exploitation to look out for include:

  • Unexpected process spawns.
  • Registry changes or new services created.
  • Suspicious command-line arguments found in system logs.
Answer the questions below

What is the term for a cyber attack that exploits a software vulnerability that is unknown by software vendors?

As you have learned from the Weaponization phase, the backdoor lets an attacker bypass security measures and hide the access. A backdoor is also known as an access point.

Once the attacker gets access to the system, he would want to reconnect back to the system if he loses the connection to it or if he got detected and got the initial access removed. Or if the system is later patched, they will no longer have access to it. That is when the attacker needs to install a persistent backdoor (opens in new tab). A persistent backdoor will let the attacker access the system he compromised in the past. You can check out the Windows Room to learn how an attacker can achieve on Windows. 

The can be achieved through:

  • Installing a web shell on the webserver. A web shell is a malicious script written in web development programming languages such as ASP, , or JSP used by an attacker to maintain access to the compromised system. Because of the web shell simplicity and file formatting (., .asp, .aspx, .jsp, etc.) can be difficult to detect and might be classified as benign. You may check out this great article released by Microsoft (opens in new tab) on various web shell attacks.
  • Installing a backdoor on the victim's machine. For example, the attacker can use (opens in new tab) to install a backdoor on the victim's machine.  is a Framework payload that gives an interactive shell from which an attacker can interact with the victim's machine remotely and execute the malicious code.
  • Creating or modifying Windows services. This technique is known as T1543.003 (opens in new tab) on ATT&CK ( ATT&CK® is a knowledge base of adversary tactics and techniques based on real-world scenarios). An attacker can create or modify the Windows services to execute the malicious scripts or payloads regularly as a part of the . An attacker can use the tools like ssc.exe (sc.exe lets you Create, Start, Stop, Query, or Delete any Windows Service) and Reg (opens in new tab) to modify service configurations. The attacker can also masquerade (opens in new tab) the malicious payload by using a service name that is known to be related to the Operating System or legitimate software.
  • Adding the entry to the "run keys" for the malicious payload in the Registry or the Startup Folder. By doing that, the payload will execute each time the user logs in to the computer. According to ATT&CK, there is a startup folder location for individual user accounts and a system-wide startup folder that will be checked no matter what user account logs in.

You can read more about the Registry Run Keys / Startup Folder on one of the ATT&CK techniques (opens in new tab).

In this phase, the attacker can also use the Timestomping (opens in new tab) technique to avoid detection by the forensic investigator and also to make the malware appear as a part of a legitimate program. The timestomping technique lets an attacker modify the file's timestamps, including to modify, access, create and change times.

Answer the questions below

What technique is used to modify file time attributes to hide new or changes to existing files?

What malicious script can be planted by an attacker on the web server to maintain access to the compromised system and enables the web server to be accessed remotely?

After getting and executing the malware on the victim's machine, Megatron opens up the (Command and Control) channel through the malware to remotely control and manipulate the victim. This term is also known as C&C or Beaconing as a type of malicious communication between a C&C server and malware on the infected host. The infected host will consistently communicate with the server; that is also where the beaconing term came from. 

The compromised endpoint would communicate with an external server set up by an attacker to establish a command & control channel. After establishing the connection, the attacker has full control of the victim's machine. Until recently, (Internet Relay Chat) was the traditional channel used by attackers. This is no longer the case, as modern security solutions can easily detect malicious traffic. 

The most common channels used by adversaries include:

  • on port 80 and HTTPS on port 443, where this type of beaconing blends the malicious traffic with the legitimate traffic and can help the attacker evade firewalls.

  • (Domain Name Server), where the infected machine makes constant requests to the server that belongs to an attacker, this type of communication is also known as Tunneling

Important to note that an adversary or another compromised host can be the owner of the infrastructure.

Answer the questions below
What is the C2 communication where the victim makes regular DNS requests to a DNS server and domain which belong to an attacker. 

After going through six phases of the attack, Megatron can finally achieve his goals, which means taking action on the original objectives. With hands-on keyboard access, the attacker can achieve the following: 

  • Collect the credentials from users.
  • Perform privilege escalation (gaining elevated access like domain administrator access from a workstation by exploiting the misconfiguration).
  • Internal reconnaissance (for example, an attacker gets to interact with internal software to find its vulnerabilities).
  • Lateral movement through the company's environment.
  • Collect and exfiltrate sensitive data.
  • Deleting the backups and shadow copies. Shadow Copy is a Microsoft technology that can create backup copies, snapshots of computer files, or volumes. 
  • Overwrite or corrupt data.
Answer the questions below

What technology is included in Microsoft Windows that can create backup copies or snapshots of files or volumes on the computer, even when they are in use? 

We really hope you enjoyed this room. In order to strengthen your knowledge, let's do a practice analysis. 

Here is the real-world scenario for you to tackle:

The infamous Target cyber-attack, which led to one of the largest data breaches in history took place on November 27, 2013.

On December 19th, 2013, Target released a statement (opens in new tab) confirming the breach, stating that approximately 40 million credit and debit card accounts were impacted between Nov. 27 and Dec. 15, 2013. Target had to pay the fine of $18.5 million under the terms of the multistate settlement agreement (opens in new tab). This is considered to be the largest data-breach settlement in history.

How did the data breach happen? Deploy the static site attached to this task and apply your skills to build the Cyber Kill Chain of this scenario. Here are some tips to help you complete the practical:

1. Add each item on the list in the correct Kill Chain entry-form on the Static Site Lab:

  • exploit public-facing application
  • data from local system
  • dynamic linker hijacking
  • spearphishing attachment
  • fallback channels

2. Use the ‘Check answers’ button to verify whether the answers are correct (where wrong answers will be underlined in red).

Answer the questions below
What is the flag after you complete the static site?


Cyber Kill Chain can be a great tool to improve network defence. Is it perfect and can it be the only tool to rely on? No. 

The traditional Cyber Kill Chain or Lockheed Martin Cyber Kill Chain was last modified in 2011, which, if you remember, is the date of its establishment. The absence of updates and modifications creates security gaps. 

The traditional Cyber Kill Chain was designed to secure the network perimeter and protect against malware threats. But the cybersecurity threats have developed drastically nowadays, and adversaries are combining multiple (tactics, techniques, and procedures) to achieve their goal. Adversaries are capable of defeating threat intelligence by modifying the file hashes and IP addresses. Security solutions companies are developing technologies like () and different algorithms to detect even slight and suspicious changes. 

Since the main focus of the framework is on malware delivery and network security, the traditional Cyber Kill Chain will not be able to identify Insider Threats. According to CISA (opens in new tab), "The Insider Threat is the potential for an insider to use their authorized access or understanding of an organization to harm that organization."

We recommend not only relying on the traditional Cyber Kill Chain model but also referring to ATT&CK (opens in new tab) as well as Unified Kill Chain (opens in new tab) to apply a more comprehensive approach to your defence methodologies. 

Answer the questions below
Read the above.

FAQ

Ready to learn Cyber Security?

TryHackMe provides free online cyber security training to secure jobs & upskill through a fun, interactive learning environment.

Already have an account? Log in

We use cookies to ensure you get the best user experience. For more information see our cookie policy.