{}DSA Atlas

Network Security

The CIA triad, common network attacks (DDoS, MITM, spoofing, DNS attacks, replay), defences (firewalls, security groups, WAF, IDS/IPS, VPNs, bastions), network segmentation, and zero-trust architecture.

Intermediate6 interview questions

Security goals

GoalMeaningNetwork mechanisms
Confidentialityonly authorised parties read dataTLS, VPNs, encryption at rest
Integritydata isn't altered undetectedMACs/AEAD, signatures, checksums
Availabilityservice stays upDDoS protection, redundancy, rate limits
Authenticationprove identitycertificates, tokens, mTLS
Authorizationenforce permissionspolicies, security groups, IAM
Non-repudiation / auditprove who did whatsignatures, logs

Common attacks

AttackLayerHow it worksDefence
Volumetric DDoS / amplificationL3/L4flood bandwidth using reflectors (DNS, NTP, memcached)anycast scrubbing, upstream filtering, BCP 38 (anti-spoofing)
SYN floodL4exhaust half-open connection tableSYN cookies, backlog tuning
HTTP flood, SlowlorisL7expensive or slow requestsWAF, rate limits, timeouts, caching, challenges
IP spoofingL3forged source addressesingress filtering, TCP handshake, auth
ARP spoofingL2poison ARP caches to intercept LAN trafficdynamic ARP inspection, TLS
DNS spoofing / cache poisoningL7forged DNS answersDNSSEC, randomised ports/IDs, DoH/DoT
BGP hijackL3 (inter-domain)announce someone else's prefixesRPKI route origin validation, monitoring
MITM / SSL strippingL5–7intercept or downgrade connectionsTLS + HSTS preload, cert validation
ReplayL7resend captured valid messagesnonces, timestamps, idempotency keys
Port scanning / reconL4discover exposed servicesminimal exposure, firewalls, IDS alerts
SSRFL7trick a server into requesting internal URLs (e.g. cloud metadata)URL allow-lists, block private ranges, IMDSv2

Defensive building blocks

Edge: anycast CDN · DDoS scrubbing · WAF · bot management · rate limits VPC: public subnets (LB only) · NACLs · private subnets Workloads: security groups · mTLS · service authz policies Data: encryption at rest (KMS) · least-privilege IAM audit logs · backups · secrets manager every layer assumes the outer one can fail
Defence in depth: no single control is trusted to stop everything.
ControlWhat it does
Firewall (stateful/stateless)allow/deny by IP, port, protocol
Security groups / NACLscloud-native firewalls per instance / subnet
WAFL7 rules against injection, XSS, bots
IDS / IPSdetect / block suspicious traffic patterns (Suricata, cloud GuardDuty)
VPN (IPsec, WireGuard)encrypted tunnel between networks or for remote users
Bastion / identity-aware proxycontrolled admin access with MFA and audit
Network segmentation / micro-segmentationlimit blast radius and lateral movement
Private endpointsreach managed services without public internet
Egress controlrestrict outbound traffic (stops data exfiltration and SSRF pivoting)

Zero trust vs perimeter security

Perimeter ("castle and moat")Zero trust
trust anything inside the networktrust nothing by default
VPN gives broad accessper-application, per-request access
long-lived credentialsshort-lived, identity-bound credentials
east-west traffic often plaintextmTLS everywhere
breach → lateral movementbreach → contained

Interview questions

0 / 6 marked confident

Answer out loud first, then open the model answer. Mark a question confident only when you could explain it to an interviewer without notes.