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.
Course notes
Learn how cyber attacks and frauds work, protect your accounts, phone and money, and understand security at work and India's cyber laws.
Foundations and threats
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.
Security professionals describe “safe” with three goals, called the CIA triad (the letters have nothing to do with the American agency):
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
| Incident | Goal harmed |
|---|---|
| A clerk’s password is stolen and customer records are copied | Confidentiality |
| A student changes marks in the school’s result file | Integrity |
| A fraudster edits the bank account number on a supplier’s invoice | Integrity |
| A flood of fake traffic knocks an online shop offline during a sale | Availability |
| Ransomware locks every file in a clinic | Availability, 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.
Five words appear in every security discussion:
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.
Four related ideas are often mixed up:
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.
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
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.
Most attacks on individuals are not personal. Criminals send millions of messages and profit from the small fraction of people who respond.
Malware (malicious software) is any program written to harm you or your device. The main families:
| Type | What it does | How it usually arrives |
|---|---|---|
| Virus | Attaches to a file or program and spreads when that file is run | Pirated software, infected pen drives, attachments |
| Worm | Copies itself from computer to computer across a network on its own | Computers missing security updates |
| Trojan | Looks like a useful app but hides a harmful part | Fake apps, “free” cracked software |
| Spyware | Secretly records keystrokes, messages or location | Fake apps, bundled downloads |
| Adware | Floods the device with unwanted ads | Free apps, browser extensions |
| Bot | Lets 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.
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.”
Check by opening your power company’s official app or website yourself, never through the message.
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
Protecting yourself
Your accounts are the doors to your money, your messages and your identity. This lesson shows how to lock those doors properly.
Passwords fail in four predictable ways:
India@123 are the first things attackers try. Lists of millions of real leaked passwords tell them exactly what people choose.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 of | Possible combinations | Time to try them all |
|---|---|---|
| 8 random lowercase letters | 268 ≈ 2.1 × 1011 | about 21 seconds |
| 12 random lowercase letters | 2612 ≈ 9.5 × 1016 | about 110 days |
| 16 random lowercase letters | 2616 ≈ 4.4 × 1022 | about 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.
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 (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:
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
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.
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.
A permissions check
| App | Permission requested | Sensible? |
|---|---|---|
| Torch app | Contacts and SMS | No: a torch needs only the flash |
| Maps | Location while using the app | Yes |
| Photo editor | Photos and camera | Yes, but not contacts or call logs |
| Instant loan app | Contacts, photos and call logs | No: 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.
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:
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 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:
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
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.
| Fraud | How it works | Your defence |
|---|---|---|
| UPI “receive money” trick | A “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 care | Fake 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 swap | Using 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.”
Rahul’s correct reply: “Please send the money to my UPI ID. I don’t need to scan anything to receive it.”
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:
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
How protection works
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 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:
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 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.
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:
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
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.
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.
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.
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',)]
Despite every precaution, incidents happen, and a calm plan beats panic. A widely used approach has six stages:
Key points
Law, careers and the road ahead
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 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:
| Section | Covers |
|---|---|
| 43 | Unauthorised access, copying data, introducing viruses or damaging a computer: the wrongdoer must pay compensation |
| 66 | Doing any act in section 43 dishonestly or fraudulently: a criminal offence |
| 66C | Identity theft: fraudulently using someone’s password, electronic signature or other unique identification feature |
| 66D | Cheating by personation using a computer or phone |
| 66E | Capturing or sharing images of a person’s private areas without consent |
| 66F | Cyber terrorism |
| 67, 67A, 67B | Publishing obscene or sexually explicit material, and material sexually exploiting children, electronically |
| 70B | Makes 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.
The Digital Personal Data Protection (DPDP) Act, 2023 is India’s first comprehensive law on personal data:
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?
| Situation | Likely legal route |
|---|---|
| Someone logs in to your email with your stolen password | IT Act sections 43 and 66, and 66C for using your password |
| A fake profile with your photos asks your friends for money | IT Act section 66D, and cheating under the BNS |
| An online shop leaks customer data through careless security | DPDP Act: complaint to the Data Protection Board |
| A company is hit by ransomware | Report to CERT-In within 6 hours, and to the police |
Whenever money has been lost, start with 1930 or cybercrime.gov.in.
Cyber security needs people with very different strengths:
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
Final 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