Exposing a Network-Based Attack: TryHackMe First Shift CTF — Task 7: The Crown Jewel
Network Traffic Analysis and Forensics to Identify C2 Channels, ARP Spoofing, and Data Exfiltration Techniques
After 13 years as a graphic designer, I decided to move into network infrastructure and cybersecurity. After I passed the CCNA I wanted to go from what have you studied? to what can you do with it? so I designed and built a collapsed-core enterprise network with redundancy, dynamic routing and layered security controls. Then I investigated a problem that every connectivity test told me did not exist. This article shows the design decisions, the evidence, and the troubleshooting story that solidified my knowledge.
| Category | Details |
|---|---|
| Architecture | Collapsed-core, redundant |
| Switching | VLANs, pruned trunks, PVST+, LACP EtherChannel |
| Redundancy | HSRP (first-hop), dual exit paths (routing) |
| Routing | OSPF Area 0, loopback router IDs |
| Network services | Centralized DHCP + relay, NAT/PAT, DNS/NTP |
| Security | DHCP Snooping, DAI, Port Security, BPDU Guard, SSH-only mgmt, mgmt ACL, edge antispoofing |
| Environment | Cisco Packet Tracer v9.0.1.0858 |
Project resources: complete configurations and verification evidence in the GitHub repository CCNA-Megalab.

Collapsed-core topology: two multilayer switches with aligned HSRP and STP root roles, three access switches, an edge router with NAT, an alternate interior path to the edge (R2), and a simulated ISP.
The network follows a collapsed-core design: two Layer 3 multilayer switches (MLSW1/MLSW2) fold the distribution and core layers into one redundant tier; three access switches (SW1–SW3) connect one user VLAN each (10, 20, 30); R1 is the edge router running DHCP, NAT/PAT and the internet boundary; R2 provides a second exit path; and ISP/Server0 simulate the outside world.
Two design decisions shaped everything else:
Gateway and spanning-tree alignment. HSRP active and STP root roles are deliberately assigned to the same device per VLAN. MLSW1 is active/root for VLANs 10 and 30, MLSW2 for VLAN 20 (spanning-tree vlan 20 priority 4096 alongside standby 20 priority 200). Misaligned roles produce forwarding paths that disagree with the gateway path; alignment keeps L2 traffic and first-hop traffic on the same switch, avoiding needless traversal of the inter-switch link.
Redundancy with asymmetry on purpose. The multilayer switches interconnect via a LACP EtherChannel (channel-group 1 mode active, vendor-neutral), and each also has a routed path toward the edge: MLSW1 connects directly to R1, MLSW2 reaches R1 through R2. This produces equal-cost routing from MLSW2 toward the edge, a fact that becomes the centerpiece of section 6.
Each device carries a loopback interface with a memorable address (1.1.1.1, 2.2.2.2, 3.3.3.3…) serving as its OSPF router ID. R1’s loopback additionally anchors internal time: all downstream devices synchronize NTP against it, while R1 itself syncs to the external NTP/DNS server. This gives every device a stable, non-topology-dependent identifier and a single internal time source.

The inter-switch EtherChannel is up as a routed, Layer 3 port-channel (Po1 RU) with both physical members bundled (P) via LACP.
User traffic is segmented into three VLANs, plus VLAN 99 as a “black hole” native VLAN carrying no hosts. Trunks are pruned to exactly what each connection needs, e.g. SW1’s uplinks carry only VLANs 10 and 99, so broadcast domains stay small and stray untagged traffic lands nowhere productive:
interface GigabitEthernet0/1
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 10,99
Inter-VLAN routing happens on the multilayer switches via SVIs, with HSRP providing first-hop redundancy. Endpoints point at the virtual gateway (.5), never a physical switch, so failover is invisible to users:
interface Vlan10
ip address 192.168.10.3 255.255.255.0
standby 10 ip 192.168.10.5
standby 10 priority 150
standby 10 preempt
DHCP requests are relayed to R1 with ip helper-address, and unused access ports are administratively shut down.


HSRP and STP roles are aligned per VLAN: MLSW1 is Active and root for VLANs 10 and 30; MLSW2 for VLAN 20. Forwarding path and gateway path agree by design.


Failover behavior: with MLSW1’s VLAN 10 SVI shut down, MLSW2 transitions to Active and endpoints keep working without any change on their side. The virtual gateway (.5) is doing its job.
OSPF Area 0 exchanges routes among the infrastructure devices. User-facing SVIs and loopbacks are declared passive-interface: they should never form adjacencies, only transit links do. (Packet Tracer does not allow excluding a Port-channel from OSPF passivity, so passive interfaces are declared explicitly rather than via passive-interface default; in production code I would flip the default and un-passive only transit links, so an interface added tomorrow is silent by design.)

Full OSPF adjacencies over both transit paths: the EtherChannel toward MLSW1 (ID 3.3.3.3) and the routed link toward R2 (ID 2.2.2.2).
The equal-cost design. Because MLSW2 has both the EtherChannel path to MLSW1 and a routed path via R2 toward R1, OSPF installs two equal-cost next-hops for edge-bound traffic. The evidence is in the routing table: the default route (O*E2 0.0.0.0/0) and R1’s loopback each appear twice, with identical metrics [110/…] but different next-hops: one via the Port-channel toward MLSW1, one via R2. That is genuine per-flow load balancing toward the edge, not merely failover, and, as Section 6 shows, this design property is exactly what made a NAT misconfiguration invisible to connectivity tests.

MLSW2’s OSPF routing table: the default route (O*E2 0.0.0.0/0) and R1’s loopback each install two equal-cost next-hops, via the EtherChannel (192.168.1.1) and via R2 (192.168.1.9), confirming genuine ECMP toward the edge.
Centralized DHCP runs on R1 with per-VLAN pools, infrastructure addresses excluded (.1–.9), and the HSRP virtual IP handed out as the default gateway:
ip dhcp excluded-address 192.168.20.1 192.168.20.9
ip dhcp pool VLAN20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.5
dns-server 209.165.201.1

A VLAN 20 workstation receives its lease from R1 (relayed by the multilayer switches): the default gateway is the HSRP virtual IP 192.168.20.5, not either physical switch.
NAT on R1 is PAT overload, translating internal sources to the outside interface address:
ip nat inside source list NAT-ALLOWED interface GigabitEthernet0/0/1 overload
One refinement: NAT-ALLOWED denies internal-to-internal flows before permitting internet-bound ones, so no east-west traffic ever consumes translation capacity. Even though, in this topology, inter-VLAN traffic is routed by the MLS switches and never reaches R1. The deny documents intent; it is an eligibility list for translation, not a firewall rule.
All infrastructure devices synchronize against R1’s loopback address, which itself syncs to an external NTP server. Beyond keeping device clocks verifiably correct, consistent time synchronization is the prerequisite for centralized logging: log timestamps are only comparable across devices when every device agrees on the time. This lab doesn’t yet forward logs anywhere, but it’s deliberately structured so a future step (shipping device logs to a SIEM such as Splunk and writing detections for DHCP snooping violations, DAI drops, port-security events and SSH brute-force attempts) can be added without redesigning anything.
Two ACLs shape the border. EDGE-IN, applied inbound on the outside interface, drops packets arriving from the internet with private-source addresses (192.168.0.0/16), which could be spoofed sources that could never legitimately arrive from upstream. In a production deployment this filter would be expanded to the full RFC 1918 space. Everything outbound gets translated to R1’s interface address by PAT; everything inbound that claims to be internal gets dropped at the door.
Symptom. Devices in every VLAN could reach the internet. Every ping passed. I moved on.
Discovery. While verifying translations rather than connectivity, I noticed show ip nat translations on R1 did not show flows from every VLAN; only some. Tracing the paths: MLSW2 load-balances edge-bound traffic across two equal-cost OSPF paths (evidence in Section 4), so the VLAN 20 flows selecting the R2 exit arrived at R1 on Gi0/0/2, and that second inside-facing interface was missing ip nat inside. Those flows left R1 untranslated, their private source addresses intact.
Why it stayed hidden. My simulated ISP had a static route pointing 192.168.0.0/16 back toward R1, so untranslated packets with private sources still got replies, and every test looked green. In the real world no ISP routes private address space; those packets die at the edge. The static route was an artificial kindness masking a broken NAT.

Post-fix translations: flows from VLANs 10, 20 and 30 are all translated to the outside interface address 192.168.1.14. Proof that both exit paths participate in NAT.

Translation statistics on R1, with active hit counters on the overload rule.
Resolution, in two parts. First, ip nat inside on every inside-facing interface, with equal-cost paths, a single missing tag silently untranslates half the flows. Second, and more instructive: I removed the ISP’s static route entirely. A correctly operating NAT needs zero reachability into private space, because every translated packet arrives sourced from R1’s outside interface, which the ISP already knows as directly connected.

The ISP’s routing table after the fix: only its two connected networks, no route to 192.168.0.0/16, no gateway of last resort, and outbound traffic still flows, because every translated packet arrives sourced from a directly connected address.

The ISP cannot initiate contact with 192.168.10.15 (exactly as it should be). An unsolicited inbound failure is the NAT boundary working, not a fault.
The lesson. Connectivity tests prove packets flow. Only translations prove NAT works. A test environment can hide a real configuration fault if it provides routing behavior that would not exist in production. The fix isn’t more pinging, it’s removing the crutch and retesting.
Coming from a blue-team background (BTL1, CCDL1, Security+), I treated the access layer as an attack surface, deploying four mechanisms designed as a chain, not a feature list.
DHCP Snooping on VLANs 10/20/30, trusting only the infrastructure-facing uplinks. Rogue DHCP offers arriving from access ports are dropped; the binding table it builds is the foundation for the next control.

DHCP Snooping on SW2: only uplinks toward the multilayer switches are trusted, and the binding table is populated with legitimate VLAN 20 leases; the data source Dynamic ARP Inspection validates against.
Dynamic ARP Inspection consumes that binding table: every ARP packet traversing an untrusted port is validated against known DHCP leases, and an attacker gratuitously claiming to be the gateway (without ever holding a lease) has its ARP frames dropped. Snooping without DAI defends only DHCP; DAI without snooping has nothing to validate against. Deploying one without the other is the classic mistake.


Dynamic ARP Inspection on SW2: every host port Untrusted, both infrastructure uplinks Trusted, and per-VLAN inspection enabled for VLANs 10/20/30. The counters for VLAN 20 show ARP from legitimate DHCP clients being validated against the binding table (Forwarded: 2, DHCP Permits: 2) with zero validation failures. Packet Tracer’s Operation column is unreliable (it reports VLAN 30 Active although no VLAN 30 exists on this switch) and PT does not enforce the binding check itself, as the controlled test below demonstrates.
(Expected behavior note: statically addressed hosts have no binding, so real DAI drops their ARP unless a static binding or ARP ACL exists. The demo uses DHCP clients deliberately.)
Simulator limitation. Packet Tracer implements DAI’s trust model and counters but does not enforce the binding check: an unbound static host’s ARP is forwarded and the Dropped counter stays at zero (verified: pings succeed with an empty show ip dhcp snooping binding table). On real IOS, GNS3 or EVE-NG, the identical configuration produces DHCP Drops ≥ 1 and 100% packet loss. Readers on PT should treat the forwarded counters on VLAN 20 as evidence of active inspection and validate the drop behavior on fuller tooling.
Port Security on every access port with sticky MAC learning, in restrict mode: violations are logged and offending frames dropped, but the port isn’t err-disabled, balancing security with availability on user ports. The syslog a real SOC could alert on is the point.

Port Security in restrict mode: an unauthorized MAC triggers a violation counter and logged event while the port stays up. Security with availability and syslog a SOC could alert on.
BPDU Guard + PortFast on host ports: instant startup for endpoints, and any received BPDU (someone plugging in a switch) err-disables the port immediately, pinning the STP topology.

BPDU Guard doing its job: a switch plugged into a host port sends a single BPDU and the port is err-disabled immediately. The STP topology stays pinned.
Management plane, on every device: SSHv2 only (transport input ssh, ip ssh version 2), local users with hashed secrets, an access-class ACL permitting SSH only from the management subnet, 5-minute exec-timeout, login block-for 120 attempts 3 within 60 against brute force, CDP disabled on host ports. One documented constraint: Packet Tracer supports only legacy Type 5 hashing, which modern platforms replace with stronger algorithms (noted in the repository’s limitations).

Management plane verification 1: Telnet and SSH refused from subnets other than management

Management plane verification 2: Telnet refused and SSH permitted only from the management subnet.

Management plane verification 3: The MGMT-ACCESS ACL hit counts visibly incrementing.
Every control in Section 7 generates exactly the telemetry a SOC triages: rogue DHCP offers, DAI drops, port-security violations, BPDU-guard err-disables, SSH authentication failures. That is not a coincidence, it is the reason I built the network this way. My existing portfolio covers security investigation and Splunk log analysis; this project demonstrates the infrastructure underneath those events.
| Technology | Implementation | Verification |
|---|---|---|
| VLANs | Segmented user networks + black-hole native | show vlan brief |
| Trunking | Pruned allowed VLANs | show interfaces trunk |
| EtherChannel | LACP mode active | show etherchannel summary |
| STP | Aligned root placement, edge protection | show spanning-tree |
| HSRP | Virtual gateway redundancy, tested failover | show standby brief |
| OSPF | Area 0, passive user interfaces, ECMP toward edge | show ip ospf neighbor, show ip route ospf |
| DHCP | Centralized pools, relay, exclusions | show ip dhcp binding |
| NAT/PAT | Overload, all-insides tagged, east-west excluded | show ip nat translations/statistics |
| DHCP Snooping | Trusted uplinks only | show ip dhcp snooping binding |
| DAI | Binding-validated ARP, demonstrated drops | show ip arp inspection statistics |
| Port Security | Sticky MAC, restrict mode | show port-security interface |
| Mgmt security | SSHv2, mgmt ACL, block-for | show access-lists |
What I’d do differently: the access switches’ management SVIs live in their user VLANs (a lab simplification a dedicated management VLAN would solve); Type 5 hashing is a simulator constraint; and syslog forwarding to a SIEM is the next milestone, not a completed one.
This project is an extension to earning my CCNA certification; it shows what I can do: design a redundant enterprise topology, configure and align its redundancy mechanisms, harden its access layer and, when every test insisted everything was fine, investigate until I found what the tests couldn’t see. The complete configurations, topology and verification evidence are in the repository CCNA-Megalab, and I genuinely welcome critique from anyone more experienced: if you spot something I could do better, I’d like to hear it.