A grey hat hacker is someone who accesses a computer system without permission, but without malicious intent, usually to find a vulnerability and report it. They sit between white hat hackers, who test only with permission, and black hat hackers, who break in to steal or cause harm. Good intent does not make the access legal in most countries.
Key takeaways
- Grey hats act without permission, which is what separates them from white hats.
- They usually report what they find rather than stealing or damaging anything.
- Without permission, the work can still break the law, even when the intent was to help.
Imagine finding an unlocked door in a company's system, walking in to check what is wrong, and then leaving a note for the owner. You meant well — but you still entered without permission. That is the grey hat dilemma in one picture, and it is why this label causes so much argument.
What is a grey hat hacker?
A grey hat hacker is someone who accesses a computer system without permission, but without malicious intent, usually to find a vulnerability and report it. They occupy the middle ground between white hat and black hat hackers.
The term comes from old Western films, where heroes wore light hats and villains wore dark ones. White hats test with permission to improve security. Black hats break in for theft, extortion or damage. Grey hats have the skills and often the intent of a white hat, but they act without permission — which is what makes them grey, not white.
Definitions vary, and that matters. One common definition says a grey hat will neither illegally exploit a flaw nor tell others how to do so, but will report it to the vendor.
Another, from the Red Hat security guide, says a grey hat has the skills and intent of a white hat but may break into any system without permission. The Electronic Frontier Foundation described grey hats in 2008 as ethical researchers who arguably violate the law while trying to improve security, as summarized in Akamai's grey hat glossary.
Grey hat vs white hat vs black hat: what is the difference?
The difference comes down to two questions: did you have permission, and what did you intend to do? White hats have permission and good intent. Black hats have neither. Grey hats have good intent but no permission.
| White hat | Grey hat | Black hat | |
|---|---|---|---|
| Permission | Yes, in writing, before testing | No, or only after the fact | No |
| Intent | Improve security | Improve security, curiosity, recognition | Steal, extort, spy or damage |
| Disclosure | Through agreed channels | To the owner, sometimes publicly | Exploited or sold |
| Legal status | Legal inside the agreed scope | Often unlawful despite good intent | Criminal |
| Payment | Salary, contract fee or bug bounty | May ask for payment after the fact | Ransom, stolen data, fraud |
The table looks tidy, but real cases are messier. A grey hat who reports a flaw politely and a grey hat who publishes it publicly to force a fix are both grey hats, yet the second one creates far more risk for users.
Intent alone does not tell you the outcome. Our guide to spear phishing shows the other side: attackers who also research a target, but with clear malicious intent.
How do grey hat hackers work?
Grey hat hacking usually follows a short pattern: find a target, probe it without permission, confirm a flaw, then tell the owner — sometimes after asking for payment, and sometimes in public.
They may scan a website, test a login flow, or probe an API to see what data it returns. When they find a flaw, they often write to the company with a description and a suggested fix. Some ask for a fee for the report. Others publish the flaw after a deadline if the company does not respond, arguing that public pressure forces a faster fix.
That last step is the most contested. Publishing a flaw before it is fixed can help attackers exploit it, which hurts the very users the grey hat says they want to protect. Responsible disclosure — reporting privately and giving the owner time to fix it — is the white hat standard for exactly this reason.
Is grey hat hacking legal?
No, grey hat hacking is usually not legal, even when the intent is to help. Most computer crime laws turn on authorization, not motive, so accessing a system without permission can break the law whether or not you stole anything.
In the United States, the Computer Fraud and Abuse Act covers unauthorized access to protected computers, and good intent is not a defense on its own.
The UK Computer Misuse Act and similar laws in the EU work the same way: the question is whether you were authorized, not whether you meant well. The EFF's 2008 definition of grey hats as researchers who arguably violate the law while trying to improve security captures this tension exactly.
That does not mean every grey hat is prosecuted. Many companies fix the flaw and say nothing. But the risk is real and uneven: a researcher who touches a hospital system, a bank or a government service faces far more serious consequences than one who probes a small blog. You cannot know in advance which outcome you will get.
What are real examples of grey hat hacking?
Two documented cases show both sides of grey hat work: a quiet warning that helped, and a public demonstration that cost the researcher his bounty.
Apache.org, 2000: a warning, not an attack
In April 2000, hackers known as "{}" and "Hardbeat" gained unauthorized access to Apache.org. Instead of damaging the servers, they chose to alert the Apache team about the problems they had found. The case is still cited as a classic grey hat example: unauthorized access, no damage, and a report to the owner.
Facebook, 2013: proving it on the founder's page
In August 2013, researcher Khalil Shreateh found a Facebook vulnerability and reported it through the bug bounty program. When the team dismissed his report, he used the flaw to post a message on Mark Zuckerberg's own Facebook wall to prove it was real. Facebook fixed the flaw but refused to pay a bounty, saying the demonstration on a real account had violated its responsible disclosure terms.
The lesson is not that Shreateh was wrong about the flaw — he was right. The lesson is that how you prove a flaw matters as much as finding it. A white hat researcher would have stayed inside the program's rules and used a test account. You can learn the authorized version of this work in our small business cybersecurity checklist, which covers testing and reporting through proper channels.
Why do people become grey hat hackers?
People become grey hats for a mix of curiosity, frustration and recognition. Some enjoy the puzzle of finding a flaw. Some are frustrated that a company ignored a report, so they escalate. Others want a reputation in the security community, or hope for a payment after the fact.
A 2021 study of hacking in the workforce found that grey hat hackers typically go against authority, while black hats lean toward thrill-seeking and white hats show different traits again. That fits the pattern: grey hats often see themselves as outsiders holding companies to account, rather than as criminals or as employees.
Whatever the motive, the safer version of the same drive already exists. Bug bounty programs invite researchers to test real systems with permission, pay for valid reports, and protect researchers who follow the rules. That turns the same curiosity into legal, paid work.
Grey hat hacking vs bug bounty hunting: what is the difference?
Bug bounty hunting is the authorized version of grey hat hacking. The work looks similar — find a flaw, report it, get paid — but the permission changes everything.
| Grey hat hacking | Bug bounty hunting | |
|---|---|---|
| Permission | None before testing | Granted by the program rules |
| Scope | Whatever the hacker chooses | Defined by the program |
| Legal risk | High; access may be unlawful | Low when rules are followed |
| Payment | Uncertain; may be refused | Published bounty for valid reports |
| Disclosure | At the hacker's discretion | Coordinated with the owner |
If you enjoy finding flaws, start with a bug bounty platform and read the program rules before you test anything. Pick a program with a clear scope, a safe-harbor promise and a public bounty table. That is the difference between a hobby that could end in a legal letter and a career.
How do you become a white hat hacker instead?
You become a white hat hacker by learning the same skills and using them only with written permission. The skills are the same; the authorization is what changes the label — and the legal outcome.
- Learn in your own lab. Set up virtual machines and vulnerable practice apps on your own network. Never practice on a live system you do not own.
- Study the fundamentals. Networking, web security, the OWASP Top 10 and basic scripting cover most of what you need to start.
- Earn a certification. CompTIA Security+, CEH or OSCP are common starting points, depending on whether you want a general security job or a testing role.
- Join a bug bounty program. Follow the scope, report privately, and build a public record of valid findings.
- Work under written scope. Penetration testing jobs always start with a signed agreement that names what you may test, when, and how to report.
Check your own website the legal way first: our free security headers checker shows what an attacker sees in your headers, with no unauthorized access involved.
What should you do if you find a vulnerability?
If you find a vulnerability, stop, do not dig deeper, and report it through the company's security contact or bug bounty page. Do not access more data than you already have, and do not tell anyone else about it first.
Write a short report: what you found, the steps to reproduce it, what data it could expose, and what you think should change. Give the owner time to fix it before you discuss it publicly — 90 days is a common window, but follow the program's own timeline if one exists.
Keep copies of your messages, and do not demand payment as a condition of silence. That last point matters: a report with a threat attached stops looking like help.
If the company has no security contact, check its website for a security policy or a vulnerability disclosure page. If there is none, use a general contact address and keep the report factual and brief. You can also test your own site's public posture with our free SSL checker.
The bottom line
Grey hat hackers are defined by what they lack — permission — not by what they intend. That missing permission is why their work sits in a legal grey area, even when the report helps the owner fix a real flaw.
If you want to find vulnerabilities and be paid for it, do it the white hat way: learn in your own lab, join a bug bounty program, and test only inside written scope. You can start by checking what your own site exposes with the free security headers checker.
Frequently asked questions
What is a grey hat hacker in simple terms?
A grey hat hacker is someone who breaks into a system without permission but does not intend to cause harm. They usually look for security flaws and tell the owner, rather than stealing data or money.
Is grey hat hacking legal?
Usually not. In the United States, the Computer Fraud and Abuse Act covers unauthorized access, and good intent is not a defense on its own. Other countries have similar laws, so a grey hat can face legal action even when they only wanted to help.
What is the difference between a grey hat and a white hat hacker?
A white hat hacker has written permission before testing, works inside an agreed scope, and reports through agreed channels. A grey hat hacker tests first and asks later, or never asks at all, which is the key difference.
What is the difference between a grey hat and a black hat hacker?
A black hat hacker breaks in to steal, extort, spy or cause damage. A grey hat hacker breaks in without permission but does not exploit what they find for gain, and usually reports the flaw instead.
Can a grey hat hacker become a white hat hacker?
Yes, and many do. The usual path is to stop testing without permission and move into authorized work such as penetration testing, vulnerability research under a bug bounty program, or a security job with written scope.
What is an example of grey hat hacking?
In 2013, researcher Khalil Shreateh found a Facebook flaw, reported it, and when the bug bounty team dismissed it, he used the flaw to post on Mark Zuckerberg's own page to prove it. Facebook fixed the flaw but refused to pay him, saying the demonstration broke its rules.
Do grey hat hackers get paid?
Sometimes they ask for payment after reporting a flaw, but that is risky. Bug bounty programs pay for the same work legally, with clear rules and no need to break in first, so they are the safer route to payment.
Is grey hat hacking the same as ethical hacking?
No. Ethical hacking means authorized testing with permission and a defined scope. Grey hat hacking lacks that permission, so even well-meaning work falls outside ethical hacking and outside the law in many places.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the Wikipedia grey hat entry, Akamai's glossary and HackenProof's definition of grey hat hacking.
How we write and fact-check →