mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 01:17:36 +00:00
Create threat-modeling.md
Updated initial threat modeling suggestion by adding more context, adjusting the softwares description and adding an image. More content will be added such as images and tools in the coming weeks, just wanted to make a start with this. Hopefully this improved version is better then the previous version, if it still requires changes then please do let me know and I will update it accordingly.
This commit is contained in:
parent
184e54867b
commit
d57d4b6482
1 changed files with 64 additions and 0 deletions
64
generic-methodologies-and-resources/threat-modeling.md
Normal file
64
generic-methodologies-and-resources/threat-modeling.md
Normal file
|
@ -0,0 +1,64 @@
|
|||
|
||||
# Threat Modeling
|
||||
Welcome to HackTricks' comprehensive guide on Threat Modeling! Embark on an exploration of this critical aspect of cybersecurity, where we identify, understand, and strategize against potential vulnerabilities in a system. This thread serves as a step-by-step guide packed with real-world examples, helpful software, and easy-to-understand explanations. Ideal for both novices and experienced practitioners looking to fortify their cybersecurity defenses.
|
||||
|
||||
![](<../.gitbook/assets/threatmodel1.png>)
|
||||
|
||||
## Commonly Used Scenarios
|
||||
1. Software Development: As part of the Secure Software Development Life Cycle (SSDLC), threat modeling helps in identifying potential vulnerabilities in the early stages of development.
|
||||
|
||||
2. Penetration Testing: As you've mentioned, the Penetration Testing Execution Standard (PTES) framework requires threat modeling to understand the system's vulnerabilities before carrying out the test.
|
||||
|
||||
## Threat Model in a Nutshell
|
||||
A Threat Model is typically represented as a diagram, image, or some other form of visual illustration that depicts the planned architecture or existing build of an application. It bears resemblance to a data flow diagram, but the key distinction lies in its security-oriented design. Threat models often feature elements marked in red, symbolizing potential vulnerabilities, risks, or barriers. To streamline the process of risk identification, the CIA (Confidentiality, Integrity, Availability) triad is employed, forming the basis of many threat modeling methodologies, with STRIDE being one of the most common. However, the chosen methodology can vary depending on the specific context and requirements.
|
||||
|
||||
## The CIA Triad
|
||||
The CIA Triad is a widely recognized model in the field of information security, standing for Confidentiality, Integrity, and Availability. These three pillars form the foundation upon which many security measures and policies are built, including threat modeling methodologies.
|
||||
|
||||
1. Confidentiality: Ensuring that the data or system is not accessed by unauthorized individuals. This is a central aspect of security, requiring appropriate access controls, encryption, and other measures to prevent data breaches.
|
||||
|
||||
2. Integrity: The accuracy, consistency, and trustworthiness of the data over its lifecycle. This principle ensures that the data is not altered or tampered with by unauthorized parties. It often involves checksums, hashing, and other data verification methods.
|
||||
|
||||
3. Availability: This ensures that data and services are accessible to authorized users when needed. This often involves redundancy, fault tolerance, and high-availability configurations to keep systems running even in the face of disruptions.
|
||||
|
||||
## Threat Modeling Methodlogies
|
||||
|
||||
1. STRIDE: Developed by Microsoft, STRIDE is an acronym for Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege. Each category represents a type of threat, and this methodology is commonly used in the design phase of a program or system to identify potential threats.
|
||||
|
||||
2. DREAD: This is another methodology from Microsoft used for risk assessment of identified threats. DREAD stands for Damage potential, Reproducibility, Exploitability, Affected users, and Discoverability. Each of these factors is scored, and the result is used to prioritize identified threats.
|
||||
|
||||
3. PASTA (Process for Attack Simulation and Threat Analysis): This is a seven-step, risk-centric methodology. It includes defining and identifying security objectives, creating a technical scope, application decomposition, threat analysis, vulnerability analysis, and risk/triage assessment.
|
||||
|
||||
4. Trike: This is a risk-based methodology that focuses on defending assets. It starts from a risk management perspective and looks at threats and vulnerabilities in that context.
|
||||
|
||||
5. VAST (Visual, Agile, and Simple Threat modeling): This approach aims to be more accessible and integrates into Agile development environments. It combines elements from the other methodologies and focuses on visual representations of threats.
|
||||
|
||||
6. OCTAVE (Operationally Critical Threat, Asset, and Vulnerability Evaluation): Developed by the CERT Coordination Center, this framework is geared toward organizational risk assessment rather than specific systems or software.
|
||||
|
||||
## Threat Modeling Software
|
||||
There are several tools and software solutions available that can assist with the creation and management of threat models. Here are a few you might consider.
|
||||
|
||||
### SpiderSuite
|
||||
|
||||
An advance cross-platform and multi-feature GUI web spider/crawler for cyber security proffesionals. Spider Suite can be used for attack surface mapping and analysis.
|
||||
|
||||
```
|
||||
Download: [**https://github.com/3nock/SpiderSuite**](https://github.com/3nock/SpiderSuite)
|
||||
```
|
||||
|
||||
### Microsoft Threat Modeling Tool
|
||||
|
||||
This is a free tool from Microsoft that helps in finding threats in the design phase of software projects. It uses the STRIDE methodology and is particularly suitable for those developing on Microsoft's stack.
|
||||
|
||||
```
|
||||
Download: [**https://aka.ms/threatmodelingtool**](https://aka.ms/threatmodelingtool)
|
||||
```
|
||||
|
||||
### OWASP Threat Dragon
|
||||
|
||||
An open-source project from OWASP, Threat Dragon is both a web and desktop application that includes system diagramming as well as a rule engine to auto-generate threats/mitigations.
|
||||
|
||||
```
|
||||
Download: [**https://github.com/OWASP/threat-dragon/releases**](https://github.com/OWASP/threat-dragon/releases)
|
||||
```
|
||||
|
Loading…
Reference in a new issue