National Digital LMS
Module 5: Core Competencies

Chapter 9: Advanced Sorting and Searching Techniques

Quicksort, mergesort, countingsort, binary search on sorted monotonic spaces.

20 mins read Pages 153 - 171
Bilingual Learning (English & اردو) Class 12 / HSSC-II Level

Chapter 9: Cybersecurity and Safe Digital Collaboration (Page 118 – 136)

نواں باب: سائبر سیکیورٹی اور محفوظ ڈیجیٹل تعاون

In an interconnected world, digital systems face relentless adversarial threats. Cybersecurity encompasses the technologies, processes, and policies designed to protect networks, devices, software programs, and sensitive data from unauthorized access, damage, or digital theft. This chapter covers the CIA Triad, malware families, social engineering attacks, cryptographic defense, multi-factor authentication, and legal ethics under Pakistan's PECA legislation.

انٹرنیٹ کی اس دنیا میں ہیکرز اور سائبر حملوں سے بچاؤ لازمی ہو چکا ہے۔ سائبر سیکیورٹی کا مقصد کمپیوٹرز، نیٹ ورکس اور خفیہ ڈیٹا کو چوری اور نقصان سے بچانا ہے۔ اس باب میں سائبر سیکیورٹی کے تین بنیادی اصول (CIA Triad)، وائرسز اور رینسم ویئر کی اقسام، اینکرپشن (خفیہ کاری) کے طریقے، ٹو فیکٹر تصدیق اور پاکستان کے سائبر کرائم قوانین (PECA) کی مکمل تفصیل دی گئی ہے۔
Visual Security Model: The CIA Triad (Confidentiality, Integrity, Availability) تصویری خاکہ
The Cybersecurity CIA Triad (سائبر سیکیورٹی کا بنیادی اصول) Information Security Architecture | Chapter 9 (Pages 118-136) SECURITY 1. CONFIDENTIALITY (رازداری) Only authorized individuals can view data. • Defenses: AES Encryption, SSL/TLS, MFA • Threats: Eavesdropping, Snooping, Phishing ڈیٹا چوری نہ ہو اور صرف مجاز افراد پڑھ سکیں 2. INTEGRITY (سالمیت و درستگی) Guarantees data is not altered or tampered with. • Defenses: Cryptographic Hash (SHA-256) • Threats: Man-in-the-Middle, SQL Injection ٹرانسمیشن کے دوران ڈیٹا میں کوئی رد و بدل نہ کر سکے 3. AVAILABILITY (دستیابی) Services and files remain online whenever needed. • Defenses: Redundant Servers, Cloud CDN, Backups • Threats: Denial of Service (DoS / DDoS), Ransomware سسٹم چوبیس گھنٹے فعال رہے اور کبھی بند نہ ہو
Comprehensive Textbook Learning Material (تفصیلی تعلیمی مواد)
Full Syllabus Coverage • BISE Punjab
1 1. The Core CIA Security Triad
۱. سائبر سیکیورٹی کا بنیادی ستون (The CIA Triad)
English Theoretical Concept & Technical Breakdown:
- **Confidentiality (رازداری):** Restricting data exposure so that only authorized, authenticated users can view it. Defended by robust encryption (AES, RSA), access control lists, and multi-factor authentication.
- **Integrity (سالمیت و درستگی):** Ensuring data remains completely accurate, consistent, and unaltered during storage and transit. Defended by cryptographic hashing (SHA-256) and digital signatures.
- **Availability (دستیابی):** Ensuring authorized users have uninterrupted, reliable access to resources, services, and files whenever required. Defended by redundant power supplies, backup servers, firewalls, and DDoS mitigation.
آسان اردو میں مکمل اور تفصیلی وضاحت:
- **رازداری (Confidentiality):** خفیہ ڈیٹا صرف مجاز افراد پڑھ سکیں، کوئی ہیکر چوری نہ کر سکے۔ اس کے لیے اینکرپشن (خفیہ کاری) استعمال ہوتی ہے۔
- **سالمیت (Integrity):** ڈیٹا میں دورانِ ترسیل کوئی غیر قانونی رد و بدل نہ کر سکے (مثلاً بینک اکاؤنٹ کے ٹرانسفر میں ۱۰ روپے کے بجائے ۱۰۰ روپے نہ بن جائیں)۔ اس کے لیے ہیشنگ (Hashing) استعمال ہوتی ہے۔
- **دستیابی (Availability):** سرورز اور سسٹمز ہر وقت آن اور دستیاب رہیں اور ہیکرز کے حملے سے بند نہ ہوں۔
Real-World Student Analogy (روزمرہ زندگی سے آسان فہم مثال):
In English: Bank Locker System: Confidentiality is only you having the private key to open your locker box. Integrity is ensuring nobody altered the jewelry inside. Availability is the bank branch remaining open during business hours so you can access your vault.
بینک لاکر کی مثال: رازداری یہ ہے کہ صرف آپ کی چابی سے لاکر کھلے۔ سالمیت یہ ہے کہ اندر رکھا سونا بالکل محفوظ رہے اور کوئی ملاوٹ نہ ہو۔ اور دستیابی یہ ہے کہ بینک کھلا رہے تاکہ آپ جب چاہیں اپنا لاکر دیکھ سکیں۔
BISE Punjab Board Examination Tip (اہم امتحانی نکات):
Draw and describe the three components of the CIA Triad.
2 2. Malware Anatomy & Social Engineering Attacks
۲. میلویئر کی اقسام اور سوشل انجینئرنگ کے حملے
English Theoretical Concept & Technical Breakdown:
### Malware Taxonomy:
- **Virus:** Malicious code that attaches itself to legitimate host executable files and requires human execution to propagate.
- **Worm:** Self-replicating standalone malware that spreads across network vulnerabilities without any human intervention.
- **Trojan Horse:** Malware disguised as useful software (e.g. a free game or cracked software) that secretly opens a backdoor for hackers.
- **Ransomware:** Encrypts user files with military-grade ciphers and demands cryptocurrency ransom for the decryption key.

### Social Engineering:
- **Phishing:** Sending deceptive emails mimicking trusted organizations (e.g., banks, colleges) with fraudulent links designed to steal passwords.
- **DDoS (Distributed Denial of Service):** An army of compromised infected computers (**Botnet**) floods a target web server with billions of junk requests until it crashes.
آسان اردو میں مکمل اور تفصیلی وضاحت:
### نقصان دہ سافٹ ویئرز (Malware):
- **وائرس (Virus):** وہ نقصان دہ کوڈ جو کسی عام فائل کے ساتھ جڑتا ہے اور صارف کے فائل کھولنے پر کمپیوٹر کو خراب کرتا ہے۔
- **ورم (Worm):** خود بخود انٹرنیٹ پر پھیلنے والا کیڑا جس کو پھیلنے کے لیے انسانی مدد کی ضرورت نہیں ہوتی۔
- **ٹروجن ہارس (Trojan):** اصلی اور کارآمد سافٹ ویئر کے بھیس میں چھپا ہوا وائرس جو اندر ہی اندر کمپیوٹر کا کنٹرول ہیکر کو دے دیتا ہے۔
- **رینسم ویئر (Ransomware):** کمپیوٹر کی تمام فائلیں لاک کر کے انکرپٹ کر دینا اور کھولنے کے لیے تاوان مانگنا۔

### سوشل انجینئرنگ:
- **فشنگ (Phishing):** بینک یا فیس بک کا جعلی ای میل یا لنک بھیج کر لوگوں سے ان کے پاس ورڈز چوری کرنا۔
- **ڈی ڈاس حملہ (DDoS):** لاکھوں جعلی کمپیوٹرز کے ذریعے کسی ویب سائٹ پر ایک ساتھ اتنا بوجھ ڈال دینا کہ وہ کریش ہو جائے۔
Real-World Student Analogy (روزمرہ زندگی سے آسان فہم مثال):
In English: Trojan horse is the ancient Greek myth: Soldiers hidden inside a giant decorative wooden horse gifted to Troy. Once inside the gates, they opened the doors to capture the city.
ٹروجن ہارس یونانی جنگ کی وہ لکڑی کا گھوڑا ہے جس کے اندر چھپ کر سپاہی دشمن کے قلعے میں گھس گئے تھے۔
BISE Punjab Board Examination Tip (اہم امتحانی نکات):
Short Question: Differentiate between a Virus and a Worm.
3 3. Cryptography & Multi-Factor Authentication (MFA)
۳. کرپٹوگرافی (خفیہ کاری) اور ٹو فیکٹر تصدیق (MFA)
English Theoretical Concept & Technical Breakdown:
- **Symmetric Encryption (Single Key):** Sender and receiver share the exact same private key to encrypt and decrypt (e.g. AES-256). Very fast, but securely sharing the key over the internet is challenging.
- **Asymmetric Encryption (Public-Private Key Pair):** Employs two mathematically linked keys: A **Public Key** shared freely for anyone to encrypt messages, and a **Private Key** kept strictly secret by the receiver to decrypt. Powers SSL/TLS, HTTPS, and digital signatures.
- **Multi-Factor Authentication (MFA):** Requires at least 2 distinct authentication factors:
1. *Something you know:* Password, PIN.
2. *Something you have:* Smartphone OTP, hardware security key.
3. *Something you are:* Fingerprint, facial biometrics, retina scan.
آسان اردو میں مکمل اور تفصیلی وضاحت:
- **سمیٹرک اینکرپشن (Symmetric):** جس میں ڈیٹا کو خفیہ بنانے اور دوبارہ کھولنے کے لیے ایک ہی چابی استعمال ہو (جیسے AES)۔ یہ بہت تیز رفتار ہے۔
- **اسمیٹرک اینکرپشن (Asymmetric):** اس میں دو چابیاں ہوتی ہیں: **پبلک کی** جو دنیا کے ہر شخص کو دی جا سکتی ہے تاکہ وہ پیغام خفیہ کر سکے، اور **پرائیویٹ کی** جو صرف وصول کنندہ کے پاس ہوتی ہے جس سے وہ پیغام کھلتا ہے۔ یہی انٹرنیٹ پر بینکنگ اور ای کامرس کو محفوظ بناتی ہے۔
- **ٹو فیکٹر تصدیق (MFA):** اکاؤنٹ لاگ ان کرنے کے لیے دو مختلف رکاوٹیں لگانا: ۱) پاس ورڈ جو آپ کو یاد ہو، ۲) موبائل پر آنے والا او ٹی پی کوڈ (OTP) جو آپ کے پاس ہو۔
Real-World Student Analogy (روزمرہ زندگی سے آسان فہم مثال):
In English: Public key is like a street mailbox with a drop slot: Anyone can drop a letter in (encrypt), but only the postman with the special private key can open the box to read the mail (decrypt).
پبلک کی ڈاک کے ڈبے جیسی ہے جس میں کوئی بھی خط ڈال سکتا ہے، لیکن اس ڈبے کو صرف ڈاکیا اپنی مخصوص پرائیویٹ چابی سے کھول کر خط نکال سکتا ہے۔
BISE Punjab Board Examination Tip (اہم امتحانی نکات):
Describe the working mechanism of Asymmetric Encryption and list the 3 factors of authentication.
Looking for the official textbook pages?

Jump directly to pages 153 - 171 in the embedded streaming viewer.

PCTB Official Textbook - Chapter 9 Start Page: 153
Download
Protected Stream Proxy: Direct hotlinking is blocked. Byte-ranges are streamed dynamically.
Class 12 Chapters