Courses / HEC NSCT – National Skill Competency Test: Complete Preparation for Computing Graduates
10.3 Network and Web Application Security
Area 10 – Cyber Security (5%) · 45 min read · 14 MCQs to check yourself
Network attacks and defences
- DoS/DDoS – flood a service (defence: rate limiting, CDN, scrubbing).
- Man-in-the-middle (MITM) – intercept traffic (defence: TLS, certificate checks, VPN). ARP spoofing and DNS spoofing/poisoning are MITM techniques.
- Sniffing – capturing packets (Wireshark); port scanning – finding open services (Nmap).
- Firewall filters traffic by rules (packet-filter, stateful, application/WAF, next-gen). IDS detects and alerts; IPS detects and blocks. DMZ = a network zone for public servers.
- VPN creates an encrypted tunnel (IPsec, SSL/TLS VPN). Wi-Fi: use WPA3/WPA2, never WEP.
Web application security (OWASP Top 10 ideas)
| Attack | How it works | Fix |
|---|---|---|
| SQL injection | Input like ' OR '1'='1 changes the query |
Parameterised queries / prepared statements, input validation |
| XSS (cross-site scripting) | Attacker's script runs in the victim's browser | Output encoding/escaping, Content Security Policy |
| CSRF | A forged request uses the victim's logged-in session | Anti-CSRF tokens, SameSite cookies |
| Broken access control | A user reaches others' data (e.g. by changing ?id=) |
Server-side authorisation checks |
| Broken authentication | Weak passwords, no lockout | MFA, rate limiting, secure sessions |
| Security misconfiguration | Default passwords, debug mode on | Hardening, patching |
| Sensitive data exposure | No encryption | HTTPS, encryption at rest |
Other attacks: brute force and credential stuffing (reused passwords), session hijacking (stolen cookie – use HttpOnly and Secure flags), directory traversal (../../etc/passwd), buffer overflow (writing past an array – use safe languages and bounds checks). |
What is SQL injection? (Hacksplaining)
This lesson ends with a quiz of 14 MCQs. Open the lesson on PrepOasis to take it and save your progress.
Previous: 10.2 Cryptography Made Simple · Next: 10.4 Incident Response, Forensics, Law and Ethics