I. Overview

%%{init: { 'theme': 'base', 'themeVariables': { 'edgeLabelBackground': '#fff' }}}%%
flowchart LR
    A["Fragmented security policy\nfocused on one layer"] -- "Threat ID and defense-in-depth\nacross every layer" --> B["Layered security posture\nbuilt on the OSI 7 layers"]
    style A fill:#f9f9f9,stroke:#333,stroke-width:3px
    style B fill:#e1f5fe,stroke:#01579b,stroke-width:3px

Definition: The set of security vulnerabilities unique to each layer of the OSI 7 Layer standard model — which divides the network communication process into seven layers — and the technical defense systems that counter them.

Features:
( Systematic Threat Identification ) Clearly identifies the communication protocol location targeted by attackers, enabling a precise response strategy.
( Defense in Depth ) Builds staged defenses from the lower physical layer up to the upper application layer, eliminating a single point of failure ( SPOF ).
( Accountability ) Quickly pinpoints the layer at which a security incident occurred, shortening incident response ( IR ) time.
( Optimized Visibility ) Improves detection accuracy for anomalous attack patterns by analyzing the traffic characteristics of each layer.

II. Mechanism & Components

Mapping of Representative Attacks and Security Solutions by Layer

LayerPrimary Security ThreatsCountermeasure Technology/Solution
L7. ApplicationHTTP Flood, SQL Injection, XSSWAF, IPS, secure coding, API Gateway
L6. PresentationDecryption bypass, format tampering attacksSSL/TLS encryption, data integrity verification
L5. SessionSession Hijacking, RPC attacksStrong authentication, session timeout, SSH
L4. TransportTCP SYN Flood, UDP Flood, port scanningFirewall ( ACL ), IDS/IPS, kernel parameter tuning
L3. NetworkIP Spoofing, ICMP Flood, DDoSIPsec, router filtering, Bogon filtering
L2. Data LinkARP Spoofing, MAC Flooding, VLAN HopPort Security, DHCP Snooping, DAI
L1. PhysicalCable eavesdropping ( Tapping ), equipment destruction, power cutoffPhysical access control, closed-circuit TV ( CCTV ), shielded cabling

Cross-Layer Attack Chain Scenario

graph TD
    L2["L2: ARP Spoofing\n(Establishes man-in-the-middle position)"] --> L3["L3: IP Spoofing\n(Source disguise)"]
    L3 --> L4["L4: SYN Flood\n(Availability disruption)"]
    L4 --> L7["L7: App Attack\n(Data theft/destruction)"]

    style L2 fill:#f1f8e9,stroke:#8bc34a
    style L7 fill:#fff3e0,stroke:#ff9800

III. Advanced Topics & Comparison

Lower-Layer (L1-L3) vs. Upper-Layer (L4-L7) Security

ComparisonLower-Layer Security (L1-L3)Upper-Layer Security (L4-L7)
Primary FocusPacket transmission, path control, physical connectivityData processing, service logic, user authentication
Security GoalAvailability and integrity of network infrastructureData confidentiality and protection of business logic
Unit of AnalysisPacket headers, MAC/IP addressesPayload, message body, session
Primary EquipmentRouter, L3 switch, VPNWAF, next-generation firewall ( NGFW ), IPS

Practical Recommendations for Security Maturity

  • Integrated Monitoring Across All Layers: Use SIEM or SOAR to correlate logs generated at each layer, detecting composite attacks.
  • Apply the Zero Trust Model: Regardless of layer, apply micro-segmentation ( Micro-segmentation ) under the principle of “never trust, always verify.”
  • Ensure Encrypted Visibility: Consider adopting SSL Inspection technology to detect malicious code hidden within L6/L7-level encrypted traffic.

Key Point: Since modern attacks are not confined to a single layer but evolve across all layers, building a defense-in-depth system spanning the entire OSI 7-layer model is fundamental to achieving cyber resilience ( Resilience ).

Last updated 18 Aug 2026, 00:00 UTC. history