DIGITAL LITERACY · FOUNDATION SERIES

Cyber Security: Malware, Phishing, Encryption and Staying Safe Online

A simple guide to cyber security: the branches, the kinds of malware, common attacks, how encryption works, symmetric vs asymmetric keys, and safety habits for your phone.

Punjab PolicePSSSB15 MIN READਪੰਜਾਬੀ ਵਿੱਚ ਪੜ੍ਹੋ
An old wooden cipher machine with a keyboard, lamp board and rotor wheels on top
An Enigma cipher machine used by the Swiss Army. You typed a normal message and its turning wheels gave out scrambled letters. Today the same idea, encryption, runs inside every phone. Image: Rama, Wikimedia Commons · CC BY-SA 2.0 fr

Cyber security means protecting computers, phones, networks and data from attack, damage and theft. Papers ask three things again and again: the kinds of harmful software (malware), encryption (turning data into secret code), and safety habits for your phone and the internet. This page explains all three in simple words. It teaches you to recognise threats and protect yourself.

49
Past questions on this page
Punjab Police SI & Constable
2
Types of encryption
Symmetric and asymmetric
64
Bits in one DES block
Data Encryption Standard
1930
Cyber crime helpline, India
Report online fraud quickly

What cyber security protects

The branches of cyber security and the risks to information.

BranchWhat it protects
Information securityThe integrity and privacy of data, both in storage and in transit (moving)
Network securityThe computer network itself, from intruders and harmful traffic
Application securitySoftware and apps, so they have no weak spots
Operational securityThe processes and decisions for handling and protecting data: who gets which permission, where data is kept
Cloud / mobile securityData kept with a cloud company; phones and tablets
End-user educationTeaching people safe habits, because one careless click can let an attack in
REMEMBER

Information = the data itself. Operational = the rules and decisions about the data.

Risk
Interception

Someone secretly reads data while it travels.

Risk
Unauthorised access

A person without permission gets into a system or file.

Risk
Data destruction

Data is deleted or damaged and cannot be used.

Not a risk
Authorised disclosure

Giving data to someone who has the right to it. This is allowed.

Watch the words authorised and unauthorised. One letter group changes the answer.

KEY TERM
Vulnerability

A vulnerability is a weak spot that an attacker could use. Two weak spots in networks that are commonly named: inadequate border protection (a weak "boundary" around the network, such as a missing or badly set firewall), and remote access servers with weak access controls (easy passwords, no extra checks). Security teams fix these first.

Weak spot→Found and fixed→Safer network
QUICK CHECK
Which of the following categories of cyber security denotes the protection of the integrity and privacy of data, both in storage and in transit?
Tap an option to answer
QUICK CHECK
With regard to information risks in cyber security practice, which of the following is NOT included?
Tap an option to answer

Malware: the families of harmful software

Virus, worm, Trojan, spyware, adware, ransomware: know each by what it does.

KEY TERM
Malware

Malware = malicious software. It is the umbrella word for any program made to damage devices, steal data or cause trouble for the user. Virus, worm, Trojan and spyware are all kinds of malware.

Malware (umbrella)→Virus, worm, Trojan …
TypeHow to recognise it
VirusAttaches itself to a file. It spreads when that file is opened or run.
WormCopies itself across a network on its own. It needs no host file.
Trojan horseHides inside something that looks useful, such as a game or spreadsheet, and then harms data.
SpywareSecretly gathers information about a person or organisation without their knowledge.
AdwarePushes unwanted advertisements on your screen.
RansomwareLocks or encrypts your files and demands payment (ransom) to unlock them.
Spam is unwanted bulk messages, not a program. A disk cleaner is a useful tool, not malware.
VIRUS VS WORM VS TROJAN
Virus
Worm
Trojan
Needs a host file?
Yes
No
Hides in a program
Spreads by itself?
When file runs
Yes, over network
No, you install it
Key idea
Infects files
Self-copying
Disguise
The name Trojan horse comes from the old Greek story of soldiers hidden inside a gift horse.
Virus type
Stealth virus

Hides its presence from the system and from antivirus checks.

Virus type
Polymorphic virus

Changes its own code each time it spreads, so it is harder to spot.

Virus type
Multipartite virus

Attacks in more than one way, for example the boot sector and files.

Virus type
Boot sector virus

Infects the part of a disk that starts the computer.

Stealth, polymorphic and multipartite are all recognised types of virus.

QUICK CHECK
______ is software that is developed with the intention of damaging hardware devices, stealing data or creating any kind of trouble for the user.
Tap an option to answer
QUICK CHECK
What is a code generally hidden in games or spreadsheets and causes harm to the data?
Tap an option to answer
QUICK CHECK
______ is a type of malware that spies on a person or an organisation by gathering information about them without the knowledge of the user.
Tap an option to answer

Common cyber attacks and how they are stopped

Phishing, social engineering, ransomware and denial-of-service.

Attack
Phishing

Fake emails that look like they come from a bank or a trusted company. They try to get your password or OTP.

Attack
Social engineering

The wide family of tricking people into giving away secrets. Phishing is one kind.

Attack
Ransomware

Locks your files and demands money.

Attack
DoS / DDoS

Denial of Service. A server is flooded with so much traffic that real users cannot reach it. Distributed = from many computers at once.

  • Spot a phishing message: it creates panic ("your account will close today"), has a strange sender address or link, and asks for a password, OTP or card number. A real bank never asks for your OTP.
  • The same trick by phone call is often called vishing, and by SMS smishing.
HOW A DOS ATTACK IS RESISTED
  • Router filters block suspicious traffic at the edge of the network.
  • Quota systems in the operating system limit how much disk or memory one user can fill.
  • A firewall checks traffic coming in and going out.
NOT AN ATTACK
  • Firmware is the permanent program inside a chip (like BIOS). It can be a target, but it is not an attack.
  • Spam is junk mail, not malware.
  • A disk cleaner removes junk files; it is a helpful tool.
COMMON TRAPS
  • Ransomware, phishing and denial-of-service are common attacks. Firmware is the odd one out.
  • If a question says fraudulent emails, choose phishing, not the wider "social engineering".
QUICK CHECK
Which of the following refers to the practice of sending fraudulent emails that resemble emails sent by reputable sources?
Tap an option to answer
QUICK CHECK
How you can protect your system for DOS/DDOS attacks? I. Implement router filters. This will lessen your exposure to certain DOS attacks. II. Enable quota systems on your operating system if they are available.
Tap an option to answer

Encryption: turning data into secret code

Plaintext, ciphertext, keys, and why encryption matters.

HOW ENCRYPTION WORKS
  1. Plaintext
    The normal, readable message.
  2. key
    Encryption
    An algorithm (set of steps) and a key scramble it.
  3. Ciphertext
    The scrambled, unreadable data.
  4. key
    Decryption
    The right key turns it back into plaintext.
Encryption = plaintext → ciphertext. Decryption = ciphertext → plaintext. Ciphertext is the encrypted data.
KEY TERM
Encryption is a security method

Encryption is a security method. It encodes information so that only an authorised user (who has the key) can read it. If a thief steals encrypted data, he sees only ciphertext.

Key holder→can read→everyone else sees code
WHAT ENCRYPTION GIVES
  • Data privacy (confidentiality)
  • Data integrity: tampering shows up
  • Protection from unauthorised access
  • Overall data security
WHAT ENCRYPTION DOES NOT DO
  • It does not cause or allow a data breach; it works against one.
  • It does not let attackers modify data.
  • It does not make data easier to reach or upload faster.
  • It is not a backup.
Proving who you are (authentication) is a different job
Image
AUTHENTICATION VS ENCRYPTION
Authentication
Encryption
Question it answers
Who are you?
Can others read it?
Examples
Password, OTP, 2FA
AES, DES, RSA
Password protection, two-factor authentication (2FA) and OTP decide who gets in. They do not scramble the data, so they are not encryption methods.
QUICK CHECK
In cryptography, the encrypted data is referred to as ____________.
Tap an option to answer
QUICK CHECK
Which of the following is a common method of data encryption?
Tap an option to answer

Symmetric and asymmetric encryption

One key or two? The most asked idea on this page.

THE TWO TYPES OF ENCRYPTION
Symmetric
Asymmetric
Other name
Secret-key
Public-key
Number of keys
One shared key
Two: public + private
Examples
DES, 3DES, AES, Twofish
RSA, ECC, Diffie-Hellman, DSS
Speed
Faster
Slower
There are two types of data encryption. "Asynchronous", "systematic" and "synchronous" encryption are made-up options.
REMEMBER

Symmetric = Same key. Asymmetric = A pair of keys (public to lock, private to unlock).

ASYMMETRIC ENCRYPTION STEP BY STEP
  1. Receiver shares a public key
    Anyone may have it. It is not secret.
  2. Sender encrypts with it
    Plaintext + public key + encryption algorithm → ciphertext.
  3. private
    Receiver decrypts
    Only the matching private key and the decryption algorithm can open it.
The five ingredients of public-key encryption: plaintext, encryption algorithm, public and private keys, ciphertext, decryption algorithm.
NameFull formType and key fact
DESData Encryption StandardSymmetric. US standard from 1977. Works on 64-bit blocks; effective key 56 bits.
3DESTriple DESSymmetric. DES applied three times.
AESAdvanced Encryption StandardSymmetric. Adopted in 2001 to replace DES. 128-bit blocks; keys of 128, 192 or 256 bits.
Twofish(a name, not short form)Symmetric block cipher.
RSARivest–Shamir–AdlemanAsymmetric. Named after its three inventors (1977).
ECCElliptic Curve CryptographyAsymmetric.
DSSDigital Signature StandardAsymmetric (public-key signatures).
PKIPublic Key InfrastructureThe whole system of public/private keys and digital certificates. Asymmetric.
  • Encryption methods differ by: the type of key (symmetric or asymmetric), the key length (56-bit DES vs 128/256-bit AES) and the block size. The number of users does not change the method.
  • Symmetric rules: the same algorithm and the same key encrypt and decrypt; the key must be kept secret; without the key it should be impossible, or at least impractical, to read the message.
  • A matched pair of keys (one with the sender, one with the receiver) belongs to asymmetric encryption, not symmetric.
  • Why public keys make key management easier: public keys need no secrecy, so no trusted third party is needed for each exchange, and each user can keep a copy of the public file.
COMMON TRAPS
  • Public-key cryptography is asymmetric, never "symmetric".
  • AES is symmetric. It is the usual odd one out in a list of asymmetric methods. RSA is asymmetric, the odd one out in a symmetric list.
  • DNS (Domain Name System / Server) turns website names into IP addresses. It is not an encryption method at all.
  • The two asymmetric keys are public key and private key, not "personal key" or "admin key".
QUICK CHECK
Which of the following is/are the examples of asymmetric encryption methods? (i) Data Encryption Standard (DES) (ii) Advanced Encryption Standard (AES) (iii) Rivest – Shamir – Adleman (RSA) (iv) Public Key Infrastructure (PKI)
Tap an option to answer
QUICK CHECK
Which of the following is NOT correct regarding a symmetric encryption system?
Tap an option to answer
QUICK CHECK
DES is a low-level encryption block cipher algorithm that takes plaintext in blocks of _______ bits to convert the plaintext into ciphertext.
Tap an option to answer

Staying safe on your phone and online

Simple habits that block most attacks.

DO
  • Lock your phone with a PIN or password. Treat passwords as keys.
  • Use strong, different passwords for each account.
  • Install antivirus and keep apps updated.
  • Take a regular backup of your data.
  • Turn Wi-Fi and Bluetooth off when not in use.
  • Use a VPN (Virtual Private Network) on public networks.
DON'T
  • Don't connect to open or free Wi-Fi for banking or logins.
  • Don't click unknown links or attachments.
  • Don't download unknown files or apps from outside the official store.
  • Don't post personal information online (address, date of birth, travel plans).
  • Don't visit suspicious websites or apps.
  • Never share an OTP with anyone.
KEY TERM
VPN

Virtual Private Network. It builds an encrypted tunnel between your device and the network. Anyone watching a public Wi-Fi sees only scrambled data.

Your phone→Encrypted tunnel→Internet
NameMobile security tool?
Norton, Bitdefender, KasperskyYes: antivirus makers with phone apps
Lookout, zIPS, WISeIDYes: mobile protection tools
CompassNo: a direction-finding app
CanvaNo: a graphic-design tool
QUICK CHECK
State whether the following statements are true or false for cyber safety tips. (i) Use anti-virus software. (ii) Use insecure Wi-Fi networks in public places. (iii) Use strong passwords.
Tap an option to answer
QUICK CHECK
Which of the following is NOT an antivirus solution for smartphones?
Tap an option to answer
QUICK CHECK
Which of the following is NOT a mobile protection tool?
Tap an option to answer

Quick revision

Full forms, traps and one-line facts.

FLASHCARDS
Full forms: tap to check
DES
Data Encryption Standard
AES
Advanced Encryption Standard
RSA
Rivest–Shamir–Adleman
ECC
Elliptic Curve Cryptography
DSS
Digital Signature Standard
PKI
Public Key Infrastructure
DSCI
Data Security Council of India
DoS / DDoS
Denial of Service / Distributed Denial of Service
VPN
Virtual Private Network
OTP
One Time Password
2FA
Two-Factor Authentication
CAPTCHA
Completely Automated Public Turing test to tell Computers and Humans Apart
COMMON TRAPS
  • Encrypted data = ciphertext. Readable data = plaintext.
  • Symmetric = one key, asymmetric = two keys.
  • Malware is the umbrella word; virus, worm and Trojan sit under it.
  • A data breach is what encryption prevents, not something it provides.
  • Using open public Wi-Fi is a risk, never a safety tip.
Also asked onceTap to open
  • DSCI = Data Security Council of India, an industry body set up by NASSCOM to promote data protection and cyber security practices.
  • Active vs passive information gathering: network test tools like ping, arping and bing (here a small network tool, not the Bing search engine) send signals directly to a computer, so they count as active. Looking at public maps such as Google Earth touches nothing, so it is passive, not active.
  • AES is the encryption method that uses only one secret key for both encryption and decryption (RSA and PKI use two).
  • Why encryption matters: to protect sensitive information from unauthorised access. It does not speed up uploads or replace backups.
  • In India, CERT-In is the national agency that responds to cyber security incidents.
CHECK YOURSELF

Your friend gets an SMS: "Your bank account is blocked. Share the OTP to unlock it." Name this attack and write two things your friend should do.

Show answer

It is phishing (by SMS, also called smishing), a kind of social engineering. Never share the OTP or click the link; call the bank on its official number, and report fraud on 1930 if money was lost.

Frequently Asked Questions

What is cyber security in simple words?

Cyber security means protecting computers, phones, networks and data from attack, damage and theft. It includes network, application, information and operational security, and teaching users safe habits.

What is malware?

Malware means malicious software: any program made to damage a device, steal data or trouble the user. Viruses, worms, Trojans, spyware, adware and ransomware are all types of malware.

What is the difference between a virus and a worm?

A virus attaches to a file and spreads when that file is run. A worm needs no host file and copies itself across a network on its own.

What is a Trojan horse in computers?

A Trojan horse is malware hidden inside something that looks useful, such as a game or a spreadsheet. Once you install it, it harms your data.

What is phishing?

Phishing is sending fake emails that look like they come from a bank or another trusted source, to steal passwords, OTPs or card details. It is a type of social engineering.

What is the difference between plaintext and ciphertext?

Plaintext is the normal readable data. Ciphertext is the scrambled data you get after encryption. Decryption turns ciphertext back into plaintext.

What is the difference between symmetric and asymmetric encryption?

Symmetric encryption uses one shared secret key to encrypt and decrypt, as in DES and AES. Asymmetric (public-key) encryption uses two keys, a public key and a private key, as in RSA.

Is AES symmetric or asymmetric?

AES (Advanced Encryption Standard) is symmetric: the same key encrypts and decrypts. It was adopted in 2001 to replace DES. RSA is the classic asymmetric method.

Is it safe to use free public Wi-Fi?

Open public Wi-Fi is risky because others on it may see your traffic. Avoid banking or logins on it, or use a VPN, which encrypts your connection.

Where can I report online fraud in India?

Call the national cyber crime helpline 1930 or file a complaint at cybercrime.gov.in. Report as soon as possible.

More in Internet & Web

← All Internet & Web notes