Skip to main content
XenonStack

Continuous Security

XenonStack Insights Ethical Hacking vs Penetration Testing: Key Differences

and | Published | Updated

Ethical Hacking vs Penetration Testing: Key Differences
11:53
Ethical Hacking vs Penetration Testing: from scope and rules of engagement to a report with risk ratings

Key takeaway

  • Ethical hacking is the broad practice; penetration testing is a scoped, authorised test. Compare scope, NIST phases, tools and when to use each.

Penetration testing is a scoped, authorised attempt to break into specific systems, run to a plan and ended with a report. Ethical hacking is the wider practice of using attacker skills, with permission, to find and report weaknesses. In everyday use the two terms overlap, so most buyers mean the same thing by both. What matters is what is written into the scope. NIST SP 800-115 describes penetration testing as security testing in which assessors mimic real-world attacks to identify ways of circumventing the security features of an application, system or network. EC-Council describes ethical hacking as "the methodical practice of identifying, evaluating, testing, and reporting vulnerabilities within an organization."

For enterprise leaders, the practical question is which one to commission and what to ask for. This guide gives the working difference, the four phases NIST uses, the tools and their current status, the legal and risk controls to agree first, and a simple adoption sequence. For the method itself, see our guide to penetration testing tools and methods. This is general information, not legal advice.

What is the difference between ethical hacking and penetration testing?

No single standard fixes the boundary, so treat the table below as common usage and confirm the exact meaning in your statement of work. The NIST and EC-Council wording is quoted from each organisation's own pages.

QuestionEthical hackingPenetration testing
What is it?A broad practice of finding and reporting weaknesses with permission (EC-Council: identifying, evaluating, testing and reporting vulnerabilities).One kind of security test that mimics real-world attacks to find ways around security features (NIST SP 800-115).
ScopeOften wider: can combine reviews, scanning, validation and attack simulation across an organisation.Defined targets and limits, written down in rules of engagement with authorised and excluded systems (NIST SP 800-115, Appendix B).
PermissionWritten authorisation from the system owner is expected before any testing starts.Management approval is documented in the planning phase, and covert tests need the knowledge and permission of upper management (NIST SP 800-115).
OutputFindings and remediation advice, in whatever format the engagement agrees.A report that describes vulnerabilities, gives a risk rating and offers mitigation guidance (NIST SP 800-115, section 5.2.1).
Skills and certificationNo law or NIST text makes a certificate compulsory. EC-Council's CEH (version 13 on its site) is one common credential.NIST recommends using skilled assessors. The UK NCSC recommends CHECK-scheme testers for HMG organisations.
How oftenOngoing as a programme, if the organisation chooses.NIST notes that, given its high cost and potential impact, annual testing may be sufficient (section 5.2.2).

What happens in a penetration test?

NIST SP 800-115 describes four phases. Many industry guides use five or six steps instead.

Diagram pairing the four NIST SP 800-115 penetration test phases (planning, discovery, attack, reporting) with what each should deliver.
PhaseWhat happensWhat you should receive
1. PlanningRules are identified, management approval is documented and goals are set. NIST states that no actual testing occurs in this phase.Signed scope and rules of engagement.
2. DiscoveryInformation gathering, scanning and vulnerability analysis to identify potential targets.Target list and candidate weaknesses.
3. AttackPotential vulnerabilities are verified by trying to exploit them. Exploits may allow privilege escalation, and testers can install further tools on the target to help the test.Evidence of what an attacker could reach.
4. ReportingRuns alongside the other phases. A final report describes vulnerabilities, gives a risk rating and offers mitigation guidance.Prioritised report and a remediation plan.

NIST also groups technical assessment into three technique types: review techniques, target identification and analysis techniques, and target vulnerability validation techniques. NIST describes penetration testing separately, in section 5.2. NIST SP 800-115 also covers password cracking as a separate technique.

Which types of penetration test are there?

Testers usually name a test by the target. Each type needs its own scope, skills and agreed method.

TypeTargetWhere to anchor the method
Network servicesInternal and external network infrastructure, including firewalls and DNS.NIST SP 800-115.
Web application and APIApplications, browsers and the services behind them.OWASP Web Security Testing Guide. Its page lists v4.2 (December 2020) as the latest versioned release and v5.0 as in development.
Client-sideSoftware that runs on user devices, such as browsers and desktop clients.Agree the list of client software in scope.
WirelessWireless devices and the protocols that configure them, usually tested on site.NIST SP 800-115 covers wireless scanning.
Social engineeringPeople and process, for example a phishing exercise.Needs explicit sign-off from management and legal advisers before it starts.

Which tools do ethical hackers and penetration testers use?

Tools help, but NIST recommends skilled assessors, and scanner output still needs expert interpretation. Check each product's own page, because names and ownership change.

ToolWhat it is, according to its siteStatus to confirm
MetasploitA penetration testing tool. Its docs describe the Framework as free and open source, with a free trial of Metasploit Pro offered alongside it.Confirm the current edition and licence on docs.metasploit.com.
BeEFThe Browser Exploitation Framework, a penetration testing tool that focuses on the web browser.Confirm the licence on its GitHub page. Use only on systems you are authorised to test.
AcunetixAn end-to-end web security scanner for web applications and APIs. Its site says Acunetix is now Invicti Web + API.Confirm the current product name and licence with the vendor.

When should an enterprise choose each, and when not?

Commission a penetration test when you want proof about one specific system, for example before a major release or after a significant change. Commission a wider ethical hacking programme when you want continuing coverage across many systems, with findings fed into engineering work. The NCSC cautions that a penetration test should not be treated as the primary way to find vulnerabilities. It is a check on your own vulnerability assessment and management, and it can only validate systems against known issues on the day of the test.

Do not use either as a substitute for routine testing in delivery. Build checks into the pipeline first, as set out in our guides to security testing in DevOps, DevSecOps in CI/CD and continuous security, and keep an application security checklist current.

What governance, legal and risk controls should be agreed first?

  • Rules of engagement. NIST SP 800-115 Appendix B gives a template covering purpose, scope, assumptions, risks, personnel, schedule, communication, authorised and unauthorised systems (an exclude list), data handling and reporting, with a signature page for accountable parties.
  • Legal review. NIST recommends that legal advisers are always involved for intrusive tests. They may review the plan, add indemnity or limitation-of-liability terms, require non-disclosure agreements and address privacy, including packet captures that may hold personal or third-party data.
  • Operational risk. NIST warns that testing uses real exploits and attacks against production systems and data, that systems may be damaged or rendered inoperable, and that this risk can never be fully eliminated. Agree halt criteria and a contact route for incidents.
  • Provider quality. Ask about qualified, experienced staff. The NCSC recommends CHECK-scheme providers for HMG organisations, and advises flagging unusual systems such as mainframes early.
  • Remediation. NIST sets out testing the fix, coordinating it through configuration management, verifying it and keeping the plan of action and milestones up to date.

What changes when AI agents are in scope?

When autonomous agents act inside your systems, the question for testers widens from "can someone get in?" to "what can an agent be made to do, and who can prove what it did?". Put the tools an agent may call, the permissions it holds and the policy it must follow into the scope of the test, and keep a record of every action. Elixir Govern (formerly AgentGRC), according to its page, checks agent actions against defined policies before they reach business systems and records evidence of each decision, and it runs on ElixirData Context OS, which keeps governed context, versioned policy and decision traces in one decision layer above AI agents.

What is a sensible adoption sequence?

  1. List the systems that matter most and decide which need proof and which need continuing coverage.
  2. Write the scope and rules of engagement, and get management and legal sign-off.
  3. Run automated checks in the delivery pipeline so testers spend time on what tools cannot find.
  4. Commission a penetration test for the highest-risk system and agree the report format and risk ratings in advance.
  5. Fix, retest and record the result, then decide whether to repeat annually or after major change.

To map one security decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

Is ethical hacking the same as penetration testing?

Not exactly. Ethical hacking is the broader practice of using attacker skills with permission to find weaknesses, while penetration testing is a scoped test that mimics real-world attacks and ends in a report. The terms overlap in daily use, so confirm the meaning in the scope.

What are the phases of a penetration test?

NIST SP 800-115 names four: planning, discovery, attack and reporting. No actual testing occurs in planning. Reporting runs alongside the other phases and ends with a report that gives a risk rating and mitigation guidance.

Does an ethical hacker have to be certified?

NIST does not make a certificate compulsory. It recommends skilled assessors. Certifications such as EC-Council's CEH are one way to show skills, and the NCSC recommends CHECK-scheme testers for HMG organisations.

How often should a penetration test run?

NIST notes that, given the high cost and potential impact of penetration testing, annual testing may be sufficient. The NCSC adds that a test only validates systems against known issues on the day, so keep regular security testing between tests.

What should be agreed before a test starts?

Agree written scope and rules of engagement, authorised and excluded systems, data handling, halt criteria and the report format. NIST recommends legal advisers are always involved for intrusive tests.

Related reading: DevSecOps tools and continuous security and our cloud security assessment for hybrid and multi-cloud. For managed security work, see our cyber security services.

Sources read on 13 November 2026: NIST SP 800-115, OWASP Web Security Testing Guide, NCSC penetration testing guidance, EC-Council CEH.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

Navdeep Singh Gill

Navdeep Singh Gill

Founder and CEO, XenonStack

LinkedIn profile

Navdeep Singh Gill is the Founder and Global CEO of XenonStack. With more than 20 years in network and cloud transformation, he leads the company’s strategy and product development in private cloud and agentic AI, including the ElixirData, ElixirClaw and NexaStack platforms. He writes about enterprise AI, data platforms and the architecture decisions that help large organisations run AI safely at scale.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue