π§ The Fragile Triangle of Internet Infrastructure: DNS, DHCP & BGP
Modern digital networks depend on three critical control-plane protocols to establish communication: Domain Name System (DNS) translates human-readable hostnames into IP routing addresses; Dynamic Host Configuration Protocol (DHCP) automatically provisions local network nodes with IP addresses, subnet masks, default gateways, and resolver pointers; and Border Gateway Protocol (BGP) orchestrates global prefix routing across autonomous systems (AS) on the internet backbone. However, all three were designed decades ago under implicit trust assumptions with no native cryptographic authentication. An attacker who manipulates DNS records can invisibly hijack confidential web traffic; a rogue DHCP server can redirect an entire corporate subnet through a malicious gateway; and a fraudulent BGP route announcement can divert continental internet traffic across adversarial surveillance nodes. Securing enterprise infrastructure requires deploying cryptographic attestation and active switch-plane controls: DNSSEC, DHCP Snooping with Option 82, and RPKI Route Origin Validation.
CORE INFRASTRUCTURE PROTOCOL THREAT & DEFENSE MAPPING:
1. DOMAIN NAME SYSTEM (DNS - RFC 1035):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Inherent Flaw : UDP port 53 transport; 16-bit Transaction ID (TXID) easily spoofed; β
β resolvers accept unauthenticated responses from whoever responds first. β
β Threat Vector : DNS Cache Poisoning, Kaminsky Cache Injection, DNS Hijacking, Man-in-the-Middle β
β Modern Defense: DNSSEC (RFC 4033-4035), DNS-over-HTTPS (DoH / RFC 8484), DNS-over-TLS (DoT) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
2. DYNAMIC HOST CONFIGURATION PROTOCOL (DHCP - RFC 2131):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Inherent Flaw : Broadcast UDP discovery (Ports 67/68); clients accept whichever DHCP OFFER β
β arrives earliest; zero server authenticity or lease binding validation. β
β Threat Vector : Rogue DHCP Server (Gateway / DNS poisoning), DHCP Pool Starvation (MAC spoof) β
β Modern Defense: Layer-2 DHCP Snooping, Dynamic ARP Inspection (DAI), IP Source Guard (IPSG) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
3. BORDER GATEWAY PROTOCOL (BGPv4 - RFC 4271):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Inherent Flaw : Trust-by-default exterior routing; Autonomous Systems (AS) announce IP β
β prefixes without cryptographic ownership proof; shortest AS-Path preferred. β
β Threat Vector : BGP Route Hijacking, Sub-prefix Hijacking (/24 vs /22), AS-Path Forgery β
β Modern Defense: Resource Public Key Infrastructure (RPKI / RFC 6480), BGPsec (RFC 8205) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
THE KAMINSKY DNS CACHE POISONING ATTACK LIFECYCLE:
[ATTACKER WORKSTATION]
β
ββ 1. Query: "What is IP of 0001.bank.com?" βββΊ [TARGET RECURSIVE RESOLVER]
β β
β ββ 2. Resolver queries Authoritative Name Server:
β β Outbound: UDP to Auth-NS | TXID = [Unknown 16-bit]
β βΌ
β [AUTHORITATIVE NS FOR BANK.COM]
β β
ββ 3. Attacker floods Resolver with 5,000 β
β spoofed responses claiming to be Auth-NS: β
β β’ Guesses TXID: 0x0001, 0x0002, ..., 0x1388 β
β β’ Answer: 0001.bank.com = 198.51.100.1 β
β β’ AUTHORITY SECTION: β
β NS for bank.com = ns.attacker.com <-- POISON! β
β β’ ADDITIONAL SECTION: β
β ns.attacker.com A = 203.0.113.66 β
β β
βΌ βΌ
If one of the 5,000 forged responses arrives BEFORE the legitimate Authoritative response:
AND the 16-bit TXID matches the query:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[RESOLVER CACHE IS POISONED FOR THE ENTIRE DOMAIN!]
β’ The resolver accepts the forged Authority Record: bank.com NS is now ns.attacker.com!
β’ TTL = 86400 seconds (24 hours).
β’ All future queries for ANY subdomain (login.bank.com, mail.bank.com) are routed directly
to the attacker's nameserver without needing further brute-force attempts!
DNSSEC RECORD TYPES & CRYPTOGRAPHIC VERIFICATION HIERARCHY:
1. CORE RECORD SETS:
βββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β RECORD TYPE β CRYPTOGRAPHIC FUNCTION & USAGE β
βββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β RRSIG (Resource Record β Digital signature covering a specific Record Set (RRset). Validated β
β Signature) β against the zone's public key (ZSK). Contains validity timestamps. β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ€
β DNSKEY β Holds public keys: β
β β β’ ZSK (Zone Signing Key): Signs authoritative zone data records. β
β β β’ KSK (Key Signing Key): Signs the ZSK record set; parent holds DS. β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββ€
β DS (Delegation Signer) β Cryptographic SHA-256 hash of the child zone's KSK, hosted in the β
β β PARENT zone. Bridges the chain of trust across zone boundaries. β
βββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β NSEC / NSEC3 β Authenticated Denial of Existence. Cryptographically proves that a β
β β queried name does not exist without enabling zone enumeration walks.β
βββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2. THE DNSSEC CHAIN OF TRUST (ROOT TO HOSTNAME):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ICANN ROOT ZONE (".") β
β β’ Root KSK Anchor: Hardcoded in validating resolvers worldwide (RFC 7958). β
β β’ Signs: Root ZSK via RRSIG. β
β β’ Signs: DS record for top-level domain ".com". β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ (DS record validates child KSK)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β TLD ZONE (".com") β
β β’ KSK matches the parent Root DS hash. Signs: .com ZSK. β
β β’ Signs: DS record for child zone "nikita-infotech.com". β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ (DS record validates child KSK)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AUTHORITATIVE ZONE ("nikita-infotech.com") β
β β’ KSK matches .com DS hash. Signs: nikita-infotech.com ZSK. β
β β’ ZSK signs: "api.nikita-infotech.com A 198.51.100.25" with an RRSIG record. β
β β’ Resolver verifies RRSIG using ZSK βββΊ Resolves authentic IP address with tamper-proofing! β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
dnspython. Queries DNSKEY, DS, and RRSIG records, checks the Authenticated Data (AD) flag on resolving lookups, and validates cryptographic parameters.
import dns.resolver
import dns.query
import dns.message
import dns.rdatatype
class DnssecAuditor:
def __init__(self, target_domain: str, recursive_dns: str = "8.8.8.8"):
self.domain = target_domain
self.dns_ip = recursive_dns
def check_authenticated_data_flag(self) -> dict:
"""
Sends query with DNSSEC OK (DO) flag enabled.
Inspects if resolver returned the Authenticated Data (AD) flag bit.
"""
# Create standard DNS query for domain A record
request = dns.message.make_query(self.domain, dns.rdatatype.A, want_dnssec=True)
# Transmit query over UDP socket to resolving server
response = dns.query.udp(request, self.dns_ip, timeout=4)
ad_flag_set = bool(response.flags & dns.flags.AD)
rcode_str = dns.rcode.to_text(response.rcode())
a_records = []
rrsig_present = False
for rrset in response.answer:
if rrset.rdtype == dns.rdatatype.A:
a_records.extend([rdata.to_text() for rdata in rrset])
elif rrset.rdtype == dns.rdatatype.RRSIG:
rrsig_present = True
return {
"target_domain": self.domain,
"response_code": rcode_str,
"ad_flag_set": ad_flag_set,
"rrsig_returned": rrsig_present,
"resolved_ip": a_records,
"dnssec_status": "SECURE_AND_VALIDATED" if (ad_flag_set and rrsig_present) else "UNPROTECTED_OR_FAILED"
}
def query_dnssec_keys(self) -> list:
"""Queries authoritative DNSKEY records for KSK and ZSK evaluation."""
keys = []
try:
req = dns.message.make_query(self.domain, dns.rdatatype.DNSKEY, want_dnssec=True)
res = dns.query.udp(req, self.dns_ip, timeout=4)
for rrset in res.answer:
if rrset.rdtype == dns.rdatatype.DNSKEY:
for rdata in rrset:
# Flag 256 = ZSK (Zone Signing Key), Flag 257 = KSK (Key Signing Key)
role = "KSK (Key Signing Key)" if rdata.flags == 257 else "ZSK (Zone Signing Key)"
keys.append({
"flags": rdata.flags,
"role": role,
"algorithm": rdata.algorithm,
"protocol": rdata.protocol
})
except Exception as e:
keys.append({"error": str(e)})
return keys
if __name__ == "__main__":
# Test against cloudflare.com (A fully signed DNSSEC production zone)
auditor = DnssecAuditor("cloudflare.com", "8.8.8.8")
result = auditor.check_authenticated_data_flag()
print("==========================================================================")
print(" DNSSEC CRYPTOGRAPHIC RECORD AUDIT REPORT")
print("==========================================================================")
print(f"[*] Target Domain : {result['target_domain']}")
print(f"[*] Response Code : {result['response_code']}")
print(f"[*] Resolved IPs : {result['resolved_ip']}")
print(f"[*] RRSIG Returned : {result['rrsig_returned']}")
print(f"[*] AD Flag Asserted: {result['ad_flag_set']} (Cryptographically Verified by Resolver)")
print(f"[β] Security Status : {result['dnssec_status']}")
print("\n--- DNSKEY INFRASTRUCTURE ---")
key_info = auditor.query_dnssec_keys()
for k in key_info:
print(f" β’ Flag {k.get('flags')}: {k.get('role')} | Algorithm ID: {k.get('algorithm')}")
THE TWO-PHASE DHCP ATTACK ARCHITECTURE:
PHASE 1: DHCP POOL STARVATION ATTACK (DENIAL OF SERVICE)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Attacker connects to local switch port and launches an automated MAC address generator tool: β
β 1. Attacker generates 1,000 unique randomized MAC addresses. β
β 2. Transmits 1,000 DHCPDISCOVER broadcast packets (UDP 67). β
β 3. Legitimate DHCP Server assigns an IP lease to every unique MAC. β
β 4. Available Pool (e.g., 192.168.1.100 - 192.168.1.254) is COMPLETELY EXHAUSTED! β
β 5. Legitimate new endpoints connecting to the Wi-Fi or Ethernet get ZERO response. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ (Attacker deploys replacement rogue service)
PHASE 2: ROGUE DHCP SERVER DEPLOYMENT (MAN-IN-THE-MIDDLE HIJACK)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Attacker spins up a rogue DHCP daemon on their machine: β
β 1. Legitimate user connects and broadcasts: DHCPDISCOVER. β
β 2. Real DHCP server cannot answer (Pool is starved or slower). β
β 3. Rogue DHCP Server answers immediately with a DHCPOFFER: β
β βββ Assigned IP : 192.168.1.188 β
β βββ Subnet Mask : 255.255.255.0 β
β βββ Default Gateway : 192.168.1.50 (ATTACKER'S OWN IP ADDRESS!) β
β βββ Primary DNS : 192.168.1.50 (ATTACKER'S ROGUE DNS PROXY!) β
β β
β RESULT: All outbound internet traffic from the victim is routed directly through the β
β attacker's laptop before reaching the real router. Attacker performs full SSL stripping, β
β credential sniffing, and DNS redirection with zero alerts on the victim's machine! β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
! ==============================================================================
! ENTERPRISE SWITCH HARDENING: DHCP SNOOPING & DYNAMIC ARP INSPECTION
! Applied on Layer-2 Access Switch to eradicate Rogue DHCP & ARP Spoofing
! ==============================================================================
! Step 1: Globally enable DHCP Snooping on the switch
Switch(config)# ip dhcp snooping
! Step 2: Enable DHCP Snooping on targeted user access VLANs
Switch(config)# ip dhcp snooping vlan 10,20,30
! Step 3: By default, ALL switchports are marked UNTRUSTED!
! Packets like DHCPOFFER and DHCPACK arriving on an UNTRUSTED port are DROPPED!
! Now, explicitly configure the legitimate uplink port connecting to the REAL DHCP server as TRUSTED:
Switch(config)# interface GigabitEthernet 0/1
Switch(config-if)# description UPLINK_TO_LEGITIMATE_CORE_DHCP_SERVER
Switch(config-if)# ip dhcp snooping trust
Switch(config-if)# exit
! Step 4: Protect against DHCP Starvation by rate-limiting requests on untrusted user ports
Switch(config)# interface range GigabitEthernet 0/2 - 24
Switch(config-if-range)# description USER_ACCESS_PORTS
Switch(config-if-range)# ip dhcp snooping limit rate 15 ! Drop port if > 15 DHCP packets/sec
Switch(config-if-range)# exit
! Step 5: Enable Option 82 (DHCP Relay Information Option)
! Inserts switch ID and physical port into DHCP packet to track exact socket origin
Switch(config)# ip dhcp snooping information option
! Step 6: Enable Dynamic ARP Inspection (DAI)
! Validates ARP packets against the dynamic IP-to-MAC binding database built by DHCP Snooping!
Switch(config)# ip arp inspection vlan 10,20,30
Switch(config)# interface GigabitEthernet 0/1
Switch(config-if)# ip arp inspection trust
Switch(config-if)# exit
/24 vs. /22) hijack global traffic based on Longest Prefix Match rules.
THE MECHANICS OF A BGP SUB-PREFIX ROUTE HIJACK:
SCENARIO: ADVERSARY HIJACKS BANK PREFIX (e.g., 198.51.100.0/22)
1. LEGITIMATE ROUTING ADVERTISEMENT:
β’ Legitimate Owner: Autonomous System AS-65000 (The Bank)
β’ BGP Announcement: 198.51.100.0/22 via AS-Path: [AS-65000]
β’ Global Coverage: Covers all IPs from 198.51.100.0 through 198.51.103.255 (1,024 hosts).
2. ADVERSARIAL HIJACK ANNOUNCEMENT (SUB-PREFIX HIJACK):
β’ Attacker System: Autonomous System AS-666 (Rogue Provider / Hostile ISP)
β’ BGP Announcement: 198.51.100.0/24 via AS-Path: [AS-666]
β’ Notice: The attacker announces a MORE SPECIFIC prefix (/24 is 256 hosts vs /22 is 1024 hosts).
3. THE INTERNET ROUTING DECISION RULE (LONGEST PREFIX MATCH):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Fundamental Rule of IP Routing: β
β "A router MUST ALWAYS forward a packet according to the most specific matching route β
β (the longest subnet mask), REGARDLESS of the AS-Path length!" β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β GLOBAL ROUTING TABLE CONVERGENCE: β
β Core Internet Tier-1 Routers receive both announcements: β
β β’ Destination 198.51.100.25 matches /22 (AS-65000) β
β β’ Destination 198.51.100.25 matches /24 (AS-666) <-- MORE SPECIFIC (/24 > /22)! β
β β
β RESULT: 100% of global internet traffic destined for the bank's login portal is redirected β
β across continents into AS-666! The attacker intercepts credentials, terminates TLS, or sinks β
β the traffic completely (Blackholing). β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
RPKI ARCHITECTURE & ROUTE ORIGIN VALIDATION (ROV):
1. THE RPKI TRUST HIERARCHY:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 5 Regional Internet Registries (RIRs: APNIC, ARIN, RIPE NCC, LACNIC, AFRINIC) act as CAs. β
β They allocate IP address blocks and Autonomous System Numbers (ASNs) to organizations. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ (Signs ROA Document)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ROUTE ORIGIN AUTHORIZATION (ROA) DOCUMENT: β
β A digitally signed CMS object asserting: β
β "Prefix: 198.51.100.0/22 | MaxLength: /24 | Authorized ASN: AS-65000" β
β Signed with the private key of the legitimate IP resource holder; validated by RIR Root CA. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ (Synchronized via RTR Protocol to Routers)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β BGP ROUTE ORIGIN VALIDATION (ROV) STATES AT RECEIVING ROUTERS: β
β β
β 1. VALID: β
β BGP update matches a published ROA (Prefix matches, ASN matches, prefix-length <= MaxLengthβ
β Decision: ACCEPT route and install in routing table. β
β β
β 2. INVALID (UNAUTHORIZED HIJACK DETECTED): β
β A ROA exists for the prefix, but either: β
β β’ The announcing ASN is wrong (e.g., AS-666 announced it instead of AS-65000), OR β
β β’ The prefix length exceeds MaxLength (e.g., announced /25 when MaxLength was /24). β
β Decision: DROP ROUTE IMMEDIATELY! (Does not enter forwarding table). β
β β
β 3. UNKNOWN / NOT FOUND: β
β No ROA has been signed or published for this IP space yet. β
β Decision: Accept as fallback (legacy behavior until global RPKI adoption reaches 100%). β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
INFRASTRUCTURE MISCONFIGURATIONS & DEFECT REMEDIATIONS:
// ==============================================================================
// PITFALL 1: DNS RESOLUTION FAILS WITH "SERVFAIL" (DNSSEC CLOCK DRIFT)
// SYMPTOM: dig @8.8.8.8 api.nikita-infotech.com returns SERVFAIL, but non-DNSSEC
// resolvers resolve the IP address without issue!
// CAUSE: RRSIG records contain strict Inception and Expiration timestamps.
// If the authoritative server signs records and forgets to automate re-signing,
// or if the validating resolver's NTP clock drifts by a few hours, the signatures
// evaluate as EXPIRED, triggering mandatory SERVFAIL!
// FIX: Automate DNSSEC key-signing and RRSIG refreshes via DNS providers, and sync
// system clocks across all resolvers using authenticated NTP (chrony)!
// ==============================================================================
// ==============================================================================
// PITFALL 2: DHCP CLIENTS CANNOT OBTAIN IP ADDRESSES ON NEW SWITCH
// SYMPTOM: Users plug into GigabitEthernet0/5 and never receive an IP lease.
// CAUSE: ip dhcp snooping was enabled on the VLAN, but the network administrator
// forgot to configure "ip dhcp snooping trust" on the trunk uplink to the core switch!
// The switch saw legitimate DHCPACK packets arriving on an untrusted port and dropped them.
// FIX: Identify the switch uplink interface and apply:
// Switch(config-if)# ip dhcp snooping trust
// ==============================================================================
// ==============================================================================
// PITFALL 3: BGP ROUTE EVALUATES TO "RPKI INVALID" AFTER SUB-SUBNETTING
// SYMPTOM: Network engineers split a /22 allocation into four /24 subnets for traffic
// engineering, but external ISPs stop receiving their routes.
// CAUSE: The published ROA specified: Prefix: 198.51.100.0/22 with MaxLength: 22!
// When the /24 routes were announced, they exceeded the MaxLength parameter, causing
// global RPKI-validating routers to drop the routes as INVALID!
// FIX: Update the ROA in the RIR portal to specify: MaxLength: 24 prior to announcement.
// ==============================================================================
INFRASTRUCTURE PROTOCOL SECURITY SPECIFICATION MATRIX:
βββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β PROTOCOL / TECHNOLOGY β RFC / INDUSTRY STANDARD β SECURITY THREAT β PRIMARY DEFENSIVE MECHANISM β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β DNS (Domain Name System)β RFC 1035 / RFC 5452 β Cache Poisoning, β Source Port Randomization, β
β β β Kaminsky Attack β Fallback to TCP/53 on overflowβ
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β DNSSEC β RFC 4033, 4034, 4035 β Record Tampering,β Digital Signatures (RRSIG), β
β β β Forged Answers β Trust Anchor (DS/DNSKEY Chain)β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β NSEC3 β RFC 5155 β Zone Enumeration β Hashed Denial of Existence, β
β β β (Zone Walking) β Salted Cryptographic Iterationβ
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β DHCP (Dynamic Host Host)β RFC 2131 β Starvation, β DHCP Snooping (Trusted Ports),β
β β β Rogue DHCP Serverβ Option 82 Relay Enforcement β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β Dynamic ARP Inspection β Switch ASIC Defense β ARP Poisoning, β Validates ARP packets against β
β (DAI) β β MITM Redirection β DHCP Snooping Binding Table β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β IP Source Guard (IPSG) β Switch Layer-2 Guard β IP Spoofing on β Filters traffic based on MAC- β
β β β Access Ports β to-IP binding database entriesβ
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β BGPv4 (Border Gateway) β RFC 4271 β Route Hijacking, β Route Origin Validation (ROV),β
β β β Traffic Diversionβ Peer Prefix Filter Lists β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β RPKI β RFC 6480, 6482 β Unauthorized AS β Route Origin Authorizations β
β β β Announcements β (ROAs) signed by RIR CAs β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β BGPsec β RFC 8205 β AS-Path Spoofing β Cryptographic Path Signatures β
β β β & Interception β per Autonomous System transit β
βββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄βββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ€
β TOP 5 INFRASTRUCTURE SECURITY PRINCIPLES: β
β 1. Validate Core Infrastructure Cryptographically: Transition from cleartext trust to signed proofs β
β (DNSSEC for names, RPKI for routes). β
β 2. Enforce Layer-2 Switch Discipline: Enable DHCP Snooping and Dynamic ARP Inspection (DAI) on all β
β access switches to eliminate internal LAN Man-in-the-Middle exploits. β
β 3. Sign RPKI ROAs for all Public Prefixes: Prevent global BGP hijackers from announcing your routes. β
β 4. Keep Clocks Synchronized: Secure DNSSEC and RPKI operations depend on accurate, tamper-proof NTP. β
β 5. Encrypt Application Transport: Use TLS 1.3 even on authenticated networks to maintain confidentiality β
β in case lower-level routing controls are compromised. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ