Ethical hacking. This is the authorized, deliberate practice of probing computer systems, networks, applications or physical facilities to find security vulnerabilities that malicious actors would go on to exploit.

To get started, ethical hacking calls for explicit written permission from the system owner, a scope of testing that is clearly agreed upon and full disclosure of every finding. It differs from criminal hacking.

What started as informal security research has developed into a professionalized industry with set up certifications, legal rules and billions of dollars of corporate investment. The driver is the reality that every organization has vulnerabilities in its systems and the only question is which party finds them first.

On August 5, 2014, a security researcher named Alex Holden got in touch with The New York Times with a claim that was remarkable. His company, Hold Security, had found a cache of 1.2 billion stolen username and password combinations and that was the biggest collection of credentials that had been found at the time.

Automated SQL injection attacks were used to harvest data from 420,000 sites and bring together a batch that came from a single Russian criminal group.

Security researchers had known and documented the vulnerability for over a decade. It let database queries be manipulated via user-facing input fields and defenses were well known but implementation was not universal. One of the largest data breaches in history resulted.

Ethical hacking takes place in the gap between what security professionals know and what organizations put into practice.

The practice exists not because the knowledge of attacks is secret, but because finding the specific weaknesses in a specific system requires active probing. Ethical hackers do what attackers do, before attackers get the chance.

"If you think technology can solve your security problems, then you don't understand the problems and you don't understand the technology."

Bruce Schneier, Secrets and Lies: Digital Security in a Networked World (2000)

Defining Ethical Hacking

What It Is

Authorization is the defining feature of ethical hacking as authorization. That means getting explicit written permission from the owner of the target system to test within the agreed scope. These same technical activities become criminal offenses in most countries around the world without this authorization.

Other terms used for essentially the same role include:

  • Penetration tester (or pen tester): the most common professional title for practitioners
  • White-hat hacker: distinguishes authorized researchers from black-hat (malicious) hackers and gray-hat (unauthorized but non-malicious) hackers
  • Red team operator: specifically refers to advanced adversarial simulation engagements
  • Security researcher: broader term that includes defensive and offensive work
  • Bug bounty hunter: points specifically to independent researchers who track down security flaws on their own in return for cash payouts

The ethical hacker's mandate is to think like an attacker, act like an attacker, and then report everything they find - including how they found it - so defenses can be improved.

What It Is Not

Ethical hacking is not a euphemism. It is not a gray area where enthusiasts probe systems they find interesting and then decide after the fact whether to disclose or exploit what they find.

Authorization is required across the board. Security researchers who test a system without permission break the law in most places even if their intention is to report vulnerabilities and they have no malicious intent.

In the United States, the Computer Fraud and Abuse Act (CFAA), passed in 1986 and updated several times since, makes unauthorized computer access a crime no matter what the person intended. In the United Kingdom, the Computer Misuse Act 1990 works the same way.

Under Section 202c of Germany's Strafgesetzbuch, both making and spreading hacking tools are illegal and that adds extra legal complexity for security researchers operating there. For security research to be legal, there must first be written authorization.

Broader coverage of the legal rules that govern digital security can be found at data protection basics.


Types of Ethical Hacking Engagements

Penetration Testing

Penetration tests are structured, time-bounded security assessments of a defined target. An organization hires a security firm or individual practitioners to attempt to compromise a specific system within an agreed scope and timeframe. That system could be a web application, a corporate network, a cloud environment or a physical facility.

Most penetration tests follow a set methodology that is usually lined up with standards like the PTES (Penetration Testing Execution Standard) or OWASP Testing Guide.

1. Reconnaissance (Information Gathering): Publicly available details on the target get collected by the tester. These are domain registrations, employee information from LinkedIn, job postings that show the technology stack, DNS records and IP address ranges.

This phase, called OSINT (Open Source Intelligence), uses no special access and mimics what a real attacker would do before attempting access. Maltego, Shodan, and theHarvester are common reconnaissance tools.

2. Scanning and Enumeration: The tester proactively probes the target to find out which ports are open, what services are running, what software versions there are and what vulnerabilities might exist.

Detailed maps of the attack surface are built using tools such as Nmap (network scanner), Nessus or OpenVAS (vulnerability scanners) and custom scripts. What is exposed and what might be exploitable show up in this phase.

3. Exploitation: The tester attempts to exploit identified vulnerabilities to gain unauthorized access.

This might involve web application attacks (SQL injection, cross-site scripting, authentication bypass), network attacks (exploiting unpatched services), social engineering (phishing employees), or physical intrusion. The Metasploit Framework, originally developed by H.D.

Moore in 2003, is the most widely used exploitation platform.

4. Post-Exploitation Once initial access is obtained, the tester works to get privilege escalation, move laterally around the network, set up persistent access and hit high-value targets (databases, domain controllers, sensitive files).

Once inside, how far an attacker gets appears in this phase and that is most often the finding that alarms organizations the most.

5. Reporting: At the end, the tester writes up every finding in a full report covering the flaws uncovered, proof of how they were exploited, severity scores (most often on CVSS, the Common Vulnerability Scoring System) and concrete steps to fix each hole.

Of all outputs from the whole engagement, this report is the main deliverable and most often the most valuable one.

Red Teaming

Red teaming. This is a more advanced form of adversarial testing. Penetration tests most often cover a defined technical scope. A red team engagement instead simulates a full-spectrum attack that is realistic and spans an extended period of weeks or months against the whole organization.

Technical exploitation, social engineering and physical intrusion may all be used by the red team. The blue team (defensive security) most often does not know that the engagement is taking place. That tests the organization's detection and response as well as its defenses.

Military strategy gave rise to the concept. Since 2006, the U.S. Army's University of Foreign Military and Cultural Studies (Red Team University) at Fort Leavenworth has been training officers in adversarial thinking. Cybersecurity applies the same principle. It assumes the attacker's perspective to reveal blind spots that defenders cannot see from the inside.

Bug Bounty Programs

Bug bounty programs are open invitations from organizations for independent security researchers to find and report vulnerabilities in exchange for financial rewards. Major programs are run by:

  • Large technology companies: Google, Microsoft, Apple, Meta, and Amazon all operate extensive programs
  • Financial institutions: Citibank, Goldman Sachs, PayPal, and numerous others
  • Government agencies: the U.S. Department of Defense has run bug bounty programs since 2016; the European Commission launched the EU-FOSSA program in 2015
  • Platform intermediaries.HackerOne and Bugcrowd work as intermediaries that connect researchers to programs and manage triage, payment and legal rules.

Scope for bug bounties most often says which assets are in it (for instance, "only production web apps at *.example.com"). It states which kinds of vulnerabilities count and gives reward ranges that run from a few hundred dollars for low-severity findings up to $1 million or more for critical vulnerabilities in some programs.

Google's Vulnerability Reward Program paid out over $12 million in 2022 alone.

Engagement TypeDurationScopeAuthorizationOutput
Penetration testDays to weeksDefined, limitedExplicit contractFormal report with remediation guidance
Red teamWeeks to monthsFull organizationExplicit contractReport + simulation findings + detection gaps
Bug bountyOngoingPublicly definedProgram rulesPer-vulnerability submission and reward
Security auditDays to weeksCode, config, designExplicit contractFormal report with compliance assessment

The CVE Process and Responsible Disclosure

What Is a CVE

CVE stands for Common Vulnerabilities and Exposures. It is a system for cataloging publicly known cybersecurity vulnerabilities, administered by MITRE Corporation and funded by the U.S. Cybersecurity and Infrastructure Security Agency (CISA).

Each CVE entry receives a unique identifier (e.g., CVE-2021-44228, the Log4Shell vulnerability that affected millions of systems worldwide), a description, and a severity score.

The CVE system serves several critical functions:

  • It provides a common reference language so security professionals, vendors, and researchers are talking about the same vulnerability
  • It enables tracking of which systems are affected by which known vulnerabilities
  • It creates a searchable historical record that security tools use to identify unpatched systems
  • By 2024 the CVE database holds over 230,000 entries that add around 25,000 to 30,000 annually.

When a researcher discovers a new vulnerability, they can request a CVE identifier through MITRE or through a CVE Numbering Authority (CNA) - organizations like major tech companies that are authorized to assign CVE IDs directly. Over 300 organizations worldwide now serve as CNAs.

Responsible Disclosure in Practice

Responsible disclosure (formally, coordinated vulnerability disclosure) is the process that governs how security researchers notify vendors about vulnerabilities before publishing details publicly.

The standard process:

  1. Researcher discovers a vulnerability
  2. Researcher notifies the vendor privately, providing technical details
  3. Vendor acknowledges receipt and begins investigation
  4. Vendor develops and tests a patch
  5. Vendor releases the patch
  6. Researcher and/or vendor publish details publicly (a security advisory)

The agreed disclosure timeline has evolved over time. Google's Project Zero, established in 2014 under the leadership of Chris Evans, standardized a 90-day deadline: if a vendor has not released a patch within 90 days of private notification, Project Zero publishes the vulnerability details regardless.

Firm deadlines with predictable enforcement was a controversial approach at first but it has been widely adopted as a reasonable balance between what vendors need and what the public is interested in.

A 2022 analysis found that vendors have been patching vulnerabilities faster since the introduction of the 90-day disclosure deadline policy.[6]

Full disclosure. Without first telling the vendor, the practice of publishing vulnerability details is much more controversial. Supporters say it puts the greatest pressure on vendors to get fixes out quickly and provides defenders with protection details right away.

Critics say that it also puts attackers at an early advantage. Coordinated disclosure with 90-day deadlines has become the default across the majority of researchers and mainstream security research now most often uses it.

For more on how authentication and authorization systems work, see authentication vs authorization.


The Skill Set of an Ethical Hacker

Technical Foundations

Effective ethical hackers typically have deep knowledge across several domains:

Networking. The TCP/IP protocols, DNS, HTTP, TLS and common network architectures have to be understood. Misconfigurations or weaknesses at the protocol level get exploited by many attacks. Someone who does not know how packets move through networks cannot properly assess network security as a penetration tester.

Operating systems: Proficiency in Linux (particularly command line) is essential. Kali Linux, maintained by Offensive Security and based on Debian, is the most widely used distribution for penetration testing, containing over 600 pre-installed security tools.

Attacking as well as navigating corporate environments where Active Directory rules calls for equal knowledge of Windows.

Web application security: Web applications are the most commonly tested attack surface. Knowledge of the OWASP Top 10 (the most critical web application security risks) is required. The 2021 edition includes broken access control (ranked number one), cryptographic failures, injection, insecure design, and security misconfigurations.

Programming and scripting. Custom exploits, automating reconnaissance and data manipulation all draw on Python. Bash scripting is necessary for work on Linux.

You do not have to be a full-time software engineer, yet you do need to read code well enough to spot flaws in source files. Knowing JavaScript, SQL and PHP pays off heavily because so much testing centers on web apps.

Cryptography basics. It is necessary to know how encryption, hashing, authentication and certificate systems work in order to spot their misconfigurations and weaknesses. An ethical hacker who finds a system that uses MD5 for password hashing, for instance, must grasp why that amounts to a serious vulnerability.

Tools of the Trade

A partial inventory of tools ethical hackers commonly use:

  • Nmap: Network discovery and port scanning - the foundational reconnaissance tool
  • Metasploit: Framework for developing and executing exploit code against known vulnerabilities
  • Burp Suite: Web application testing, proxy, and automated vulnerability scanner
  • Wireshark: Network traffic analysis and packet inspection
  • Hashcat / John the Ripper: Password hash cracking through brute force and dictionary attacks
  • Nessus / OpenVAS: Automated vulnerability scanning across networks
  • Cobalt Strike: Commercial red team command-and-control platform for advanced adversarial simulation
  • BloodHound: Active Directory attack path visualization and privilege escalation mapping
  • SQLMap: Automated SQL injection detection and exploitation
  • Ghidra: Reverse engineering framework developed by the NSA and released as open source in 2019

Many of these tools are dual-use: they are standard equipment for both defenders conducting security assessments and attackers conducting intrusions. The difference is authorization, not capability.

For related reading on how security systems fail, see common security failures explained.


Certifications and Career Paths

The Certification Landscape

There is a large but uneven security certification market. Two certifications stand out as being widely recognized for roles in offensive security.

CEH (Certified Ethical Hacker) - Offered by EC-Council, CEH covers ethical hacking concepts, tools, and methodologies through a multiple-choice examination. It is well-recognized by corporate and government hiring teams, partly because it is accepted under DoD 8570.01-M (the U.S. Department of Defense directive that requires personnel in certain IT roles to hold approved certifications).

CEH is knowledge-based and does not call for hands-on exploitation during the exam. A lot of professionals use the certification as a gateway to move from IT administration into security.

OSCP (Offensive Security Certified Professional) - Offered by Offensive Security, OSCP requires candidates to complete a 24-hour practical examination in which they must compromise a set of machines in a lab environment and document their findings in a professional report.

The exam does not test only knowledge. Actual hacking ability is what is tested and the certification is regarded as the most respected one in penetration testing and frequently needed for senior positions. It gets a pass rate of around 40 to 50 percent that shows how tough the exam is.

Additional certifications of note:

CertificationProviderLevelFocus
Security+CompTIAEntryGeneral security fundamentals
CEHEC-CouncilIntermediateEthical hacking concepts
OSCPOffensive SecurityIntermediate/AdvancedPenetration testing (practical)
CRTOZero-Point SecurityAdvancedRed team operations with Cobalt Strike
CRTEAltered SecurityAdvancedActive Directory attacks
GPENGIAC/SANSIntermediatePenetration testing methodology
CISSPISC2Senior/ManagementSecurity management and strategy

For a more detailed comparison of certifications, see cybersecurity certifications ranked.

Career Progression

Entry into ethical hacking typically follows one of several paths:

  • Formal education. Computer science, cybersecurity or information systems degrees give a foundation of knowledge. Hands-on security coursework is now available in more academic programs and the NSA and CISA have designated over 400 US institutions as National Centers of Academic Excellence in Cybersecurity.
  • Self-directed learning and labs. Legal practice spaces for security pros to build skills on intentionally vulnerable machines come from platforms such as Hack The Box, TryHackMe and PentesterLab. As of 2023, Hack The Box said it had more than 2 million registered users.
  • Capture The Flag (CTF) competitions: CTF events present security challenges designed to test specific skills. Strong CTF performance is valued by security employers as evidence of practical ability. DEF CON CTF, held annually in Las Vegas, is the most prestigious competition in the field.
  • Progression from defensive roles. Many penetration testers start out in IT administration, network operations or security operations center roles and then move on to offensive work. The path gives valuable insight into how the defender sees things.

From 2023 through 2033, the U.S. Bureau of Labor Statistics expects 33% growth in information security analyst jobs and that is far faster than the pace for all occupations. The ISC2 2023 Cybersecurity Workforce Study put the global shortfall of cybersecurity professionals at about 4 million.


How Ethical Hacking Differs from Malicious Hacking

There is a great deal of overlap in the tools, techniques and knowledge. What matters as differences are legal, ethical and motivational.

Authorization: Every action an ethical hacker takes is covered by explicit written permission. Every action a malicious hacker takes is unauthorized.

Scope: Ethical hackers operate within a defined scope. They do not use access to one system to pivot to systems outside the agreed target. Malicious hackers have no such constraints.

Disclosure: Ethical hackers report all findings to the organization that hired them. Malicious hackers conceal their activities and exploit or sell what they find - often on dark web marketplaces where stolen credentials sell for as little as $1-$10 per account.

Intent. Ethical hackers work to raise security and malicious hackers most often want money, data theft, disruption or spying. In 2023, the FBI's Internet Crime Complaint Center (IC3) put the cost of cybercrime at $12.5 billion in just the United States.

"The only real difference between a penetration tester and a criminal hacker is a piece of paper. Make sure you have the paper."

Common industry saying

There is real legal risk. Security researchers have faced prosecution for testing systems without adequate authorization even when they acted in good faith and reported vulnerabilities. What counts as authorized research is not always clear, especially in the U.S. legal scene and particularly in the CFAA.

Following the Supreme Court's 2021 decision in Van Buren v. United States, which narrowed the CFAA's scope a bit, large ambiguity still remains.

Getting written authorization that specifies scope in detail is not just professional best practice; it is legal protection.


The Impact of Ethical Hacking

Bug Bounty Economics

Both sides get drawn in by the economics of bug bounty programs and HackerOne's 2023 report showed that its platform had paid out over $300 million in bug bounty rewards since 2012. In 2016, the U.S. Department of Defense launched "Hack the Pentagon" as a bug bounty program and discovered 138 vulnerabilities in its first run at a cost of $150,000.

Researchers who top the bug bounty rankings can bring in hundreds of thousands of dollars a year. Major tech companies run the highest-paying programs and they offer six-figure prizes for critical vulnerabilities in core systems. Advanced attack chains get Apple a maximum bounty of $2 million for certain ones (and up to $5 million with bonuses).

Systemic Security Improvements

The broader impact of ethical hacking on cybersecurity is difficult to quantify precisely but is widely recognized. Google Project Zero has produced hundreds of vulnerability disclosures that improved the security of software used by billions of people.

Security researchers have built the CVE database mainly through responsible disclosure and it is a central resource for defensive security around the world. Penetration testing at the same time has found and prompted companies to repair flaws that would otherwise have remained wide open to attack.

The alternative - security through obscurity, where organizations hope that attackers do not find vulnerabilities that researchers would find - has a consistently poor historical track record.

Systems that have not been tested tend to have vulnerabilities that eventually get found, not by professionals with a mandate to report them, but by adversaries with a mandate to exploit them.

The 2017 Equifax breach, which exposed the personal data of 147 million Americans, exploited a known vulnerability (CVE-2017-5638 in Apache Struts) for which a patch had been available for two months. Ethical hacking and vulnerability management exist precisely to prevent such failures.


Sources & Further Reading

  1. Schneier, B. (2000). Secrets and Lies: Digital Security in a Networked World. John Wiley & Sons.
  2. Weidman, G. (2014). Penetration Testing: A Hands-On Introduction to Hacking. No Starch Press.
  3. OWASP Foundation. (2021). OWASP Top 10 - 2021. View source
  4. HackerOne. (2023). The 2023 Hacker-Powered Security Report.
  5. MITRE Corporation. (2024). CVE - Common Vulnerabilities and Exposures. View source
  6. Google Project Zero (2022) published The More You Know, The More You Know You Don't Know. Vulnerability Disclosure Metrics.
  7. ISC2. (2023). Cybersecurity Workforce Study.
  8. U.S. Bureau of Labor Statistics. (2024). Information Security Analysts. Occupational Outlook Handbook. View source
  9. FBI Internet Crime Complaint Center. (2024). 2023 Internet Crime Report.View source
  10. Kennedy, D., O'Gorman, J., Kearns, D., & Aharoni, M. (2011). Metasploit: The Penetration Tester's Guide. No Starch Press.