NSCT Cyber Security Revision Notes
These notes condense all 16 official Cyber Security topics into the definitions, comparisons and traps you need on the day: the CIA triad, cryptography, network, OS and web security, attacks, access control, forensics, incident response and cyber law. Cyber Security carries 5% of the NSCT, according to HEC's Areas of Competencies, and 2026 candidates averaged 47.2% accuracy in it, per the HEC NSCT report and APP.
How to use these notes: read one section, then do its topic quiz through the link at the end, and reread only the traps you fell for in the last two days. Definitions follow Stallings and the NIST and OWASP documents named below.
Introduction to Cyber Security
- CIA triad: confidentiality (only authorised parties read), integrity (no unauthorised change), availability (timely access). Stallings adds authenticity and accountability.
- Threat = potential for harm; vulnerability = the weakness it exploits; risk = likelihood × impact.
- X.800 passive attacks (release of contents, traffic analysis) are prevented; active attacks (masquerade, replay, modification, DoS) are detected and recovered from.
- SLE = asset value × exposure factor; ALE = SLE × ARO. "Once every five years" means ARO = 0.2, not 5.
Trap: replay is active, even though the message is genuine. Practise: Introduction to Cyber Security MCQs for the NSCT
Security Fundamentals & Principles
- Least privilege: minimum rights, for minimum time. Need to know applies it to information.
- Defence in depth: independent layers; pass rates multiply (0.2 × 0.3 × 0.5 = 3% get through).
- AAA: authentication (prove identity), authorisation (what you may do), accounting (what you did).
Trap: password plus PIN is still one factor (both are something you know). Practise: Security Fundamentals & Principles MCQs for th…
Cryptography Basics
| Symmetric | Asymmetric | |
|---|---|---|
| Keys | One shared secret | Public + private pair |
| Examples | DES, 3DES, AES | RSA, Diffie-Hellman, ECC |
| Speed | Fast, bulk data | Slow |
| Keys for n users | n(n − 1)/2 | n key pairs |
| Main problem | Key distribution | Trusting the public key |
- Confidentiality: encrypt with the receiver's public key. Signature: sign with the sender's private key, verify with the sender's public key.
- RSA: n = pq, φ(n) = (p − 1)(q − 1), d = e⁻¹ mod φ(n), C = m^e mod n.
- Hashes: MD5 128 bits, SHA-1 160, SHA-256 256. Digest length never depends on input length.
- A MAC gives integrity and authentication but not non-repudiation; a signature gives all three.
Trap: d is the inverse of e mod φ(n), not mod n. Practise: Cryptography Basics MCQs for the NSCT and the deep page symmetric vs asymmetric encryption.
Network Security
- Firewall types: stateless packet filter, stateful inspection, application-level gateway (proxy, sees content), circuit-level gateway (SOCKS).
- Rule lists are top-down, first match wins, so "deny all" goes last.
- Attacks: SYN flood and smurf hit availability; ARP spoofing and MAC flooding enable sniffing.
| IDS | IPS | |
|---|---|---|
| Position | Passive, out of band (mirror port) | Inline |
| Action | Alerts only | Drops or blocks traffic |
| Failure risk | Missed attack still passes | False positive blocks real users |
Signature-based detection misses zero-days; anomaly-based catches them with more false positives.
Trap: a VPN protects data in transit, not an infected endpoint. Practise: Network Security MCQs for NSCT
Operating System Security
- Hardening order: patch, remove unneeded services, set least-privilege users, add controls, test against a baseline.
- Zero-day = no patch exists yet. Exploiting a known, patchable flaw is a patch management failure.
- Permissions: 755 = rwxr-xr-x, 644 = rw-r--r--. Umask 027 gives files 640 and directories 750.
- SUID runs a program as its owner, not the caller. The sticky bit on /tmp restricts deletion only.
- Vertical escalation goes up (user to root); horizontal goes sideways (user A to user B).
Trap: umask removes permissions; it is not the permission itself. Practise: Operating System Security MCQs for NSCT
Web Application Security
| Rank | OWASP Top 10 (2021) |
|---|---|
| A01 | Broken Access Control |
| A02 | Cryptographic Failures |
| A03 | Injection (includes XSS) |
| A04 | Insecure Design |
| A05 | Security Misconfiguration |
| A06 | Vulnerable and Outdated Components |
| A07 | Identification and Authentication Failures |
| A08 | Software and Data Integrity Failures |
| A09 | Security Logging and Monitoring Failures |
| A10 | Server-Side Request Forgery (SSRF) |
- SQL injection: fix with parameterised queries. Escaping quotes by hand is the weak option.
- XSS (stored, reflected, DOM-based) runs script in the victim's browser; fix with context-aware output encoding, plus CSP.
- CSRF makes a logged-in browser send an unwanted request; fix with anti-CSRF tokens and SameSite cookies.
Trap: XSS exploits the user's trust in the site; CSRF exploits the site's trust in the browser. Practise: Web Application Security MCQs for NSCT and the deep page OWASP Top 10.
Malware & Attack Techniques
- Virus needs a host file; worm spreads by itself over the network; Trojan relies on the user installing it.
- Rootkit hides the attacker; logic bomb fires when a condition becomes true.
- Ransomware is a payload, not a spreading method. Defence: offline or immutable backups (3-2-1 rule).
- Phishing variants: spear (named target), whaling (executives), vishing (voice), smishing (SMS), pharming (poisoned DNS).
- DoS and DDoS attack availability; amplification factor = reply size ÷ query size.
Trap: "typed the correct address and still reached the fake site" is pharming, not phishing. Practise: Malware & Attack Techniques MCQs for NSCT
Authentication & Access Control
- Factors: something you know, have, are (static biometric), do (dynamic biometric). MFA needs different categories.
- Salt makes identical passwords hash differently; it is stored in plain form. Pair it with bcrypt, scrypt, Argon2 or PBKDF2.
- ACL = per object (matrix column); capability list = per subject (row).
| Model | Who decides | Clue in the question |
|---|---|---|
| DAC | Resource owner | "Owner grants access", Unix chmod |
| MAC | System, via labels | "Clearance", "classification", SELinux |
| RBAC | Permissions attached to roles | "Based on job function" |
| ABAC | Rules over attributes | "Time, location, ward, device" |
- Bell-LaPadula (confidentiality): no read up, no write down. Biba (integrity): no read down, no write up.
Trap: swapping the BLP and Biba rules. Practise: Authentication & Access Control MCQs for NSCT
Secure Software Development
- Never trust input; validate on the server with an allow-list. Client-side checks are convenience only.
- Canonicalise first:
%2e%2e%2fdecodes to../. - Fail closed: on an error, deny access and show a generic message.
- STRIDE maps threats to properties: Spoofing–authentication, Tampering–integrity, Repudiation–non-repudiation, Information disclosure–confidentiality, DoS–availability, Elevation of privilege–authorisation.
- SAST reads code; DAST attacks the running app; SCA finds known CVEs in libraries; fuzzing finds crashes.
Trap: a deny-list is almost always the distractor. Practise: Secure Software Development MCQs for NSCT
Wireless & Mobile Security
- WEP (RC4, 24-bit IV) is broken; WPA2 uses CCMP (AES); WPA3 uses SAE.
- WPA2-PSK handshakes can be cracked offline with a wordlist; WPA3 SAE stops that and adds forward secrecy.
- 802.1X roles: supplicant (client), authenticator (AP), authentication server (RADIUS).
- Rogue AP = unauthorised AP on the internal LAN; evil twin = fake AP copying a real SSID.
Trap: hidden SSIDs and MAC filtering are not real access control. Practise: Wireless & Mobile Security MCQs for the NSCT
Cloud & Virtualization Security
- Shared responsibility: the customer patches the guest OS in IaaS; the provider does in PaaS and SaaS. The customer always owns data, accounts and access rights.
- IAM: implicit deny by default; an explicit Deny always wins, whatever the order.
- Type 1 hypervisor runs on bare metal (ESXi, Xen, Hyper-V); Type 2 runs on a host OS (VirtualBox).
- VM escape breaks out of the guest; hyperjacking installs a rogue hypervisor underneath.
- Containers share the host kernel, so they isolate less strongly than VMs.
Trap: SaaS does not move all security to the vendor. Practise: Cloud & Virtualization Security MCQs for the N…
Digital Forensics
- NIST SP 800-86 phases: collection, examination, analysis, reporting.
- Order of volatility (RFC 3227): registers and cache, then RAM, temporary files, disk, remote logs, physical configuration, archival media. Capture RAM before imaging the disk.
- Chain of custody: every hand-over named, timed and signed. A matching hash does not cure a custody gap.
- Image through a write blocker, hash it, analyse a verified copy.
Trap: mixing forensic phases with incident-response phases such as containment. Practise: Digital Forensics MCQs for the NSCT
Incident Response & Management
| NIST SP 800-61 Rev. 2 phase | Key activity |
|---|---|
| 1. Preparation | Policy, CSIRT, jump kit, training |
| 2. Detection and Analysis | Validate alerts, scope, prioritise |
| 3. Containment, Eradication and Recovery | Isolate, remove the cause, restore from clean backups |
| 4. Post-Incident Activity | Lessons learned, evidence retention |
- SANS uses six steps, splitting phase 3 into containment, eradication and recovery. Most questions use the NIST four-phase cycle.
- Precursor = an attack may come; indicator = one may have happened.
- RPO = data you can afford to lose; RTO = time restoration may take.
Trap: Preparation always comes first, before Detection. Practise: Incident Response & Management MCQs for the NSCT
Security Monitoring & Auditing
- Windows event 4624 = successful logon, 4625 = failed logon.
- Syslog severity runs 0 (Emergency) to 7 (Debug); PRI = facility × 8 + severity.
- SIEM collects, normalises and correlates logs; UEBA baselines behaviour; SOAR automates playbooks.
- FPR = FP ÷ (FP + TN); precision = TP ÷ (TP + FP). With rare attacks, a small FPR swamps real alerts.
Trap: reversing the syslog scale (0 is the most severe). Practise: Security Monitoring & Auditing MCQs for the NSCT
Cyber Laws & Ethics
- PECA 2016, Pakistan's main cybercrime law, criminalises unauthorised access even when nothing is changed, plus data interference, electronic fraud and forgery, misuse of identity information and cyber stalking.
- Offences against critical infrastructure systems form a separate, more serious category. PECA has been amended since, so learn principles, not section numbers.
- White hat = permission in advance and agreed scope; grey hat = no permission, reports afterwards; black hat = exploits for gain.
- GDPR principles: purpose limitation, data minimisation, storage limitation, transparency.
Trap: a good motive never replaces permission. Practise: Cyber Laws & Ethics MCQs for the NSCT
Emerging Trends in Cyber Security
- Zero trust (NIST SP 800-207) removes trust based on network location. Policy Engine decides, Policy Administrator sets up the session, Policy Enforcement Point enforces in the data path.
- AI attacks: data poisoning (training), evasion (prediction), prompt injection (LLM apps).
- Shor's algorithm breaks RSA and ECC; Grover only halves effective symmetric key length (AES-128 drops to about 64 bits).
Trap: zero trust is an architecture, not a product and not "deny everything". Practise: Emerging Trends in Cyber Security MCQs for the…
Most-tested comparisons
| Pair | The one-line difference |
|---|---|
| Threat vs vulnerability | The criminal group vs the unpatched software |
| Authentication vs authorisation | Who you are vs what you may do |
| Symmetric vs asymmetric | One shared key vs public/private pair |
| Hashing vs encryption | One-way, no key vs reversible with a key |
| MAC vs digital signature | Shared key, no non-repudiation vs private key, non-repudiation |
| IDS vs IPS | Alerts out of band vs blocks inline |
| Virus vs worm | Needs a host file vs spreads by itself |
| Phishing vs pharming | Lure message vs poisoned name resolution |
| XSS vs CSRF | Script in victim's browser vs forged request from it |
| BLP vs Biba | Confidentiality vs integrity (rules reversed) |
| SAST vs DAST | Reads code vs attacks running app |
| Precursor vs indicator | Attack may come vs attack may have happened |
Last-48-hours checklist
- Recite the CIA triad and name the property each of eavesdropping, tampering and DoS hits.
- Say which key encrypts, decrypts, signs and verifies, without hesitating.
- Work one toy RSA problem by hand.
- Count symmetric keys for n users: n(n − 1)/2.
- Walk a firewall rule list top-down, first match wins.
- Write the OWASP Top 10 (2021) from A01 to A10.
- Separate virus, worm, Trojan, rootkit and logic bomb in one line each.
- State the BLP and Biba rules both ways.
- Match DAC, MAC, RBAC and ABAC to their clues.
- List the four NIST incident-response phases in order.
- Recite the order of volatility from registers to archival media.
- Know who patches what in IaaS, PaaS and SaaS.
- Do one timed subject-wise mock test and review each wrong answer.
For a one-page version, use the Cyber Security cheat sheet.
FAQs
How much of the NSCT is Cyber Security?
Cyber Security carries 5% of the test, according to HEC's Areas of Competencies, the same as Operating Systems. HEC has not officially announced the number of questions in the test, so plan by weightage rather than question counts, and check nsct.hec.gov.pk and your university's focal person for updates.
Is NSCT Cyber Security hard?
In 2026 candidates averaged 47.2% accuracy in this area, per the HEC NSCT report. Most questions test classification, such as naming an attack or the right key, so the comparisons and traps on this page turn many of them into quick marks.
Which edition of the OWASP Top 10 should I learn?
Learn the 2021 edition, which most textbooks and courses still teach, with Broken Access Control at A01 and Injection at A03. OWASP has since published a 2025 update that renumbers several entries. If a question gives a rank, check which edition it means before answering.
Do I need to memorise PECA section numbers?
No. Learn the principles: unauthorised access is an offence even without damage, critical infrastructure gets separate treatment, and fraud, identity misuse and cyber stalking are covered. PECA has been amended since 2016, so section numbers and penalties change; questions reward the principles.
Next step
Pick your weakest topic from the list above and do its quiz from the Cyber Security MCQs hub. Then test yourself under time pressure in a subject-wise mock test or a full NSCT mock test.