Skip to main content

Network Attacks

Layer 2 through Layer 4 attacks against enterprise networks - MITM, VLAN hopping, DNS/DHCP abuse, routing manipulation, pivoting and network-level password attacks. Each file covers the offensive technique and the defensive control that stops it.

This is the fifth subcategory of INFRASTRUCTURE/. It complements 04 Network Services (which describes how the protocols work) by describing how they are abused.

Writeups and references are in English. Every file follows the Two-track format (Offensive / Defensive), same 13-section skeleton as the other INFRASTRUCTURE subcategories.


Scope​

#FileOffensive focusDefensive focus
01MITM and ARP SpoofingARP cache poisoning, SSL stripping, bettercapDynamic ARP Inspection, port security, 802.1X
02VLAN and Layer 2 AttacksVLAN hopping, DTP, STP, MAC floodingNative VLAN hygiene, BPDU Guard, Root Guard
03DNS and DHCP AttacksDNS spoofing, rogue DHCP, DNS tunnelingDNSSEC, DHCP snooping, DNS sinkholes
04Routing AttacksBGP hijack, OSPF/HSRP/VRRP, ICMP redirectsRouting authentication, prefix filtering, TTL security
05Pivoting and TunnelingSSH tunnels, chisel, ligolo-ng, proxychainsEgress filtering, TLS inspection, network segmentation
06Password AttacksResponder, NTLM relay, LLMNR/NBT-NS, KerberosSMB signing, LDAP signing, EPA, disable LLMNR/NBT-NS

How to use this subcategory​

  • Offensive track - detection, tooling, exploitation recipes. Aimed at a pentester with written authorization.
  • Defensive track - controls, detection rules, verification. Aimed at a blue teamer or a sysadmin hardening the same network.

Each file is self-contained. Read the relevant protocol reference in 04 Network Services first if the mechanism is unfamiliar, then return here for the abuse and the control.


Relationship to other categories​

CategoryRelationship
INFRASTRUCTURE/04 Network ServicesDescribes the protocols (DNS, DHCP, SNMP, LDAP). This subcategory describes their abuse.
INFRASTRUCTURE/01 Active DirectoryPassword attacks here (Responder, NTLM relay) feed AD credential abuse there.
INFRASTRUCTURE/03 Linux InfrastructurePivoting techniques reuse the Linux tooling described there.
APPLICATIONS/01 WebEgress filtering and TLS inspection (file 05) affect web exploitation paths.

References​


Authorized Use Only​

All techniques in this subcategory are for authorized penetration testing, CTF environments (Hack The Box, OSCP labs), and educational purposes only. Running ARP spoofing, rogue DHCP, or routing attacks against a network you do not own or have written permission to test is illegal in most jurisdictions.

See the repository SECURITY.md for the full policy and the abuse-report contact.