PISA Pakistan β€” Community CERT

← βš™οΈ Cyber Security Fundamentals

5. Network Defense & Monitoring with Nmap and Wireshark

⏱ 10 min

Mastering Network Defense in Pakistan's Threat Landscape

Network defense is the foundation of organizational cybersecurity. In Pakistan, where PTA regulations require telecom operators to maintain security standards, and SBP guidelines mandate network monitoring for financial institutions, understanding how to scan, analyze, and protect network infrastructure is non-negotiable for security professionals.

Nmap: The Network Mapper

Nmap is the industry-standard tool for network discovery and security auditing. Here's a practical scanning sequence for Pakistani enterprise environments:

# Basic network scan
nmap -sn 192.168.1.0/24

# Service version detection
nmap -sV 10.0.0.0/24

# Aggressive scan with OS detection
nmap -A 172.16.0.0/12

# UDP scan for common services
nmap -sU -p 53,67,68,123,161 target_network

Wireshark for Packet Analysis

When investigating potential breaches or anomalous traffic, Wireshark provides deep packet inspection capabilities:

  1. Capture filters - tcp port 80 or tcp port 443 for web traffic
  2. Display filters - ip.src == 192.168.1.100 && tcp.port == 445
  3. Follow TCP stream to reconstruct HTTP sessions
  4. Export objects (HTTP, SMB) for malware analysis

Common Pakistani Network Threats

| Threat | Indicators | Mitigation | |--------|------------|------------| | OLX/Daraz Scam Traffic | Port 8080, suspicious HTTP POSTs | Web proxy filtering | | WhatsApp Call Signaling | SIP over UDP anomalies | VoIP monitoring | | JazzCash API Abuse | Unusual API calls to payment endpoints | API gateway rate limiting |

Building a Monitoring Baseline

Establish normal network behavior before incidents occur:

  • Baseline traffic patterns for JazzCash/easypaisa transaction hours
  • Expected port usage for NADRA verification systems
  • Normal DNS query volumes to identify C2 communication

Do / Don't

Do: Run Nmap scans during maintenance windows to avoid disrupting business operations. Don't: Use Nmap's -T5 (insane timing) flag on production networks without authorization.

Takeaway

Conduct a full Nmap scan of your network this week and document all open ports. Compare results against your expected service inventory to identify unauthorized services.

← PrevNext β†’