Confidentiality
Only authorized people can see the information. Tools: passwords, encryption, access control.
Introduction
Cyber security is the practice of protecting people, devices, networks, and data from digital attacks. This guide covers what it is, its history, who hackers are, how attacks work, how defense works, and how to stay safe.
Start learningStay safe online
01 Definition
Cyber security (also written cybersecurity) is the set of technologies, processes, and habits used to protect computers, mobile phones, servers, networks, applications, and data from theft, damage, and unauthorized access. It covers everything from a strong password on your phone to a bank’s round the clock security center.
Security has one goal: keep information confidential, accurate, and available to the right people at the right time. These three ideas are called the CIA triad.
Almost everything we do now depends on digital systems. We pay with UPI and cards, store photos in the cloud, learn and work online, and even control home appliances from a phone. Each of these systems holds valuable information, and that makes it a target. Attackers may want money, secrets, control, revenge, or simply attention. A single stolen password can lead to an emptied bank account, a hospital can be forced to stop work by ransomware, and a company can lose years of trust after a data leak. Cyber security exists to make such attacks harder, to notice them quickly, and to limit the damage when they happen.
Good security is never one tool. It is a set of layers that work together: strong identities and passwords, software that is kept up to date, encryption that protects data in storage and in travel, firewalls and monitoring that watch the network, backups that allow recovery, and trained people who can spot a scam. Because the weakest layer is often a human being who clicks a convincing link, awareness matters as much as technology. Attackers and defenders are also in a constant race. As defenders close one weakness, attackers search for another, and new technology such as cloud computing, smart devices, and artificial intelligence keeps changing the battlefield. Learning how attacks work, and how to defend against them, is now a basic digital skill for students, professionals, and businesses alike.
Only authorized people can see the information. Tools: passwords, encryption, access control.
Data is accurate and has not been changed without permission. Tools: hashing, digital signatures, version control.
Systems and data are there when needed. Tools: backups, redundancy, protection against DDoS attacks.
| Area | What it protects | Examples |
|---|---|---|
| Network security | Networks and the traffic moving through them | Firewalls, VPNs, intrusion detection |
| Application security | Software and websites | Secure coding, code review, web testing |
| Information security | Data in storage and in transit | Encryption, data loss prevention |
| Endpoint security | Laptops, phones, and servers | Antivirus, endpoint detection and response |
| Cloud security | Cloud accounts and services | Access policies, configuration checks |
| Identity and access | Who can enter and what they can do | Passwords, multi factor login, single sign on |
| Operational security | Daily handling of data and permissions | Policies, least privilege, monitoring |
| IoT and mobile security | Smart devices and phones | Firmware updates, app permissions |
| Disaster recovery | Getting back to work after an incident | Backups, recovery plans, drills |
02 History
Cyber security grew with computers. Every new technology brought new ways to misuse it, and new ways to defend it.
Shared computers at universities introduce passwords. It is widely reported that a student at MIT in 1962 printed out the password file, one of the earliest known cases of password theft.
Creeper, written by Bob Thomas, is an experimental program that moves between computers on ARPANET and is often called the first computer worm. A second program, Reaper, was made to find and remove it, an early form of antivirus.
Diffie and Hellman publish public key ideas in 1976, and the RSA method follows in 1977. This makes secure communication between strangers possible.
The film WarGames shows a teenager breaking into a military computer. The same year, a group of teenagers known as the 414s are caught after breaking into several US systems. Governments begin to take computer crime seriously.
Astronomer Clifford Stoll traces a hacker who was stealing information for a foreign intelligence service, a story he later turned into a famous book. The United States passes the Computer Fraud and Abuse Act.
Robert Tappan Morris releases one of the first major internet worms, which slows a large part of the early internet. It leads to the creation of the first Computer Emergency Response Team, CERT.
Websites, email, and online shopping spread. SSL, the ancestor of today’s TLS and the lock icon in browsers, is introduced in 1995. Antivirus and firewall products become common. Famous hacker Kevin Mitnick is arrested in 1995.
Melissa (1999) and ILOVEYOU (2000) spread through email to millions of computers. The SQL Slammer worm (2003) infects vulnerable servers worldwide within minutes.
India passes the Information Technology Act in 2000, and the national agency CERT In is set up in 2004 to handle cyber incidents.
Estonia faces large scale attacks on government, bank, and media websites, one of the first widely discussed examples of cyber conflict between nations.
Stuxnet, a highly advanced worm, is discovered. It targeted industrial equipment and showed that software can cause physical damage.
The Target retail breach (2013), the Snowden disclosures about mass surveillance (2013), the Heartbleed bug in a widely used encryption library (2014), and the Sony Pictures hack (2014) make security a boardroom topic.
The Mirai botnet uses hacked cameras and routers to launch a huge DDoS attack in 2016. In 2017 the WannaCry ransomware hits hospitals and companies in over 100 countries, and was slowed when researcher Marcus Hutchins found a kill switch. NotPetya causes major damage the same year.
The European GDPR comes into force, setting strict rules for protecting personal data and requiring breach reporting. Many countries follow with their own laws.
The SolarWinds attack (found in December 2020) shows how a trusted software update can spread an intrusion. In 2021 ransomware halts the Colonial Pipeline in the United States, and the Log4Shell flaw affects countless systems.
Attackers use AI for convincing phishing and voice and video fakes, and defenders use AI to detect threats. India passes the Digital Personal Data Protection Act in 2023. Zero trust, passkeys, and preparation for quantum computers become key themes.
03 Hackers
A hacker is someone who uses technical skill to explore, change, or break into computer systems. The word is not always bad. Many hackers work to protect systems. What matters is permission and intention.
Entering or testing a system you do not own, without written permission, is a crime in almost every country, even if you mean no harm. In India, the Information Technology Act, 2000 (for example sections 43 and 66) covers unauthorized access. Practice only on your own devices or in legal training labs.
| Type | Who they are | Motive | Legal? |
|---|---|---|---|
| White hat | Ethical hackers and security testers hired to find weaknesses | Protect systems, earn a living | Yes, with permission |
| Black hat | Criminals who attack for gain or harm | Money, theft, damage | No |
| Grey hat | Find flaws without permission but often report them | Curiosity, recognition | Often not, even with good intent |
| Script kiddie | Beginners who run tools made by others | Fun, bragging | No |
| Hacktivist | Attackers with a political or social cause | Protest, publicity | No |
| State backed group | Skilled teams linked to governments, often called APTs | Spying, disruption, strategy | Not for ordinary law, but a major global issue |
| Cybercriminal gang | Organized groups running ransomware and fraud | Large profits | No |
| Insider | Employees or partners who misuse their access | Revenge, money, or by mistake | Depends |
Plays the attacker, with permission, to test how well the organization can resist a real attack.
Defends. Monitors systems, detects intrusions, and responds to incidents.
Red and blue teams work together and share findings so defenses improve faster.
Defenders use this model to stop attacks at an early step. The earlier an attack is broken, the smaller the damage.
A well known hacker of the 1980s and 1990s who mostly used social engineering, meaning tricking people. After prison he became a respected security consultant and author. He passed away in 2023.
Created the 1988 Morris Worm as an experiment that spread out of control. He was the first person convicted under the US Computer Fraud and Abuse Act and later became a professor.
A British man who accessed US military and NASA computers in the early 2000s. His case led to a long fight over extradition, which was eventually blocked.
A security researcher who helped stop the spread of WannaCry in 2017 by registering a web address that acted as a kill switch.
A loose collective of activists, known for protest style attacks and the Guy Fawkes mask. It has no formal leaders or membership.
A hacking group that several governments and security companies link to North Korea, associated with major heists and the Sony Pictures attack.
Many companies pay researchers to find and report flaws responsibly. Programs on platforms such as HackerOne and Bugcrowd, and company run bug bounty programs, let skilled people earn money and recognition legally. Typical certifications include CEH, CompTIA Security Plus, eJPT, and OSCP.
04 Attacks
Harmful software. Viruses attach to files, worms spread by themselves, and trojans pretend to be useful programs.
Locks or encrypts your files and demands payment to unlock them. Often spread through phishing or weak remote access.
Secretly watch what you do or record what you type to steal passwords and information.
Fake emails, messages, or sites pretending to be a bank or company to steal logins. Variants include spear phishing, SMS phishing, and voice phishing.
Manipulating people, not machines. Attackers pose as staff, bank officers, or support to get secrets.
Flooding a service with traffic from many devices so real users cannot get in.
Secretly sitting between you and a website to read or change the traffic, often on unsafe public Wi Fi.
Flaws in websites that let attackers run unwanted database commands or scripts. They come from poor input checking.
Guessing passwords, or trying leaked passwords from one site on many other sites.
Attacks that use a flaw the vendor does not know about yet, so no fix exists.
Compromising a trusted supplier or software update to reach many customers at once.
Fake voices, videos, and messages that look real. Always confirm unusual requests through a second channel.
| Attack | How it succeeds | Best defense |
|---|---|---|
| Phishing | A person is tricked into clicking or sharing a login | Training, multi factor login, checking the sender and link |
| Ransomware | Malware encrypts files after a user opens it or after a weak entry point | Offline backups, updates, email filtering |
| DDoS | Traffic overwhelms the service | Traffic filtering and a content delivery network |
| SQL injection | The site trusts user input inside a database command | Parameterized queries and input validation |
| Password attacks | Weak or reused passwords | Long unique passwords, a password manager, passkeys |
| Man in the middle | Unencrypted or fake networks | HTTPS, trusted networks, VPN when needed |
The danger comes from building a database command by joining raw user input. The safe way is to send the input as a separate value so it is never treated as a command.
BAD: query = "SELECT * FROM users WHERE name = '" + user_input + "'"
GOOD: query = "SELECT * FROM users WHERE name = ?"
run(query, [user_input]) # input is treated only as data
05 Defense
Use many layers, so if one fails another still protects you.
Give each person and program only the access it needs, nothing more.
Never trust automatically, even inside the network. Verify every user and device.
Build security into software and systems from the start, not as an afterthought.
Install updates to close known flaws before attackers use them.
Plan as if an attacker will get in someday, and be ready to detect and recover.
| Defense | What it does |
|---|---|
| Firewall | Filters network traffic by rules and blocks unwanted connections |
| IDS and IPS | Detect, and in some cases block, suspicious activity on a network |
| Antivirus and EDR | Find and stop malware and strange behavior on devices |
| Encryption | Scrambles data so only someone with the key can read it |
| Multi factor login | Needs a second proof, like a code or device, besides the password |
| VPN | Creates an encrypted tunnel for your traffic |
| Backups | Allow recovery after loss or ransomware. Follow the 3 2 1 rule: 3 copies, 2 types of storage, 1 offsite |
| SIEM and SOC | Collect logs and watch for threats, run by a security operations center |
| Vulnerability scanning | Finds weaknesses before attackers do |
The same key locks and unlocks data. Fast. Example: AES, used for storing and moving large amounts of data.
A public key locks, and only the private key unlocks. Used for secure connections and digital signatures. Example: RSA.
Turns data into a fixed code that cannot be reversed. Used to check integrity and to store passwords safely. Example: SHA 256.
06 Tools
Use these tools only on devices and networks you own or have written permission to test, or in legal practice labs.
| Category | Popular tools | Used for |
|---|---|---|
| Operating systems | Kali Linux, Parrot OS | Security testing toolkits in one system |
| Network scanning | Nmap | Finding devices and open ports |
| Traffic analysis | Wireshark | Inspecting network packets |
| Web testing | Burp Suite, OWASP ZAP | Finding weaknesses in websites |
| Vulnerability scanners | Nessus, OpenVAS | Checking systems for known flaws |
| Exploitation frameworks | Metasploit | Authorized penetration testing |
| Password auditing | John the Ripper, Hashcat | Testing how strong stored passwords are |
| Intrusion detection | Snort, Suricata, Zeek | Detecting suspicious network activity |
| Monitoring and SIEM | Splunk, Wazuh, Elastic Security | Collecting logs and raising alerts |
| Endpoint protection | Microsoft Defender, CrowdStrike, other EDR tools | Protecting laptops and servers |
| Forensics | Autopsy, Volatility | Investigating what happened after an incident |
| Reverse engineering | Ghidra, IDA | Analyzing how a program works |
| Password managers | Bitwarden, KeePass, and others | Storing unique passwords safely |
Guided, beginner friendly lessons and labs.
Challenge machines for growing skills.
Command line games that teach basics step by step.
Free web security lessons and labs.
Capture the flag contests for students.
Virtual machines on your own computer that you can safely break and fix.
07 Laws and standards
| Name | What it is |
|---|---|
| IT Act, 2000 (India) | Main Indian law on cyber crime and electronic records |
| DPDP Act, 2023 (India) | Law about how personal data is collected, used, and protected |
| CERT In (India) | National agency that handles cyber incidents and advisories |
| GDPR (European Union) | Strict data protection and privacy law |
| ISO 27001 | International standard for managing information security |
| NIST Cybersecurity Framework | A widely used guide to identify, protect, detect, respond, and recover |
| PCI DSS | Security rules for handling payment card data |
In India, report financial cyber fraud quickly on the national helpline 1930 and on the cyber crime portal cybercrime.gov.in. Acting fast improves the chance of stopping the money. Check the official sites for the latest details.
08 Stay safe
Use long passwords or passphrases, a different one for every account, and a password manager.
Use an authenticator app or passkey, especially for email, banking, and social media.
Turn on automatic updates for your phone, computer, and apps.
Check the sender and the link. Be careful with urgent messages and prizes.
A real bank never asks for them. Remember, you never enter a PIN to receive money.
Avoid banking on open Wi Fi. Use mobile data or a trusted VPN.
Keep a copy offline or in a separate cloud account.
Use official stores, read permissions, and avoid cracked software.
Limit personal details on social media, as scammers use them to look believable.
Be suspicious if a message creates urgency, asks for secret codes, offers too good to be true rewards, or asks you to install a remote control app. Stop and verify using the official number or website.
09 Careers and future
Monitors alerts and investigates threats. A common entry role.
Ethically tests systems to find weaknesses before criminals do.
Designs and builds protections for systems and networks.
Leads the response when a breach happens.
Studies harmful software to understand and stop it.
Handles governance, risk, laws, and audits.
Protects cloud accounts and services.
Chief Information Security Officer, the leader of a company’s security program.
Attackers use AI for better scams and faster attacks. Defenders use it to detect threats and respond quickly.
Future quantum computers could break some current encryption. New quantum resistant standards are being adopted.
More organizations verify every request instead of trusting the network.
Passkeys and biometrics reduce phishing and password theft.
More smart devices mean more entry points, so secure design matters.
The world needs many more security professionals, which makes it a strong career path.
10 FAQ
No. Cyber security is the whole field of protecting systems. Ethical hacking is one part, where permitted testers try to find weaknesses.
No. The goal is to make attacks hard and costly, notice them quickly, and recover fast.
Phishing and weak or reused passwords are among the most common causes. Two step login greatly reduces the risk.
No. It helps, but you also need updates, strong passwords, multi factor login, backups, and careful habits.
Not for every role, but basic scripting in Python or similar helps a lot. Networking and Linux knowledge matter even more at the start.
Disconnect the device from the internet, change your passwords from a safe device, turn on two step login, check your bank and email activity, and report fraud quickly to the right authorities.
A trusted VPN helps protect traffic on unsafe networks, but it does not protect you from phishing or malware. Free VPNs of unknown origin can themselves be risky.