Computer ยท Chapter 08

๐Ÿ”’ Cybersecurity

Malware types, encryption, IT Act 2000, safe practices.

๐Ÿ”’ Staying Safe in the Digital World

Cybersecurity is the practice of protecting computers, networks, and data from attacks, damage, and unauthorized access. Also called Information Security (InfoSec).

CIA Triad โ€” 3 pillars of security:
โ€ข Confidentiality โ€” only authorized persons can access data (encryption, access control)
โ€ข Integrity โ€” data is accurate and not tampered (hashing, checksums)
โ€ข Availability โ€” systems are accessible when needed (backups, redundancy)

Types of threats:
โ€ข Virus โ€” self-replicating program that attaches to files. Needs human action to spread.
โ€ข Worm โ€” self-replicating, spreads over network WITHOUT human action (more dangerous).
โ€ข Trojan Horse โ€” disguised as legitimate software. Gives attacker backdoor access.
โ€ข Ransomware โ€” encrypts files, demands payment. WannaCry (2017) affected 230,000 computers.
โ€ข Spyware โ€” secretly monitors and steals data. Adware โ€” shows unwanted ads.
โ€ข Phishing โ€” fake websites/emails to steal credentials. Most common attack.

๐Ÿ›ก๏ธ Protection tools

Antivirus โ€” detects and removes malware. Scans files, monitors behavior.
Firewall โ€” monitors and filters network traffic based on rules. Hardware or software.
Encryption โ€” converts data to unreadable form. Symmetric (AES โ€” same key), Asymmetric (RSA โ€” public/private key pair).
VPN (Virtual Private Network) โ€” encrypts all traffic, hides IP address.
2FA (Two-Factor Authentication) โ€” password + OTP/biometric.
HTTPS โ€” SSL/TLS encrypts web traffic. Padlock icon in browser.
Password Manager โ€” generates and stores strong unique passwords.

โšก Cyberattacks โ€” SSC/CCC exam

DoS/DDoS (Denial of Service/Distributed DoS) โ€” floods server with traffic to make it unavailable.
Man-in-the-Middle (MITM) โ€” attacker intercepts communication between two parties.
SQL Injection โ€” malicious SQL code injected into web form to access database.
Cross-Site Scripting (XSS) โ€” malicious scripts injected into web pages.
Zero-day exploit โ€” attacks unknown vulnerability before patch available.
Social Engineering โ€” manipulating people to give up information (phishing, vishing, baiting).
IT Act 2000 (India) โ€” law governing cybercrime. Section 66 (hacking), Section 67 (obscene content online).

๐ŸŽฌ

Types of Malware โ€” Click Each

Animation
TYPES OF MALWARE โ€” CLICK EACH TO UNDERSTAND ๐Ÿฆ  VIRUS Attaches to files Needs human to spread ๐Ÿชฑ WORM Self-replicates over network No human action needed ๐Ÿด TROJAN Fake legitimate software Opens backdoor ๐Ÿ” RANSOMWARE Encrypts your files Demands Bitcoin ransom ๐ŸŽฃ PHISHING Fake emails/websites Steal credentials ๐Ÿ‘๏ธ SPYWARE Monitors secretly Steals keystrokes/data ๐Ÿ’ฅ DDoS Floods server with traffic Makes site unavailable ๐Ÿ’‰ SQL Injection Injects SQL into form Accesses/destroys database CLICK ANY THREAT Malware (malicious software) is designed to harm, steal, or gain unauthorized access to systems.

Phishing accounts for 36% of all data breaches โ€” the human is the weakest link in cybersecurity.

๐Ÿ’ป

Cybersecurity Concepts Explorer

Interactive
SymmetricSame key for encryption and decryption โ€” AES, DES, 3DES
AsymmetricPublic key encrypts, private key decrypts โ€” RSA, ECC
HashingOne-way โ€” MD5, SHA-256 โ€” verifies integrity, stores passwords
SSL/TLSUses asymmetric for key exchange, then symmetric for data
End-to-endWhatsApp, Signal โ€” only sender and receiver can read
Practice (CCC/SSC): What is the difference between symmetric and asymmetric encryption?
Symmetric Encryption:
โ€ข Same key used for both encryption (locking) and decryption (unlocking)
โ€ข Fast โ€” suitable for large amounts of data
โ€ข Problem: How to securely share the key with the recipient?
โ€ข Algorithms: AES (Advanced Encryption Standard โ€” 128/256 bit, most secure), DES (56-bit, now considered weak), 3DES
โ€ข Used for: Encrypting files, disk encryption (BitLocker), HTTPS data transfer phase

Asymmetric Encryption (Public Key Cryptography):
โ€ข Two keys: Public key (shared openly) + Private key (kept secret)
โ€ข Data encrypted with public key can ONLY be decrypted by the private key
โ€ข Solves the key distribution problem
โ€ข Slower โ€” used for small amounts of data (key exchange, digital signatures)
โ€ข Algorithms: RSA (Rivest-Shamir-Adleman, most common), ECC, Diffie-Hellman
โ€ข Used for: HTTPS handshake, email encryption (PGP), digital signatures, SSH login

How HTTPS combines both:
1. Server sends public key in certificate
2. Browser uses public key to encrypt a random session key
3. Server decrypts with private key โ€” both now share the session key
4. Rest of communication uses fast symmetric AES with that session key

Best of both: asymmetric solves key sharing, symmetric handles speed.
Practice (SSC): What are the important sections of IT Act 2000 for exams?
Information Technology Act, 2000 (India) โ€” key sections:

โ€ข Section 43 โ€” Penalty for unauthorized access to computer, network. Civil liability.
โ€ข Section 65 โ€” Tampering with computer source documents. Imprisonment up to 3 years.
โ€ข Section 66 โ€” Computer related offences (hacking, data theft). Imprisonment up to 3 years + fine.
โ€ข Section 66A โ€” (Struck down by SC in 2015 โ€” Shreya Singhal case) Was about offensive online messages.
โ€ข Section 66B โ€” Dishonestly receiving stolen computer resource.
โ€ข Section 66C โ€” Identity theft โ€” fraudulently using someone else's electronic signature, password. Up to 3 years.
โ€ข Section 66D โ€” Cheating by impersonation using computer resource (online fraud).
โ€ข Section 66E โ€” Privacy violation โ€” publishing private images of person.
โ€ข Section 66F โ€” Cyber terrorism โ€” most severe. Imprisonment for life.
โ€ข Section 67 โ€” Publishing obscene material online. Up to 5 years.
โ€ข Section 69 โ€” Government power to intercept/decrypt information for national security.
โ€ข Section 79 โ€” Safe harbour provision for intermediaries (like Google, Facebook).

IT (Amendment) Act, 2008 added many sections including 66A-F.
CERT-In (Computer Emergency Response Team โ€” India) โ€” national cybersecurity agency.
โ†
Previous
Programming Basics