๐ 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.
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.
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
AnimationPhishing accounts for 36% of all data breaches โ the human is the weakest link in cybersecurity.
Cybersecurity Concepts Explorer
Interactiveโข 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.
โข 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.