Cyber Security, Past Papers, UOS Main Campus

Cyber Security Past Paper 2026 – BS IT 4th Semester UOS (ITDC-5202)

ProgramBS IT
Semester4th
Year2026
Course codeITDC-5202
AnswersSolved ✓

University of Sargodha AD/BS IT 4th semester Cyber Security (ITDC-5202) paper, 2026 exam (60 marks, 2:30 hours). Solved answers are given below for all 12 short questions and all five long questions: CIA triad scenarios, malware lifecycle and infection vectors, the seven-step Cyber Kill Chain, mobile app security and information warfare vs cyber terrorism.

Solved answers

Q1 – Short answers (12 × 2)

i. CIA triad: Confidentiality (only authorised people can read information), Integrity (information is accurate and not altered without authorisation) and Availability (information and systems are accessible when needed) – the three core goals of information security.

ii. Zero-day vulnerability: A software flaw unknown to the vendor or with no patch available yet, so defenders have had “zero days” to fix it; attacks that exploit it (zero-day exploits) are very dangerous because signature-based tools cannot detect them.

iii. Advanced Persistent Threat (APT): A long-term, targeted and stealthy attack by a skilled, well-funded group (often state-sponsored) that gains access to a network and stays hidden for months to steal data or spy, e.g. on governments, defence or large companies.

iv. Trojan horse vs worm: A Trojan pretends to be useful software and needs the user to install/run it; it does not replicate itself. A worm is self-replicating and spreads automatically across networks by exploiting vulnerabilities without user action.

v. Phishing: A social-engineering attack in which the attacker sends fake e-mails, messages or websites that appear to come from a trusted source (bank, university) to trick victims into revealing passwords or card details or into opening malware. Targeted forms: spear phishing, whaling, smishing (SMS), vishing (voice).

vi. Symmetric vs asymmetric cryptography: Symmetric uses one shared secret key for both encryption and decryption (AES, DES) – fast, but key distribution is difficult. Asymmetric uses a key pair – public key to encrypt/verify and private key to decrypt/sign (RSA, ECC) – slower but solves key exchange and supports digital signatures.

vii. Cross-Site Scripting (XSS): A web attack in which the attacker injects malicious JavaScript into a trusted website (through comments, search boxes or URLs) that then runs in other users’ browsers, stealing cookies/sessions or defacing pages. Types: stored, reflected and DOM-based; prevented by input validation and output encoding.

viii. Least privilege (database security): Every user, application or process gets only the minimum permissions it needs, e.g. a reporting account gets SELECT only, not DELETE or DROP. This limits damage from mistakes, insider misuse and SQL injection. (Normalization organises tables to remove redundancy, which improves integrity and reduces inconsistent data.)

ix. Purpose of a firewall: To monitor and control incoming and outgoing network traffic according to security rules, allowing legitimate traffic and blocking unauthorised access between a trusted internal network and untrusted networks such as the internet.

x. Mobile Device Management (MDM): Software that lets an organisation centrally enrol, configure, monitor and secure employees’ phones and tablets – enforcing passcodes and encryption, pushing or blocking apps, separating work data, and remotely locking or wiping lost/stolen devices.

xi. Cyber terrorism: The use of computers and networks by terrorist groups to attack critical infrastructure or information systems in order to cause fear, physical harm, disruption or economic loss for political, religious or ideological goals.

xii. Disk forensics: The branch of digital forensics that acquires and analyses data from storage media (hard disks, SSDs, USB drives): creating a bit-by-bit image verified with a hash, then recovering deleted files, examining file systems, metadata, logs and slack space while keeping chain of custody, for use as evidence.

Q2 – CIA triad with violation scenarios

PrincipleMeaning and controlsPractical violation scenario
ConfidentialityOnly authorised users can access data. Controls: encryption, access control, strong authentication, data classification.A university’s student database is breached through a weak password and students’ CNIC numbers and results are leaked online; or an employee reads another person’s e-mail on an unlocked PC.
IntegrityData is accurate, complete and changed only by authorised people. Controls: hashing, digital signatures, checksums, version control, audit logs.An attacker or insider changes marks in the examination system; or a man-in-the-middle alters the account number in a bank transfer.
AvailabilitySystems and data are available to authorised users when needed. Controls: backups, redundancy, DDoS protection, UPS, patching.A DDoS attack takes the admission portal offline on the last date; or ransomware encrypts a hospital’s records so doctors cannot open them.

The three goals must be balanced – e.g. very strict access controls can reduce availability – and a single incident (ransomware that also steals data) can violate all three.

Q3 – Malware attack lifecycle and infection vectors

Phases of the malware lifecycle:

  1. Development / preparation: the attacker writes or buys malware and packs/obfuscates it to avoid antivirus detection.
  2. Delivery (distribution): the malware is sent to victims through an infection vector (see below).
  3. Infection / exploitation: it executes on the victim machine – the user opens a file or a vulnerability is exploited.
  4. Persistence (installation): it installs itself to survive reboots – registry Run keys, services, scheduled tasks, rootkits.
  5. Command and control (C2): it connects to the attacker’s server to receive commands and updates.
  6. Propagation: it spreads to other machines (worm behaviour, lateral movement, network shares).
  7. Payload / actions: it performs its purpose – stealing data, encrypting files (ransomware), spying, joining a botnet, destroying data.
  8. Evasion and cleanup: it hides activity, deletes logs and may remove itself after achieving its goal.

How malware spreads (infection vectors):

  • E-mail: phishing messages with malicious attachments (macro-enabled Office files, ZIP/EXE) or links.
  • Malicious and compromised websites: drive-by downloads that exploit browser/plugin flaws, and malvertising.
  • Removable media: infected USB drives using autorun or tempting file names.
  • Network exploitation: worms scanning for unpatched services (e.g. WannaCry using SMB), weak RDP passwords.
  • Software downloads: pirated software, fake updates, Trojanised apps and malicious mobile apps.
  • Supply chain: malware inserted into legitimate software updates or libraries.
  • Social media, messaging and file sharing: malicious links and files through WhatsApp, P2P/torrents.

Defence: patching, antivirus/EDR, e-mail filtering, disabling macros and autorun, least privilege, user awareness training and regular offline backups.

Q4 – Cyber Kill Chain (seven steps) and how defenders interrupt each

The Cyber Kill Chain, developed by Lockheed Martin, describes an intrusion as seven stages; breaking any one link stops the attack.

StepWhat the attacker doesHow defenders interrupt it
1. ReconnaissanceCollects information about the target – employees on LinkedIn, e-mail addresses, open ports, software versions.Limit public information, monitor scanning in firewall/IDS logs, staff awareness, threat intelligence.
2. WeaponizationCouples an exploit with a payload to create a deliverable weapon (malicious PDF/Office document, backdoor).Hard to see directly; use threat intelligence on attacker tools and keep systems patched so exploits fail.
3. DeliverySends the weapon – phishing e-mail, malicious website, USB drive.E-mail and web filtering, attachment sandboxing, blocking USB, user training to report phishing.
4. ExploitationThe code runs by exploiting a software flaw or tricking the user.Patch management, disabling macros, application whitelisting, exploit protection/DEP, least privilege.
5. InstallationInstalls malware/backdoor for persistence.Endpoint detection and response (EDR), antivirus, monitoring registry/services, restricting admin rights.
6. Command & Control (C2)The infected system opens a channel to the attacker for remote control.Egress firewall rules, DNS filtering, blocking known malicious IPs/domains, network traffic analysis.
7. Actions on ObjectivesAchieves the goal – data theft, encryption, destruction, lateral movement.Data loss prevention, network segmentation, encryption of sensitive data, incident response, backups.

The model encourages “defence in depth”: controls at every stage, with detection and response as early in the chain as possible.

Q5 – Challenges in mobile app security

Sandboxing: Android and iOS run each app in its own sandbox (separate user ID/container) so it cannot read other apps’ data or system files without permission. Challenges: apps that request excessive permissions; rooted/jailbroken devices that break the sandbox; OS or kernel vulnerabilities that allow sandbox escape; and shared storage and shared components that leak data between sandboxes. Mitigations: request minimum permissions, detect rooting/jailbreak, keep the OS updated.

Insecure data storage (a top OWASP Mobile risk): developers store passwords, tokens, personal or payment data in plain text in SharedPreferences/NSUserDefaults, SQLite databases, log files, external SD storage, caches or backups. If the phone is lost, rooted or infected, this data is easily read. Mitigations: avoid storing sensitive data, use the Android Keystore/iOS Keychain, encrypt databases (e.g. SQLCipher), disable logging of secrets, exclude sensitive files from backups.

Inter-Process Communication (IPC) vulnerabilities: apps talk to each other through Android intents, activities, services, broadcast receivers and content providers, or iOS URL schemes and app extensions. If components are exported without permission checks, malicious apps can launch hidden screens, read data from content providers (including SQL injection), intercept implicit intents/broadcasts or hijack deep links. Mitigations: set android:exported="false" unless needed, protect components with permissions, use explicit intents, validate all incoming data, and use verified app links.

Other challenges: insecure communication (no TLS or no certificate checking), weak authentication and session handling, reverse engineering and tampering of app code, malicious third-party libraries/SDKs, fake apps in unofficial stores, and device fragmentation with many unpatched Android versions.

Q6 – Information warfare vs cyber terrorism

Information warfare is the use and management of information and communication technology to gain an advantage over an opponent – by attacking or manipulating the opponent’s information and information systems while protecting one’s own. It includes cyber attacks on military and government networks, electronic warfare (jamming), psychological operations, propaganda and disinformation through media and social networks, and espionage. It is usually carried out by states as part of military or strategic competition, even in peacetime.

AspectInformation warfareCyber terrorism
GoalsStrategic, military, political or economic advantage; weaken the enemy’s decision-making, control public opinion, steal intelligenceCreate fear and panic, cause physical harm or disruption, gain publicity and force political/ideological change
TargetsMilitary command and control, government systems, media, public perception, economic and defence informationCritical infrastructure (power grids, water, transport, hospitals, banks) and civilians, chosen for maximum impact
ActorsNation-states, military cyber units, intelligence agencies and state-sponsored groupsNon-state terrorist groups and individuals (sometimes supported by states)
MethodsHacking, espionage, propaganda, disinformation, electronic warfare, deceptionDestructive cyber attacks, DDoS, data destruction, plus online propaganda and recruitment
Legal statusPart of national security doctrine; governed by laws of armed conflictCriminal act under national laws (e.g. Pakistan’s PECA 2016) and anti-terrorism laws

In short, information warfare is a broad state-level conflict over information that need not be violent, while cyber terrorism is the use of cyber attacks by terrorists to intimidate societies through disruption or violence.

Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)

About Saif R

An educator and technology enthusiast passionate about empowering students through quality education and digital learning. Dedicated to making academic resources and opportunities accessible to everyone.