← Cyber Security Essentials: Stay Safe and Understand Threats

To keep these notes as a PDF, press "Download PDF" and choose "Save as PDF" as the printer. On a phone: open the browser menu, tap Share or Print, then Save as PDF.

VJ Classes

Course notes

Cyber Security Essentials: Stay Safe and Understand Threats

Learn how cyber attacks and frauds work, protect your accounts, phone and money, and understand security at work and India's cyber laws.

What you will learn

Contents

Foundations and threats

Lesson 1The question cyber security asks: the CIA triad

Every day you trust computers with things that matter: your marks, your savings, your photos, your private chats. So cyber security begins with one question: how do we keep information, and the systems that hold it, safe from people who want to steal it, change it or stop us using it? Everything in this course answers some part of that question.

Three things worth protecting

Security professionals describe “safe” with three goals, called the CIA triad (the letters have nothing to do with the American agency):

  • Confidentiality means only the right people can read the information. Your bank balance should be visible to you and your bank, not to the person next to you on the bus.
  • Integrity means the information is accurate and has not been changed without permission, and any change can be detected. A marksheet or an invoice is worthless if someone can quietly edit it.
  • Availability means information and services work when they are needed. A board-results website that crashes on result day has failed, even though nothing was stolen.

Every protection in this course serves at least one of these goals. Encryption mainly protects confidentiality. Digital signatures and checksums protect integrity. Backups and spare servers protect availability.

Sorting incidents with the CIA triad

IncidentGoal harmed
A clerk’s password is stolen and customer records are copiedConfidentiality
A student changes marks in the school’s result fileIntegrity
A fraudster edits the bank account number on a supplier’s invoiceIntegrity
A flood of fake traffic knocks an online shop offline during a saleAvailability
Ransomware locks every file in a clinicAvailability, and confidentiality too if the files are also stolen

One incident can harm more than one goal. Ransomware gangs now often copy data before locking it, and then threaten to publish it.

The language of risk

Five words appear in every security discussion:

  • An asset is anything of value: data, devices, money, reputation.
  • A vulnerability is a weakness, such as an app that has not been updated, a reused password, or a staff member who has never heard of phishing.
  • A threat is anything that could exploit a weakness: a criminal, a careless or angry insider, even a fire or a flood.
  • Risk combines how likely a harmful event is with how much damage it would do. A rough rule is risk = likelihood × impact.
  • A control (or safeguard) is any measure that reduces risk: a lock, a password, a backup, a training session.

You can never remove all risk, and it makes no sense to spend ₹10,000 protecting something worth ₹500. Good security finds the biggest risks and reduces those first.

Proving who you are

Four related ideas are often mixed up:

  1. Identification: claiming an identity, such as typing your username.
  2. Authentication: proving the claim, with a password, a fingerprint or a one-time code.
  3. Authorisation: deciding what you may do once proved. A student may view her marks; only the exam cell may change them.
  4. Accounting (also called auditing): recording who did what and when, so that actions can be traced later.

When a news report says “the attackers logged in with a stolen password”, authentication was defeated. When it says “an employee could see salary data he had no reason to see”, authorisation was too generous.

Defence in depth

No single control is perfect, so good security is built in layers, like a home with a gate, a locked door, a cupboard lock and a locker for the jewellery. A thief who gets past one layer still meets the next. For a phone, the layers might be a screen lock, encrypted storage, regular updates, careful app permissions and two-factor authentication on every important account.

People are one of the layers, and often the weakest. Most attacks begin by tricking a person into clicking, typing or telling, rather than by defeating clever technology. That is why this course spends as much time on habits as on machines.

Remember

Security is not a product you buy once; it is a set of habits: updating, backing up, thinking before you click, and checking who has access to what. Attackers keep changing their methods, so defenders keep learning.

Key points

  • Cyber security protects confidentiality, integrity and availability: the CIA triad.
  • Risk combines the likelihood of a harmful event with its impact; reduce the biggest risks first.
  • Authentication proves who you are; authorisation decides what you may do.
  • Build protection in layers (defence in depth), because any single control can fail.
  • Most attacks start by tricking a person, so habits matter as much as technology.

Lesson 2Threats and attackers: malware, phishing and breaches

To defend well, you first need to know what you are defending against. This lesson introduces the attackers and their main tools. It explains how attacks work in outline, so that you can recognise them; it does not teach anyone to carry them out.

Who attacks, and why

  • Cyber criminals want money: they steal bank details, run frauds and demand ransoms. They are by far the most common threat to ordinary people and small businesses.
  • Insiders are employees or contractors who misuse their access out of greed or anger, or who simply make careless mistakes.
  • Hacktivists attack to make a political or social point, often by defacing websites or leaking documents.
  • State-sponsored groups work for governments, spying on or disrupting other countries’ defence, power, telecom and research systems.

Most attacks on individuals are not personal. Criminals send millions of messages and profit from the small fraction of people who respond.

Malware: harmful software

Malware (malicious software) is any program written to harm you or your device. The main families:

TypeWhat it doesHow it usually arrives
VirusAttaches to a file or program and spreads when that file is runPirated software, infected pen drives, attachments
WormCopies itself from computer to computer across a network on its ownComputers missing security updates
TrojanLooks like a useful app but hides a harmful partFake apps, “free” cracked software
SpywareSecretly records keystrokes, messages or locationFake apps, bundled downloads
AdwareFloods the device with unwanted adsFree apps, browser extensions
BotLets a criminal control the device remotely, along with thousands of others (a botnet)Weak default passwords on routers and cameras

Ransomware encrypts (scrambles) your files and demands payment, usually in cryptocurrency, for the key. It typically gets in through a phishing email, a weak password on a remote-access service, or an unpatched system. Paying does not guarantee recovery and funds more crime; the real defences are updates, strong logins and backups kept offline.

Ransomware at AIIMS, New Delhi

In November 2022, a ransomware attack disrupted the computer systems of AIIMS, New Delhi, one of India’s largest hospitals. For days, staff had to handle registration and other services by hand while systems were restored. The lesson for every organisation: availability can be a matter of safety, and recovery plans must be tested before they are needed.

Phishing and social engineering

Social engineering means manipulating people rather than machines. Its most common form is phishing: a message that pretends to come from someone you trust, so that you click a link, open a file, or hand over a password, OTP or money. Variants have their own names: smishing (by SMS), vishing (by voice call), spear phishing (aimed at one person, using details about them) and phishing through QR codes.

Other tricks include pretexting (an invented story: “I am from the IT department and need your password to fix your mailbox”), baiting (a pen drive labelled “Salary list” left in the canteen) and tailgating (walking into a secure office behind an employee). All of them pull the same levers: urgency (“today only”), fear (“your account will be blocked”), authority (“this is the police”), greed (“you have won”) and curiosity.

Reading a phishing SMS

“Dear consumer, your electricity connection will be disconnected tonight at 9.30 pm because your last bill is not updated. Immediately contact our officer on 98XXXXXXXX.”

  • Urgency and fear: “tonight at 9.30 pm”.
  • Wrong channel: power companies do not ask you to phone an “officer” on a personal mobile number.
  • Vague details: no consumer number, no amount due, no official sender ID.
  • The real goal: on the call, the “officer” asks you to install a screen-sharing app or pay a small “update fee” through a link, and then empties the account.

Check by opening your power company’s official app or website yourself, never through the message.

Data breaches

A data breach happens when information reaches people who should not have it, through hacking, an insider, or a mistake such as a database left open on the internet. Leaked email addresses and passwords are traded among criminals, who then try those pairs on many other websites. This is called credential stuffing, and it works because so many people use one password everywhere. The next lesson shows how to make sure that a leak at one website cannot open all your accounts.

Key points

  • Most attackers are criminals after money, and most attacks on individuals are mass campaigns, not personal.
  • Malware includes viruses, worms, trojans, spyware, adware, bots and ransomware.
  • Phishing and other social engineering exploit urgency, fear, authority, greed and curiosity.
  • Verify any alarming message through the official app or website, never through the message itself.
  • Leaked passwords are tried on other sites (credential stuffing), so never reuse a password.

Protecting yourself

Lesson 3Passwords, passkeys and two-factor authentication

Your accounts are the doors to your money, your messages and your identity. This lesson shows how to lock those doors properly.

Why passwords fail

Passwords fail in four predictable ways:

  • They are guessable. Names, birthdays, cricket heroes and patterns like India@123 are the first things attackers try. Lists of millions of real leaked passwords tell them exactly what people choose.
  • They are reused. One leak exposes every account that shares the password.
  • They are phished. A perfect password typed into a fake login page is simply handed over.
  • They are stolen in bulk. Well-built websites store only a hash of each password, a scrambled one-way fingerprint. But when a password database is stolen, attackers can test guesses against those hashes on their own computers at enormous speed, with no login screen to slow them down.

Strong passwords: long, random, unique

Each extra character multiplies the number of possible passwords. The example below assumes the password is truly random, so an attacker must try every combination.

How length beats complexity

Suppose a stolen password file can be attacked at 10 billion guesses per second (an assumption for illustration).

Password made ofPossible combinationsTime to try them all
8 random lowercase letters268 ≈ 2.1 × 1011about 21 seconds
12 random lowercase letters2612 ≈ 9.5 × 1016about 110 days
16 random lowercase letters2616 ≈ 4.4 × 1022about 1.4 lakh years

Check the first row: 2.1 × 1011 ÷ 1010 = 21 seconds. Adding four letters multiplies the work by 264 = 4,56,976.

So aim for at least 12 characters, and 15 or more for important accounts. Modern guidance, such as that of the US standards body NIST, favours length over forced symbols, and says to change a password when there is a sign it has leaked rather than on a fixed calendar.

A practical way to get length you can remember is a passphrase of four or five randomly chosen words, such as kettle-monsoon-orbit-tiffin-lamp. A famous quotation or a song line is not random; attackers try those too.

Common mistake

Using the same password for email and everything else. Your email is the master key: “forgot password” links for your bank, UPI apps and social media all arrive there. Give your email its own long, unique password and two-factor authentication.

Password managers

Nobody can remember fifty unique random passwords, and you should not try. A password manager keeps them in an encrypted vault that opens with one strong master password. It generates a random password for each site and fills it in for you. Options include the managers built into Google and Apple accounts and dedicated apps such as Bitwarden or 1Password.

A manager also helps against phishing: it fills a password only on the exact website address it was saved for. If it refuses to fill on a page that looks like your bank, stop and check the address. Protect the manager itself with a long master password and two-factor authentication.

Two-factor authentication and passkeys

Two-factor authentication (2FA) asks for two different kinds of proof: something you know (a password or PIN), something you have (your phone or a security key), or something you are (a fingerprint or your face). Two passwords are still only one factor. Common second factors, from weaker to stronger:

  1. SMS OTP: far better than nothing, but OTPs can be phished, read by malware or diverted by a SIM swap.
  2. Authenticator app: generates a six-digit code that changes every 30 seconds on your own phone.
  3. Push approval: you tap “Yes” on a prompt. Never approve a prompt you did not start.
  4. Security keys and passkeys: resistant to phishing.

A passkey replaces the password altogether. When you create one, your device makes a pair of keys: a private key that never leaves your device (unlocked by your fingerprint, face or screen PIN) and a public key that the website stores. At login, the site sends a challenge and your device signs it with the private key. Nothing secret is typed, so nothing can be phished; the passkey works only on the genuine website it was made for; and a stolen copy of the website’s database holds only public keys, which are useless to an attacker.

Key points

  • Passwords fail by being guessable, reused, phished or stolen in bulk.
  • Length and randomness matter most: use 12 or more characters, or a passphrase of random words.
  • Use a unique password for every account, kept in a password manager.
  • Turn on two-factor authentication, preferring an authenticator app, security key or passkey over SMS.
  • Never share an OTP or approve a login prompt you did not start.

Lesson 4Safe devices, browsing and Wi-Fi

Most successful attacks on devices use weaknesses that were fixed long ago, on devices that never installed the fix. A handful of habits turns your phone and laptop into hard targets.

Updates and safe software

A security update (or patch) closes a known weakness. Once a fix is published, criminals study it to learn what was broken, then attack every device that has not updated. The WannaCry ransomware of 2017 spread around the world through a Windows flaw for which Microsoft had released a fix two months earlier; updated computers were safe.

  • Switch on automatic updates for the operating system, the browser and apps, and restart when asked.
  • When a device reaches end of support (an old phone that no longer receives Android or iOS updates, or an old version of Windows), it stops getting security fixes. Plan to replace it, and do not use it for banking.
  • Install apps only from official stores, and never use pirated or “cracked” software, a favourite hiding place for malware.
  • Keep built-in protection switched on: Microsoft Defender on Windows, Google Play Protect on Android.

Lock down your phone

  • Use a screen lock. Modern Android phones and iPhones encrypt their storage, and the lock protects the key, so a thief cannot simply read your data.
  • Never install APK files sent on WhatsApp or SMS. Fake “wedding invitation”, “traffic challan” and “bank KYC” APKs are a common trick in India; once installed, they can read your SMS, including OTPs.
  • Be suspicious of anyone who asks you to install a remote-access app (such as AnyDesk or TeamViewer). These are genuine tools, but a stranger who wants one on your phone wants to see your OTPs and control your apps.
  • Turn on Find My Device (Android) or Find My (iPhone) so you can locate, lock or erase a lost phone. In India you can also block a lost or stolen phone through the Sanchar Saathi portal of the Department of Telecommunications.
  • Review app permissions: each app should get only what its job needs.

A permissions check

AppPermission requestedSensible?
Torch appContacts and SMSNo: a torch needs only the flash
MapsLocation while using the appYes
Photo editorPhotos and cameraYes, but not contacts or call logs
Instant loan appContacts, photos and call logsNo: a major red flag

Illegal loan apps have used contact lists to harass borrowers and their families. RBI’s digital lending rules do not allow lending apps to access your contacts, files or call logs.

Browsing and Wi-Fi

The padlock and https:// in the address bar mean your connection to that website is encrypted. They do not mean the website is honest; fraud sites get padlocks too, so always read the domain name. Avoid fake “Download” buttons on ad-heavy sites, and keep browser extensions few and from well-known developers, because an extension can read everything on the pages you visit.

Public Wi-Fi at stations, airports and cafés is shared with strangers, and a criminal can set up a hotspot with a convincing name such as “Airport_Free_WiFi”. Most banking apps encrypt their traffic, but to be safe:

  • prefer mobile data or your own hotspot for banking and payments;
  • turn off auto-connect to open networks, and “forget” networks you no longer use;
  • never install anything that a Wi-Fi login page asks you to install.

For home Wi-Fi, change the router’s default admin password, use WPA2 or WPA3 security with a long Wi-Fi password, and update the router’s firmware.

Backups: the 3-2-1 rule

Backups turn a disaster (theft, a failed disk, ransomware) into an inconvenience. Follow the 3-2-1 rule: keep 3 copies of important data, on 2 different kinds of storage, with 1 copy somewhere else, such as cloud storage.

Priya’s backup plan

Priya, a commerce student in Jaipur, keeps her project files and photos:

  1. on her laptop (the working copy);
  2. on an external hard disk, updated every Sunday and then unplugged, so that ransomware on the laptop cannot reach it;
  3. in a cloud storage account protected by two-factor authentication.

Once a month she restores one file from each backup to check that it works. A backup you have never tested is only a hope.

Key points

  • Turn on automatic updates; unsupported devices and pirated software are unsafe.
  • Never install APKs from messages or remote-access apps for strangers, and grant only the permissions an app needs.
  • HTTPS means an encrypted connection, not an honest website: read the domain.
  • Prefer mobile data for payments on the move, and secure your home router.
  • Follow the 3-2-1 backup rule, keep one copy offline, and test your restores.

Lesson 5Financial fraud in India and how to report it

India’s digital payments are fast, and that speed is exactly what fraudsters exploit: money that leaves your account in seconds can pass through several accounts within minutes. Yet almost every fraud below works only if you do something: share a code, enter a PIN, install an app or send money. Learn the patterns and you can refuse.

Rules that stop most frauds

  1. Never share an OTP, UPI PIN, card CVV, password or net-banking details with anyone, including people who say they are from your bank, the police or a government office. Genuine staff never ask for them.
  2. Your UPI PIN is only for paying. You never need to enter it, or scan a QR code, to receive money.
  3. Urgency is a red flag. “Act within 30 minutes”, “your account will be blocked today” and “you are under arrest” are pressure tactics.
  4. Verify through a channel you choose. Call the number on the back of your card or in the official app, not a number from a message or a search result.
  5. If it sounds too good to be true, it is. No real job pays you to like videos, and no honest investment guarantees to double your money.

How the common frauds work

FraudHow it worksYour defence
UPI “receive money” trickA “buyer” sends a QR code or payment link and says entering your PIN will credit you. It debits you.Receiving needs no PIN and no scan.
Fake customer careFake helpline numbers are planted in search results, maps and social media. The “agent” asks for an OTP or a remote-access app to “process your refund”.Take numbers only from the official app, website or your card.
KYC update“Your KYC has expired and your account will be blocked today. Click here.” The link opens a fake bank page.Update KYC only at your branch or in the bank’s official app.
SIM swapUsing your personal details, a criminal gets a duplicate SIM issued. Your phone suddenly loses signal, and your OTPs now reach him.If your SIM stops working without reason, call your operator and bank at once.
Fake jobs (task scams)“Part-time job: rate hotels, earn ₹5,000 a day.” Small payouts build trust, then you must “invest” to unlock bigger tasks, and the money vanishes.Real employers never charge you to work.
Fake investments“Stock tips” groups and fake trading apps show huge paper profits, but every withdrawal needs another “fee”.Deal only with SEBI-registered entities; distrust guaranteed returns.
“Digital arrest”Callers posing as police, CBI or customs claim a parcel in your name held drugs, keep you on a video call and demand money to “clear your name”.There is no “digital arrest” under Indian law. Hang up and call 1930.

To cut down request-based frauds, NPCI stopped person-to-person “collect requests” on UPI from 1 October 2025. Fraudsters simply moved to QR codes and payment links, so the rule stays the same: entering your PIN always means paying.

The sofa sale

Rahul from Pune lists an old sofa online for ₹8,000. A “buyer” who says he is an army officer being transferred agrees at once, without bargaining, and sends a QR code: “Scan this and enter your PIN to receive the ₹8,000 advance.”

  • No bargaining and a sympathetic story: trust is being built fast.
  • Scanning a QR code and entering a PIN pays the person who made the QR code. Rahul would lose ₹8,000.
  • When the first attempt “fails”, such fraudsters often send another QR code for a bigger amount “to correct the error”.

Rahul’s correct reply: “Please send the money to my UPI ID. I don’t need to scan anything to receive it.”

The first hour after a fraud

Speed matters. When a fraud is reported quickly, the money can sometimes be frozen in the accounts it passed through before it is withdrawn. If you lose money:

  1. Call 1930, the national cyber crime helpline, or report at cybercrime.gov.in, the National Cyber Crime Reporting Portal run under the Ministry of Home Affairs.
  2. Inform your bank through its official helpline, and ask it to block your card, UPI or net banking if needed.
  3. Change your passwords and remove any remote-access app you were tricked into installing.
  4. Keep evidence: screenshots, the fraudster’s numbers and UPI IDs, and the transaction reference (UTR) numbers.

Under RBI’s rules on unauthorised electronic transactions, a customer who was not negligent and reports within three working days has zero liability. A customer who shared an OTP or PIN may have to bear the loss until the bank is told, which is one more reason to report at once.

Sanchar Saathi

The Department of Telecommunications’ Sanchar Saathi portal and app let you check which mobile connections are registered in your name, block a lost or stolen phone, and report suspected fraud calls and messages through its Chakshu facility.

Key points

  • Never share OTPs, PINs, CVVs or passwords; genuine officials never ask for them.
  • Entering a UPI PIN or scanning a QR code always sends money; receiving needs neither.
  • Take helpline numbers only from official apps, websites or your card.
  • Real jobs do not charge fees, real investments do not guarantee returns, and “digital arrest” does not exist.
  • After a fraud, call 1930 or report on cybercrime.gov.in at once, inform your bank and keep evidence.

How protection works

Lesson 6Encryption, HTTPS, firewalls and VPNs

You have seen what to protect and the habits that protect it. Now look under the bonnet at the technologies that do much of the protecting, often without you noticing.

Encryption: locking data with a key

Encryption turns readable data (plaintext) into scrambled data (ciphertext) using an algorithm and a key. Only someone with the right key can turn it back (decrypt it). The algorithms themselves are public; the secrecy lives entirely in the key.

A very old cipher

Julius Caesar is said to have shifted each letter three places along the alphabet: A becomes D, B becomes E, and so on.

Plaintext:  NAMASTE
Key:        shift each letter by 3
Ciphertext: QDPDVWH

It is easy to break: there are only 25 possible shifts, so an attacker simply tries them all. Modern ciphers such as AES use keys of 128 or 256 bits. A 128-bit key has 2128 ≈ 3.4 × 1038 possible values, far too many to try even with all the computers on Earth.

There are two families:

  • Symmetric encryption uses one shared key to lock and unlock. It is fast, so it protects large amounts of data, such as your phone’s storage or a video call. AES is the common standard.
  • Asymmetric (public-key) encryption uses a pair of keys: a public key that anyone may have and a private key that only the owner keeps. Data locked with the public key opens only with the private key. It is slower, so it is used mainly to agree on symmetric keys safely and to create digital signatures, as passkeys do.

A hash is different again: a one-way fingerprint of data that cannot be turned back into the data. Change a single character and the whole fingerprint changes:

SHA-256("hello") = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-256("Hello") = 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969

Hashes protect integrity (you can check a downloaded file against its published hash), and slow, salted hashes protect stored passwords.

HTTPS and certificates

HTTPS is ordinary web traffic (HTTP) sent through an encrypted channel called TLS. When you open a site, your browser and the server first perform a handshake. The server presents a certificate, a digital document saying “this public key belongs to this domain”, signed by a certificate authority (CA) that your browser already trusts. If the signature is valid and the domain matches, the two sides agree on a fresh symmetric key and encrypt everything that follows.

HTTPS gives you confidentiality (others on the network cannot read the traffic), integrity (it cannot be altered unnoticed) and proof of the domain (you really are talking to whoever controls that domain name). It does not tell you whether the owner is honest: a fraudster who registers a lookalike domain can get a valid certificate for it.

Common mistake

Thinking “padlock = safe site”. The padlock means only that your connection to that domain is private. Read the domain name itself before you type anything.

Firewalls and VPNs

A firewall inspects network traffic and allows or blocks it according to rules, such as “block every incoming connection that the user did not start” or “let the office web server receive traffic only on the HTTPS port”. Your computer has a software firewall (Windows has one built in), your home router acts as a basic firewall, and organisations place dedicated firewalls between their network and the internet. A web application firewall (WAF) sits in front of a website and filters out common attack patterns.

A VPN (virtual private network) creates an encrypted tunnel from your device to a VPN server, and your traffic enters the internet from there. Companies use VPNs so that staff can reach office systems safely from home. A consumer VPN hides your traffic from the local Wi-Fi network and your internet provider, but:

  • the VPN company can see your traffic instead, so you must trust it;
  • it does not stop phishing, malware or you typing a password into a fake site;
  • it does not make you anonymous to websites you log in to.

VPNs and Indian rules

CERT-In’s directions of April 2022 require VPN service providers in India to keep records about their customers, such as validated names, addresses and the IP addresses allotted, for five years. A VPN is a privacy tool, not a cloak for breaking the law.

Key points

  • Encryption uses a key to turn plaintext into ciphertext; symmetric is fast, and public-key solves key sharing and signatures.
  • A hash is a one-way fingerprint, used to check integrity and to store passwords safely.
  • HTTPS encrypts traffic and proves the domain, using certificates signed by trusted authorities.
  • Firewalls filter traffic by rules; VPNs encrypt the path to a VPN server but do not stop phishing or malware.

Lesson 7Security at work and for websites

At home you protect a few devices and accounts. An organisation, whether a CA firm with ten staff or a bank with a lakh, must protect many people, systems and customers. The same principles apply, organised into routines.

Least privilege and access control

The principle of least privilege says that every person and every program should have only the access needed for the job, and only for as long as it is needed. If an intern’s account can read every client file and install software, one phished intern password exposes everything. If it can reach only the folders the intern works on, the damage stays small.

  • Give access by role (accounts, HR, managers) rather than person by person.
  • Keep administrator accounts separate from everyday accounts, and use them only for admin work.
  • Require multi-factor authentication (MFA) for email, remote access and every admin account.
  • Follow a joiners, movers, leavers routine: grant access when someone joins, adjust it when they change roles, and remove it on their last day.

Patching, logging and monitoring

Publicly known vulnerabilities receive identifiers called CVEs (Common Vulnerabilities and Exposures) and a severity score from 0 to 10 under CVSS, where 9.0 and above is “critical”. An organisation needs an inventory of every device and program it runs, because it cannot patch what it does not know it has. Internet-facing systems and critical flaws come first.

Logs are records of events: logins, failed logins, file changes, admin actions. They answer “what happened?” after an incident and can raise alarms during one. Larger organisations send logs to a central system called a SIEM (security information and event management), which links related events and alerts analysts.

What a log can tell you

2026-03-14 02:11:05  FAILED   login user=admin ip=203.0.113.45
2026-03-14 02:11:06  FAILED   login user=admin ip=203.0.113.45
2026-03-14 02:11:06  FAILED   login user=admin ip=203.0.113.45
   ... 480 more failures in the next four minutes ...
2026-03-14 02:15:12  SUCCESS  login user=admin ip=203.0.113.45

Hundreds of failures at 2 a.m. from one address, then a success, means someone has guessed the admin password. The right response: disable the account, check everything it did after 02:15, reset the password, add MFA, and limit repeated failed attempts. (Addresses beginning 203.0.113 are reserved for examples like this one.)

In India, CERT-In’s directions of April 2022 require the organisations they cover to keep logs of their systems for a rolling period of 180 days and to report specified cyber incidents to CERT-In within 6 hours of noticing them.

Websites and the OWASP Top 10

OWASP (the Open Worldwide Application Security Project) is a non-profit community that publishes the OWASP Top 10, a list of the most critical security risks to web applications, revised every few years. It gives developers, testers and auditors a shared checklist. In both the 2021 and 2025 editions, broken access control is ranked first: for example, a logged-in customer changes a number in the address bar and sees someone else’s invoice. Other entries include injection, cryptographic failures, security misconfiguration, authentication failures and risky third-party components, which the 2025 edition calls software supply chain failures.

Injection shows how one coding habit prevents a whole class of attacks. If a program glues a visitor’s text directly into a database command, specially crafted text can change the command itself. The fix is to send the text separately, as data only, using a parameterised query:

import sqlite3

db = sqlite3.connect(':memory:')
db.execute('CREATE TABLE students (roll TEXT, name TEXT)')
db.execute("INSERT INTO students VALUES ('101', 'Asha'), ('102', 'Kabir')")

roll = '101'   # imagine this value came from a web form

# Unsafe: "SELECT name FROM students WHERE roll = '" + roll + "'"
# Safe: the ? placeholder keeps the visitor's text as data, never as SQL
rows = db.execute('SELECT name FROM students WHERE roll = ?', (roll,)).fetchall()
print(rows)   # [('Asha',)]

Incident response

Despite every precaution, incidents happen, and a calm plan beats panic. A widely used approach has six stages:

  1. Preparation: a written plan, a contact list, backups and practice drills.
  2. Identification: noticing and confirming that something is wrong.
  3. Containment: stopping the spread, for example by disconnecting infected machines.
  4. Eradication: removing the cause, such as malware or an attacker’s account.
  5. Recovery: restoring systems from clean backups and watching them closely.
  6. Lessons learned: a blame-free review of what to change.

Key points

  • Least privilege: give every account only the access it needs, and remove access promptly when people leave.
  • Keep an inventory, patch critical and internet-facing systems first, and use MFA for admin and remote access.
  • Logs reveal attacks; CERT-In requires 180 days of logs and incident reports within 6 hours.
  • The OWASP Top 10 lists the main web risks, led by broken access control; parameterised queries prevent injection.
  • Incident response runs from preparation through containment and recovery to lessons learned.

Law, careers and the road ahead

Lesson 8Cyber law in India, careers and next steps

Technology is only half of cyber security. Laws define what counts as a crime, what organisations must do with your data and where to turn when things go wrong. This final lesson maps India’s main laws and institutions, then looks at careers and at how to keep learning.

The Information Technology Act, 2000

The IT Act, 2000 was India’s first law on electronic commerce and cyber crime. It came into force on 17 October 2000, gave legal recognition to electronic records and digital signatures, and was amended in 2008 to add many new offences. Sections you will hear about:

SectionCovers
43Unauthorised access, copying data, introducing viruses or damaging a computer: the wrongdoer must pay compensation
66Doing any act in section 43 dishonestly or fraudulently: a criminal offence
66CIdentity theft: fraudulently using someone’s password, electronic signature or other unique identification feature
66DCheating by personation using a computer or phone
66ECapturing or sharing images of a person’s private areas without consent
66FCyber terrorism
67, 67A, 67BPublishing obscene or sexually explicit material, and material sexually exploiting children, electronically
70BMakes CERT-In the national agency for cyber incident response

In Shreya Singhal v. Union of India (2015), the Supreme Court struck down Section 66A, which had punished “offensive” online messages, holding it vague and a violation of free speech. Online frauds are also prosecuted under the Bharatiya Nyaya Sanhita, 2023, which replaced the Indian Penal Code on 1 July 2024, for example as cheating.

Institutions and the DPDP Act

  • CERT-In (Indian Computer Emergency Response Team), under the Ministry of Electronics and Information Technology, issues alerts and advisories, coordinates responses to major incidents and receives mandatory incident reports.
  • NCIIPC (National Critical Information Infrastructure Protection Centre) protects systems whose failure would hurt the nation, such as power, banking, telecom and transport.
  • I4C (Indian Cyber Crime Coordination Centre), under the Ministry of Home Affairs, is behind cybercrime.gov.in and the 1930 helpline, and helps police forces work together on cyber crime.

The Digital Personal Data Protection (DPDP) Act, 2023 is India’s first comprehensive law on personal data:

  • The person the data is about is the Data Principal; the organisation that decides why and how the data is processed is the Data Fiduciary.
  • Personal data may be processed for a lawful purpose with consent that is free, specific, informed and unambiguous, or for certain legitimate uses listed in the Act.
  • Data Principals have rights to information about their data, to correction and erasure, to grievance redressal, and to nominate someone to act for them.
  • Fiduciaries must protect data with reasonable security safeguards, report breaches to the Data Protection Board of India and to the people affected, and obtain verifiable parental consent before processing a child’s data (a child here means anyone under 18).
  • The Board can impose penalties of up to ₹250 crore for failing to take reasonable security safeguards.

The DPDP Rules were notified in November 2025 and apply in phases: the Data Protection Board first, and most duties of organisations about 18 months later.

Which law applies?

SituationLikely legal route
Someone logs in to your email with your stolen passwordIT Act sections 43 and 66, and 66C for using your password
A fake profile with your photos asks your friends for moneyIT Act section 66D, and cheating under the BNS
An online shop leaks customer data through careless securityDPDP Act: complaint to the Data Protection Board
A company is hit by ransomwareReport to CERT-In within 6 hours, and to the police

Whenever money has been lost, start with 1930 or cybercrime.gov.in.

Careers and certifications

Cyber security needs people with very different strengths:

  • Security operations centre (SOC) analysts watch alerts and investigate incidents.
  • Security engineers design and run firewalls, identity systems and cloud security.
  • Penetration testers (ethical hackers) test systems with written permission to find weaknesses before criminals do. Without permission, the same activity is a crime under the IT Act.
  • Governance, risk and compliance (GRC) specialists write policies, run audits and apply laws such as the DPDP Act, a natural path for commerce and law graduates.
  • Digital forensic analysts recover and examine evidence for investigations.

Certifications show employers what you know, and they come in levels: entry-level certificates in security fundamentals, vendor certificates for particular products and cloud platforms, hands-on ethical hacking certificates, and advanced certificates for experienced professionals, some of which require several years of work experience. Build the foundations first: networking, operating systems (especially Linux) and a scripting language such as Python. Practise only where it is legal, in capture-the-flag (CTF) competitions and practice labs built for learning.

Course summary

Security protects confidentiality, integrity and availability by reducing risk in layers. Most attacks trick people, so habits matter: unique passwords in a manager, 2FA or passkeys, updates, careful permissions and tested backups. With money, never share an OTP or PIN, remember that a PIN always means paying, and report fraud to 1930 at once. Organisations add encryption, HTTPS, firewalls, least privilege, logging and incident response, and Indian law backs all of this.

Key points

  • The IT Act, 2000 (amended in 2008) covers unauthorised access (43, 66), identity theft (66C) and cheating by personation (66D).
  • CERT-In handles incident response; I4C is behind cybercrime.gov.in and the 1930 helpline.
  • The DPDP Act, 2023 gives Data Principals rights and makes Data Fiduciaries protect personal data, with penalties up to ₹250 crore.
  • Careers include SOC analyst, security engineer, penetration tester, GRC and forensics; build foundations and practise only legally.

Final quiz

Lesson 9Final quiz

This lesson is a quiz. Take it online: open the quiz.

10 questions on the whole course. Pass with 60% or more to complete the course and earn your certificate. You see the right answers with explanations after you submit, and you can retake it.

These notes are for your own study. Please do not share, upload or sell them.
© 2026 VJ Classes · vjclasses.in