The Wayback Machine - https://web.archive.org/web/20240617015449/https://www.geeksforgeeks.org/dfd-based-threat-modelling-set-2/
Open In App

DFD Based Threat Modelling | Set 2

Last Updated : 29 Sep, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Prerequisite – Threat Modelling, DFD Based Threat modelling | Set 1 
Visual representation using DFD: 
DFD is iterative in nature. Thus modelling a system involves the construction of different levels of DFD. This means to accurately reflect the system, DFD must be organized in a hierarchical way. Following the various shapes that are used in a DFD: 
 

1 Process – 
Each process in a DFD is given a unique number where the subprocess will have a number prefixed with the parent process number. Process means an entity that performs a specific task on a given data. Following is the shape for a process: 

 

 

2 Multiple process – 
This means the process has a subprocess and the subprocess number is prefixed by the parent process number. For example, the parent process number is 1. Then subprocess will have number 1.1 and subprocess will have number 1.1.1 and so on. Shape for Multiple process is as follows: 

 

3 External entity – 
It can only interact at the Entry point or exit point and is located outside the system. It may only interact with process or multiple processes. It can be either source of data or a destination of data. Below is the shape for an external entity used in DFD: 

 

 

4 Data store – 
It is the place where data is stored or from where data is retrieved. It can only interact with process or multiple processes. Shape for Data Store is as follows: 

 

5 Data flow – 
This is used to show the movement of data between the elements. Below is the shape for Data Flow: 

 

 

6 Trust boundary – 
It is a boundary between trust levels or privileges. Following is the shape for trust boundary: 

 

DFD starts with an overall context level diagram that represents the whole system as single multiple processes. Each node is then a more detailed DFD representing other processes. 

 

Determining threats – 
This is the last step in threat modelling a system. After creating a DFD, the next step is to identify the goals adversary might have in the system. These goals are then used to determine the threat paths, locate entry/exit points and follow the data through the system to understand what data is supplied to which node. 

Before going forward we will first understand what a threat path is. A threat path is a sequence of process nodes that perform some sort of security-critical operation and are thus vulnerable to an attack. All the process nodes where there is a change or action on behalf of data are susceptible to threats. 

Following are the series of steps conducted in this phase. 

Threat profile – 
This is the security design specification that describes the following two things: first the possible goals of an adversary in the system and second and most important the vulnerabilities that exist due to these goals. 

Each identified threat should either be prevented or mitigated. The threat profiles encompass following key areas: 
 

  1. Identify the threats – 
    Threat identification is a very important step towards building a secure system. Identifying threats is a 3 step process where the first step involves analyzing each entry/exit point, the second step involves identifying the nature and type of critical processing occurring at entry/exit points and the third and the last step involves thinking and describing how entry/exit point might be attacked. Identifying threats is not an easy process to do. It involves asking questions like: 

    Is it possible for an adversary to gain access to assets without being audited or by skipping access controls or by acting as another user? 

    How an adversary can use or manipulate data to retrieve information from the system or edit information in the system or modify/control the system or gain additional privileges or cause the system to fail or become unusable. 

    These are just the basic questions. It requires a lot of brainstorming on the part of the security team to identify as many possible threats. 
    The next step in identifying threats is threats classification. STRIDE is one of the methods that we use in conjunction with DFD for threat classification. We have discussed STRIDE in the previous article. 
     

  2. Investigate and analyse the threats – 
    After identifying threats next step is to conduct an in-depth analysis of identified threats to determine vulnerable areas and valid attack paths. 

    Threat trees are used for this purpose. There are two ways to express a threat tree: one is the graphical way, another is using the textual representation. 
    The basic structure of a threat tree consists of a root node and child nodes. Each child node represents a condition needed for the adversary to find and identify the threats. The procedure to identify the vulnerabilities involve beginning at a node with no child and then traversing is done in a bottom-up manner up to the root. 

    Another step in analyzing threats involves determining the risk of threats and threat conditions. This is done by using DREAD Model. We have discussed this model in the previous article. 
     

  3. Mitigate the vulnerabilities caused by the threats – 
    Till this point, all threats have been identified and resolved. If any threat remains still unresolved then it will result in a vulnerability. Upon completion of the threat tree, attack paths are identified. If any attack path is not mitigated, it will result in Vulnerability. A threat modelling document consisting of threats, threat trees, vulnerabilities and mitigation’s This threat document will be used in the design phase as a security specification document and in the testing phase as a base to identify the vulnerable areas of the system. 
     

Similar Reads

DFD Based Threat modelling | Set 1
Prerequisite - Threat Modelling DFD based Threat Modelling is one of the methods to visually represent the system being modelled with the other being Process Diagram based Threat Modelling. By using this approach threat modelling team will be able to identify the key processes in the system and threats to those processes by systematically following
5 min read
Microsoft Threat modelling tool 2016 | Set 2
In the previous article (i.e., Set 1) we have discussed about the introduction of Microsoft threat modelling Tool- from where to download the tool, steps to install the tool, components available for modelling the system using Data Flow Diagram. In this article we will be discussing the list of attributes for each element and the values of these at
4 min read
Microsoft Threat modelling tool 2016 | Set 1
After having a discussion on Threat modelling. Now we are aware of what is threat modelling and what are the two approaches for threat modelling- DFD Based Threat Modelling Set 1, & Set 2 and Process Flow Diagram Based Threat Modelling. In this article we will in detail discuss Microsoft Threat Modelling Tool 2016. This tool can: Can create DFD
7 min read
Threat Modelling
Pre-Requisite: Threats With the advancement in technology, it becomes easier day by day for hackers to gain access to sensitive data, disable applications, etc. Thus, Application Security has become a major concern. One method used to implement application security in the design process is through THREAT MODELLING. Threats can be anything that can
11 min read
Difference Between Threat, Vulnerability and Risk in Computer Network
The Threat, Vulnerability, and Risk these terms are interrelated but not the same. In this article, we are going to discuss the difference between them and how they are related to each other. Threat A cyber threat is a malicious act that seeks to steal or damage data or discompose the digital network or system. Threats can also be defined as the po
4 min read
What is Unified Threat Management (UTM)?
In this article, we will learn about Unified Threat Management (UTM) and how it protects our computers against external threats and malware. Unified Threat Management (UTM) is the process to tackle the attacks and malware threats on a network so that the safety of all the devices is maintained during the connection. The various examples of Unified
5 min read
Different Types of Threat to E-Commerce
E-commerce is basically the process of buying and selling commodities and goods over the Internet. In E-commerce, transactions take place via digital methods via electronic funds and the processing of online transactions. Since E-commerce deals with the transfer of money digitally, hackers and attackers use this as an opportunity to break into E-co
6 min read
Difference between Threat and Attack
Threats and attacks are two important aspects from a security point of view. A threat is malicious act, that has the potential to damage the system or asset while an attack is an intentional act that causes damage to a system or asset. In this article, we will understand threats and attacks, and the differences between them. What is a Threat?A thre
4 min read
What is Threat Hunting in Cyber Security?
Threat Hunting in Cyber Security is an active IT security activity to detect and remove malicious attacks that have penetrated without raising any alarms. Cyberthreat hunting can be quite similar to real-world hunting. It demands a particularly qualified specialist with much patience, critical thinking, creativity, and an excellent eye for finding
6 min read
Advanced Persistent Threat
Advanced Persistent Threat (APT) is like a stealthy burglar who breaks into a house and stays hidden for a long time, carefully stealing valuable items without being noticed. They use sophisticated techniques to avoid detection and maintain access, allowing them to continuously gather sensitive information or cause damage over an extended period. U
7 min read