Skip links

Table of Contents

What is a Grey Hat Hacker: What you need to know

TL;DR
  • A grey hat hacker accesses systems without explicit permission but without malicious intent. They occupy the legally ambiguous space between ethical white hat hackers and criminal black hat hackers.
  • Grey hats typically discover security vulnerabilities, notify the affected organisation, and sometimes request payment for the disclosure.
  • Unlike white hat hackers, grey hats do not obtain authorisation before accessing systems. Unlike black hat hackers, they do not exploit what they find for personal gain.
  • Grey hat hacking is illegal in most jurisdictions under laws like the CFAA, regardless of intent. Good intentions do not provide legal protection.
  • The legitimate equivalent is bug bounty hunting: authorised vulnerability research that pays for responsible disclosure without legal risk.

In 2013, security researcher Marcus Hutchins identified a kill switch in the WannaCry ransomware that stopped the attack from spreading further. He became globally recognised as someone who saved hundreds of thousands of systems. He also later pleaded guilty to unrelated charges of creating banking malware. His story illustrates the complexity of the grey hat space better than any definition can.

Grey hat hackers operate without the explicit permission that defines ethical hacking, but without the malicious intent that defines criminal hacking. They exist in a legally murky space, and understanding that space is important for anyone studying cybersecurity or considering vulnerability research.

What is a grey hat hacker?

A grey hat hacker is a cybersecurity practitioner who accesses systems or networks without explicit authorisation in order to identify security vulnerabilities, but without the intention of exploiting those vulnerabilities for personal gain or causing harm. After gaining access, a grey hat typically notifies the affected organisation of what they found and sometimes requests compensation for the disclosure.

The name comes from the moral ambiguity of the position. White hat hackers (ethical hackers) always obtain written permission before testing. Black hat hackers (malicious hackers) exploit what they find. Grey hats fall between both: they enter without permission, but their goal is to improve security rather than to cause harm.

⚖️ The legal reality

The Computer Fraud and Abuse Act (CFAA) and equivalent laws in most countries criminalise unauthorised access to computer systems regardless of intent. A grey hat hacker who finds a critical vulnerability and responsibly discloses it has still committed a federal crime under U.S. law. Intent matters in sentencing. It does not provide immunity.

White hat vs. grey hat vs. black hat: the key differences

White hatGrey hatBlack hat
AuthorisationAlways obtained before testingNot obtained or obtained after accessNever sought
IntentImprove security, protect systemsImprove security, personal challenge, exposureSteal, destroy, exploit for gain
DisclosureFull disclosure to the affected partyDisclosed to target, sometimes publiclyExploited or sold to third parties
Legal statusFully legalUsually illegal despite good intentCriminal
CompensationContracted fee or bug bountyMay request payment after the factRansom, data sale, dark web markets

How grey hat hackers operate

Grey hat hacking typically follows a recognisable pattern:

1 Unsolicited scanning or probing

A grey hat scans websites, web applications, or network infrastructure looking for exploitable vulnerabilities. This is done without the knowledge or permission of the target organisation.

2 Exploitation for access verification

The grey hat exploits a discovered vulnerability to confirm that it is genuinely exploitable and to assess its potential impact. This is where the legal line is crossed.

3 Disclosure to the target

After gaining access, the grey hat contacts the affected organisation and discloses the vulnerability. This disclosure may include a request for payment, a bug bounty reward, or simply an expectation of acknowledgement.

4 Public disclosure as pressure

If the organisation does not respond or refuses to pay, some grey hats publish the vulnerability publicly. This pressures the target to patch the issue but also potentially exposes users to exploitation before the patch is released.

⚠️ The public disclosure problem

Responsible disclosure frameworks, used by white hat researchers, give organisations a defined window (typically 90 days) to patch a vulnerability before it is published. Grey hat public disclosure often lacks this structure and can create real harm for users even when that was not the grey hat’s intent.

Real-world grey hat hacking examples

The Facebook zero-day report (2013)

Security researcher Khalil Shreateh discovered a vulnerability in Facebook that allowed him to post on any user’s wall without their permission. He reported the bug through Facebook’s official bug bounty programme. Facebook’s security team told him the behaviour was intentional and closed the report. Shreateh then exploited the vulnerability to post directly on Mark Zuckerberg’s wall to demonstrate the flaw. Facebook patched the vulnerability, but because Shreateh had used it against a real user’s account, the company declined to pay the bug bounty. Shreateh argued he acted in the public interest. The CFAA disagreed with the legality of his method.

The Syrian Electronic Army router compromise (2014)

A grey hat hacker disclosed vulnerabilities in routers used by the Syrian Electronic Army, a group known for pro-government cyberattacks. The researcher accessed the routers, documented the vulnerabilities, and notified authorities. The intent was to disrupt a malicious actor, but the access was unauthorised. The researcher’s method was grey hat; the target was black hat.

Marcus Hutchins and WannaCry (2017)

Marcus Hutchins, a British security researcher, registered a domain name embedded in the WannaCry ransomware that functioned as a kill switch. His action stopped the ransomware from spreading to new systems globally. The discovery required analysing malware samples, which is standard security research. It did not require unauthorised access and is considered white hat work. Hutchins’ later legal troubles involved separate activities predating WannaCry and are often cited to illustrate how grey hat adjacent activity can carry long-term legal consequences.

Why people engage in grey hat hacking

Understanding the motivations behind grey hat hacking is important for evaluating both the ethical and policy dimensions of the practice.

  • Security improvement: Many grey hats genuinely believe they are contributing to a safer internet. They identify vulnerabilities that might otherwise be exploited by malicious actors and help organisations fix them.
  • Recognition and professional credibility: Discovering a critical vulnerability in a major platform generates significant professional recognition in the security community, even when the legal risk is present.
  • Financial motivation: Some grey hats request payment for disclosure. When legitimate bug bounty programmes exist, this financial motivation can be channelled legally. When they do not, grey hat disclosure becomes the primary mechanism.
  • Challenge and curiosity: The technical challenge of finding and exploiting vulnerabilities is itself a motivation for many researchers, independent of the consequences.

The legitimate alternative: bug bounty hunting

The cybersecurity industry has created a legal alternative that captures most of what grey hats want to do: bug bounty programmes. Companies like HackerOne and Bugcrowd host programmes for hundreds of organisations including Google, Microsoft, Apple, and the U.S. Department of Defense. Researchers who find and responsibly disclose vulnerabilities within programme scope are paid, recognised, and legally protected.

Bug bounties have paid out over $300 million to security researchers through HackerOne alone. The top earners make more than $500,000 per year. The incentive to work within legal boundaries is substantial, and the protection is complete. A grey hat who operates outside a programme accepts all the legal risk while often receiving less recognition and no guaranteed payment.

💡 The practical guidance

If you want to find and report vulnerabilities legitimately, bug bounty hunting is the path. It provides authorisation, legal protection, and payment for the same work that grey hat hacking does illegally. The skills are identical. The legal status is entirely different.

Build offensive security skills the right way

Explore the Metana Cybersecurity Bootcamp and see how to build the skills that get you into ethical hacking, penetration testing, and bug bounty hunting legally.

Explore at metana.io/cybersecurity-bootcamp →

FAQ

What is a grey hat hacker?

A grey hat hacker accesses computer systems or networks without explicit authorisation but without malicious intent. They typically identify security vulnerabilities and disclose them to the affected organisation, sometimes requesting payment. Grey hat hacking occupies the legally ambiguous space between authorised ethical hacking and criminal black hat hacking.

Is grey hat hacking illegal?

Yes, in most jurisdictions. The Computer Fraud and Abuse Act (CFAA) in the U.S. criminalises unauthorised access to computer systems regardless of intent. Equivalent laws in the UK, Australia, and the EU carry similar provisions. Good intentions do not provide legal immunity. A grey hat who discloses a vulnerability responsibly has still committed a criminal act under most computer crime statutes.

What is the difference between grey hat and white hat hackers?

White hat hackers always obtain explicit written authorisation before accessing any system. They operate legally and disclose findings under agreed terms. Grey hat hackers access systems without authorisation, even if their intent is benign. The key distinction is not motivation but whether permission was obtained before the activity began.

What is a real-world example of grey hat hacking?

In 2013, researcher Khalil Shreateh discovered a Facebook vulnerability allowing posts to any user’s wall without permission. After Facebook dismissed his report, he demonstrated the flaw by posting on Mark Zuckerberg’s wall. Facebook patched the bug but refused the bounty payment because Shreateh had exploited the vulnerability against a real user’s account without authorisation.

What is the legal alternative to grey hat hacking?

Bug bounty programmes provide a legal, paid alternative. Platforms like HackerOne and Bugcrowd host programmes for hundreds of organisations where researchers can find and disclose vulnerabilities within a defined scope, receive payment, and have full legal protection. The skills required are identical to grey hat hacking. The legal status is entirely different.

Powered by Metana Editorial Team, our content explores technology, education and innovation. As a team, we strive to provide everything from step-by-step guides to thought provoking insights, so that our readers can gain impeccable knowledge on emerging trends and new skills to confidently build their career. While our articles cover a variety of topics, we are highly focused on Web3, Blockchain, Solidity, Full stack, AI and Cybersecurity. These articles are written, reviewed and thoroughly vetted by our team of subject matter experts, instructors and career coaches.

Metana Guarantees a Job 💼

Plus Risk Free 2-Week Refund Policy ✨

You’re guaranteed a new job in web3—or you’ll get a full tuition refund. We also offer a hassle-free two-week refund policy. If you’re not satisfied with your purchase for any reason, you can request a refund, no questions asked.

Web3 Solidity Bootcamp

The most advanced Solidity curriculum on the internet!

Full Stack Web3 Beginner Bootcamp

Learn foundational principles while gaining hands-on experience with Ethereum, DeFi, and Solidity.

You may also like

Metana Guarantees a Job 💼

Plus Risk Free 2-Week Refund Policy

You’re guaranteed a new job in web3—or you’ll get a full tuition refund. We also offer a hassle-free two-week refund policy. If you're not satisfied with your purchase for any reason, you can request a refund, no questions asked.

Web3 Solidity Bootcamp

The most advanced Solidity curriculum on the internet

Full Stack Web3 Beginner Bootcamp

Learn foundational principles while gaining hands-on experience with Ethereum, DeFi, and Solidity.

Events by Metana

Dive into the exciting world of Web3 with us as we explore cutting-edge technical topics, provide valuable insights into the job market landscape, and offer guidance on securing lucrative positions in Web3.

Join 600+ Builders, Engineers, and Career Switchers

Learn, build, and grow with the global Metana tech community on your discord server. From Full Stack to Web3, Rust, AI, and Cybersecurity all in one place.

Subscribe to Lettercamp

We help you land your dream job! Subscribe to find out how

Lock in 20% off your future tech career

Book a free 1:1 with a Metana expert.

No pressure, no commitment.

If it’s a fit, you keep 20% off your tuition.

Our bootcamps come with a Job guarantee.

Get a detailed look at our Cyber Security Bootcamp

Forbes best coidng bootcamp Metana-2024

Understand the goal of the bootcamp

Find out more about the course

Explore our methodology & what technologies we teach

You are downloading 2026 updated Cyber Security Bootcamp syllabus!

Download the syllabus to discover our Cyber Security Bootcamp curriculum, including key modules, project-based learning details, skill outcomes, and career support. Get a clear path to becoming a Cybersecurity Analyst

Cyber Security Bootcamp Syllabus Download

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

Get a detailed look at our AI Automations Bootcamp

Forbes best coidng bootcamp Metana-2024

Understand the goal of the bootcamp

Find out more about the course

Explore our methodology & what technologies we teach

You are downloading 2026 updated AI Automations Bootcamp syllabus!

Download the syllabus to discover our AI Automations Bootcamp curriculum, including key modules, project-based learning details, skill outcomes, and career support. Get a clear path to becoming a top developer.

AI Automations Bootcamp Syllabus Download

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

Get a detailed look at our Software Engineering Bootcamp

Forbes best coidng bootcamp Metana-2024

Understand the goal of the bootcamp

Find out more about the course

Explore our methodology & what technologies we teach

You are downloading 2026 updated Software Engineering Bootcamp syllabus!

Download the syllabus to discover our Software Engineering Bootcamp curriculum, including key modules, project-based learning details, skill outcomes, and career support. Get a clear path to becoming a top developer.

Software Engineering Bootcamp Syllabus Download

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

KICKSTART YOUR SUMMER
GET 20% OFF ANY METANA BOOTCAMP TODAY

Days
Hours
Minutes
Seconds

New Application Alert!

A user just applied for Metana Web3 Solidity Bootcamp. Start your application here : metana.io/apply

Get a detailed look at our AI Software Engineering Bootcamp

Forbes best coidng bootcamp Metana-2024

Understand the goal of the bootcamp

Find out more about the course

Explore our methodology & what technologies we teach

You are downloading 2026 updated AI Software Engineering Bootcamp syllabus!

Download the syllabus to discover our AI Software Engineering Bootcamp curriculum, including key modules, project-based learning details, skill outcomes, and career support. Get a clear path to becoming a top developer.

AI Software Engineering Syllabus Download

"*" indicates required fields

This field is for validation purposes and should be left unchanged.