Short Answer Hacking is getting into a computer, account or network without permission, usually by finding and using a weak spot. The weak spot can be a guessed password, old software that no one updated or a staff member who falls for a trick. For example, a criminal who logs in to a company’s email with a stolen password is hacking, even if they damage no files.
What is Hacking?
In cybersecurity, hacking means using a computer system in a way its owner did not allow. The person who does it is a hacker. NIST, the US standards agency, has a security glossary. It describes a hacker as an unauthorized user who tries to get into an information system.
Think of an office building. A visitor with a pass walks in through the front door. A hacker, on the other hand, finds a window someone left open, or copies a staff member’s pass. The building and the files are the same. Instead, the difference is permission.
Hacking can target one laptop, one phone, one email account or a whole company network. Some hackers want money. Others want data, attention or a way to spy. So the word covers many different crimes. However, all of them start with access the owner did not allow.
The word also has an older, friendly meaning. Early programmers called a clever fix to a hard problem a “hack.” Today, most people use hacking to mean breaking in. That is also the meaning on this page.
Key Words to Know
- Unauthorized access: using a system, account or file that you have no permission to use.
- Vulnerability: a weak spot in software, settings or a process that an attacker can use.
- Exploit: a method that takes advantage of a vulnerability to do something the owner did not allow.
- Patch: an update from the software maker that fixes a weak spot.
- Data breach: an event where private data leaves the company without permission.
How Does Hacking Work?
Most hacking follows the same broad path, from finding a way in to taking something of value. So knowing it helps defenders stop an attack early.
- Look for a weak spot: the attacker studies the target. They look for open doors, such as a login page with a simple password or a server that missed an update.
- Get in: next, they use that weak spot to log in or run their own code on a company computer.
- Stay hidden and move around: once inside, they try to look like a normal user. Then they move from one computer to the next, looking for administrator accounts and important data.
- Take or lock data: finally, they copy data, lock files for a ransom, send fake payment requests or use the company’s computers for other crimes.

Common Weak Spots
Most break-ins use simple gaps that the company could have closed:
- Weak or reused passwords: a password such as “Company@123” or one reused from a shopping site is easy to guess or find.
- Unpatched software: software makers publish fixes for known weak spots. If a company skips the update, the weak spot stays open.
- Tricked staff: a fake email or call can persuade a person to share a password or an OTP (one-time password).
- Wrong settings: for example, a cloud storage folder that anyone on the internet can open.
A regular vulnerability assessment, a planned check of systems for known weak spots, helps a company find these gaps first.
Types of Hackers
People often group hackers by “hat color.” The idea comes from old Western films, where the hero wore a white hat and the villain wore a black one. However, the colors describe intent and permission, not skill.
- Black hat hackers: criminals who break in without permission to steal, spy, cause damage or demand money.
- White hat hackers: security experts who test systems with the owner’s written permission. They report weak spots so the owner can fix them.
- Gray hat hackers: people who break in without permission but without clear criminal intent. For example, they may find a flaw and then tell the company. Even so, the access itself can break the law.
Not every attacker comes from outside. An insider threat is a staff member, contractor or partner who misuses the access they already have. Some attacks also come from organized criminal gangs, and some come from groups that work for a government. Security teams use the term threat actor for any person or group behind an attack.
Types of Hacking Attacks
There are many hacking techniques in cybersecurity, but a few show up again and again. Here is each one in one line:
- Phishing: fake emails, messages or websites that trick people into sharing passwords or clicking harmful links. Read more in our guide to phishing.
- Malware and ransomware: malware is harmful software that spies, steals or damages. Ransomware is malware that locks files for money.
- Password attacks: guessing passwords, or trying stolen ones on many accounts. A brute force attack tries a huge number of guesses until one works.
- SQL injection: typing harmful database commands into a website form so the website reveals or changes data. See our page on SQL injection.
- DDoS attack: short for distributed denial of service. Attackers flood a website or service with fake traffic from many computers until real users cannot reach it.
- Man-in-the-middle: secretly sitting between two parties, for example on an unsafe public Wi-Fi network, to read or change what they send.
A single phishing email can start a chain: a stolen password, then malware, then a data breach.
Hacking vs Ethical Hacking and Cracking
People often mix up these three words. The simplest test is permission and purpose.
Ethical hacking uses the same thinking as an attacker, but with the owner’s written approval and a clear scope. The tester then reports every weak spot so the company can fix it. Companies usually buy this work as penetration testing, a planned and approved attack on their own systems.
Cracking usually means breaking a password or the copy protection on software. Some people also call a criminal hacker a “cracker”. They keep “hacker” for people who enjoy building and fixing things with computers. In daily use, though, most people treat criminal hacking and cracking as the same thing.
| Question | Criminal Hacking | Ethical Hacking | Cracking |
|---|---|---|---|
| Permission? | No | Yes, in writing | Usually no |
| Main goal | Steal, spy, lock or damage | Find and fix weak spots | Break passwords or software locks |
| Result for the owner | Loss, downtime, a data breach | A report and a safer system | Stolen access or pirated software |
| Legal in India? | No | Yes, within the agreed scope | No, without the owner’s permission |

All three fit inside cybersecurity, the bigger picture. It covers all the people, rules and tools a company uses to stop, find and recover from attacks, including attacks by hackers.
Is Hacking Illegal in India?
Yes. Accessing someone else’s computer, system or network without permission breaks India’s Information Technology Act, 2000. Two sections matter most:
- Section 43: covers anyone who accesses a computer, computer system or network without the owner’s permission. The person must pay compensation for the damage.
- Section 66: makes the same acts a crime when someone does them dishonestly or fraudulently. The punishment can be up to three years in prison, a fine, or both.
In short, a hacker must pay for the damage, and one who acts dishonestly or fraudulently also commits a crime. Other sections of the same Act cover related crimes, such as identity theft. Also, ethical hacking stays legal only because the owner agreed to it in advance.
Where to Report an Attack
Citizens can report cyber crime on the National Cyber Crime Reporting Portal, cybercrime.gov.in, which runs under the Ministry of Home Affairs. For money lost to cyber fraud, call the helpline 1930 as fast as possible.
Companies have an extra duty. CERT-In issued directions on 28 April 2022. Under them, companies, data centers, service providers and others must report certain cyber incidents within 6 hours of noticing them or being told about them. Unauthorized access to IT systems or data is on that list. CERT-In (the Indian Computer Emergency Response Team) takes reports by email at incident@cert-in.org.in.
Hacking Examples
Small, ordinary gaps can turn into serious attacks. The two examples below are made up, but they follow very common patterns.
A Hospital in Pune
A hospital in Pune lets its IT vendor log in from outside the building, over the internet, to fix computers. The account uses a simple password and no second sign-in step. Eventually, an attacker guesses the password and logs in at night. Over a week, they quietly reach the patient records server. Then they lock the files and ask for a ransom. As a result, doctors fall back to paper notes for days. A second sign-in step on that one account would likely have stopped the break-in.
A Shop Website in Jaipur
A small online shop in Jaipur runs an old version of its website software. The maker had released a fix months earlier, but no one installed it. An attacker uses the known flaw to read the customer database. Next, names, phone numbers and addresses leak online. Soon, customers start getting fake calls that mention their real orders. So one missed update leads to a data breach and to fraud against the shop’s own buyers.
Talk to an ExpertWould you spot an attacker inside your network? Talk to our team about threat detection.How to Protect Your Business From Hacking
No company can block every attack. However, a few basic habits close most doors attackers use. CISA, the US cybersecurity agency, lists four core steps for everyone: avoid and report phishing, use strong passwords, use multifactor authentication and a password manager, and update software. Businesses can build on those steps:
- Patch quickly: install security updates for computers, servers, phones and website software. Start with systems that face the internet.
- Turn on MFA: multi-factor authentication asks for a second proof, such as a code on your phone, so a stolen password alone is not enough.
- Limit access: give each person only the access their job needs (security teams call this least privilege). Keep administrator accounts, the ones that can change any setting, few and separate.
- Keep backups: keep copies of key data that an attacker cannot change or delete, and test that you can restore them.
- Monitor and alert: collect logs, the records systems keep of logins and actions, and watch them for odd behavior, such as a login at 3 a.m. from another country.
- Train staff: teach people to spot fake emails and calls, and to check any payment request on a known phone number.
Tools on Microsoft and AWS
Cloud platforms include services that help with the “monitor and alert” step. For example, Microsoft Defender XDR brings together alerts from devices, user accounts, email and apps. It can also act to stop an attack in progress. On AWS, Amazon GuardDuty watches account activity and records of network traffic, including which websites your systems look up. It flags signs of trouble, such as stolen or leaked AWS access keys, the secret codes that programs use to sign in.
Many companies also use a SIEM (security information and event management) system, which gathers logs from many sources in one place. Even so, these tools help only when someone reads the alerts and acts quickly.
Frequently Asked Questions About Hacking
Is hacking a cyber crime?
Is hacking good or bad?
What is the difference between hacking and phishing?
What is the difference between hacking and exploiting?
What is the difference between ethical hacking and cyber security?
Can any computer system be hacked?
Is an ethical hacker the same as a penetration tester?
References
- Sections 43 and 66 on unauthorized access: India Code, The Information Technology Act, 2000 (updated text)
- 6-hour reporting rule for companies: CERT-In, Directions under section 70B(6) of the IT Act, 2000 (28 April 2022)
- Four core steps for everyone: CISA, Secure Our World
Get the Latest Terms & Insights.
New encyclopedia terms, threat intelligence, and architecture decisions, by email.
