[Day 1] 3. Software Vulnerabilities
What is a Software Bug?
- A software bug is a flaw in a program that causes it to behave unexpectedly.
What is VAPT (Vulnerability Assessment and Penetration Testing)?
- Purpose: Identifies vulnerabilities (weaknesses) in a system.
- Example: Testing for flaws that could compromise system security.
World's Costliest Vulnerability: ARIANE 5 Case Study
- Event: European Space Agency's ARIANE 5 rocket failure.
- Cause: A program tried to fit a 64-bit number into a 16-bit space, leading to catastrophic failure.
What is a Vulnerability?
-
A weakness that threatens the confidentiality, integrity, or availability of an asset.
-
It exists due to a lack of countermeasures. Types of Vulnerabilities:
- Design Vulnerability: Fault in the system's design.
- Example: Flaws in the TCP/IP stack.
- Implementation Vulnerability: Correct design but faulty implementation.
- Example: Buffer overflows.
- Operational/Configurational Vulnerability: Correct design and implementation but poor configuration or operation.
- Example: Using default usernames/passwords on critical devices.
- Design Vulnerability: Fault in the system's design.
Threats, Risks, and Countermeasures
- Threat: Potential danger to systems or information.
- Example: An attacker exploiting a vulnerability.
- Risk: The probability of a threat occurring.
Risk Management Process:
- Identify Risk
- Assess Risk
- Control Risk
- Review Risk
Exposure:
- Sharing information unnecessarily, which can lead to vulnerabilities.
Countermeasure:
- Security measures to reduce risk, such as firewalls or antivirus software.
Quality of Service (QoS)
- Purpose: Prioritizes certain types of packets for better performance.
- Example:
- During a live match, radio audio is delivered faster than live-stream video due to prioritization of audio packets over video packets.
- QoS Field: A field in packets (that carry the data) that determines priority levels.
FUS Triangle
- Functionality, Usability, and Security
- Balancing these three aspects is crucial for robust systems.
Defense in Depth
- Also known as Castle Approach or Elastic Defense.
- Protects assets using multiple layers of defense, which can be added or removed as required.
Defense Layers:
- Data Defenses (e.g., encryption)
- Application Defenses (e.g., secure coding practices)
- Host Defenses (e.g., endpoint protection)
- Network Defenses (e.g., firewalls)
- Perimeter Defenses (e.g., intrusion detection systems)
- Physical Security (e.g., locks and surveillance)
- Policies, Procedures, and Awareness (e.g., employee training).
Read Next
[Day 1] 4. Wireshark
- **Creator:** Gerald Combs. - **Previous Name:** Ethereal (older version of Wireshark). - **Purpose:** A packet capturing and analyzing tool. ##...
[Day 1] 5. Hash Function
### **What is Hashing?** - **Hashing is not encryption.** - A hash function is a mathematical function that takes a **variable-length input**...