Is ethical hacking legal in the United States? What permission really covers
November 23, 2026 · by Pentevo
Security testing can be lawful in the United States when you have authority to test and stay within its scope. Good intentions alone do not establish permission, and the law does not create a general legal category called ethical hacking. This article concerns U.S. law, not a worldwide rule.
Is ethical hacking legal in the United States?
Yes, ethical hacking can be legal, but the label does not decide whether a particular test is lawful. The conduct, your authorization, and the laws that apply all matter.
Three separate layers are easy to confuse: the federal Computer Fraud and Abuse Act (CFAA), federal prosecutors’ charging policy, and the system owner’s rules or agreement. The CFAA addresses specified computer access. Department of Justice (DOJ) policy guides federal prosecution decisions. An owner’s written scope sets the practical boundaries of an authorized test. None of these should be treated as a substitute for the others.
What the CFAA says about access and authorization
The CFAA addresses specified conduct involving access to a protected computer without authorization or exceeding authorized access. A protected computer can include one used in or affecting interstate or foreign commerce or communication. The definition can also cover a computer outside the United States when its use affects U.S. interstate or foreign commerce or communication. The statute describes the relevant terms and conduct.
The Supreme Court’s decision in Van Buren v. United States addressed what it means to exceed authorized access. The Court focused on obtaining information from computer areas a person was not entitled to access. If someone could access the information but did so for an improper reason, that motive alone did not satisfy this clause.
That decision is not permission to enter a system or data area that is off limits. It also does not resolve every possible legal question about computer access. The practical point is straightforward: know which systems, accounts, and data you are allowed to reach before testing.
Why DOJ’s good-faith research policy is not permission
DOJ charging policy is about whether federal prosecutors bring a case, not whether an owner has authorized your test. The Justice Manual directs federal prosecutors to decline prosecution when available evidence shows that conduct consisted of, and was intended as, good-faith security research.
For this policy, good-faith research means testing, investigating, or correcting a vulnerability in a way designed to avoid harm. The work should primarily promote the security or safety of relevant devices, services, or their users. Research intended to extort an owner is excluded under the DOJ policy.
This is prosecutorial discretion, not a legal permission slip. It does not authorize activity on someone else’s system, bind private owners, or remove other possible legal exposure. Get permission and define scope before testing, rather than relying on how a prosecutor might assess your intent later.
Get clear authorization and scope before testing
Before a penetration test, make sure the person approving it has authority over the assets. Record the permission and the boundaries in writing. A company’s approval does not automatically cover its vendors, cloud providers, customers, employees’ personal accounts, or connected infrastructure.
A useful scope document answers practical questions before tools run. It should name the systems you may test, the methods you may use, and what to do if something unexpected happens.
What the scope document should name
- Authorized assets: Exact domains, IP addresses, applications, accounts, and environments. Identify whether production systems are included.
- Allowed methods: State which scanning, exploitation, or other techniques are permitted. Name prohibited methods too.
- Timing: Set the approved testing period and any times when testing must pause.
- Data handling: Explain what to do if you encounter personal, confidential, or business-sensitive information. Avoid collecting more than the test requires.
- Third-party exclusions: List systems and services that belong to vendors or other organizations, unless they have separately authorized testing.
- Contacts and reporting: Name an emergency contact, the vulnerability reporting route, and how quickly to report a serious issue.
- Stop conditions: Specify when to halt, such as unexpected access to sensitive data, service instability, or signs that testing is affecting other users.
We recommend treating scope as an operating document, not a formality. If an asset or technique is not clearly included, pause and get clarification before proceeding.
Treat bug bounties and disclosure policies as limited authorization
A vulnerability disclosure policy or bug bounty covers only the assets and activity it names. A company name or product family is not enough to assume that every related service, vendor, or connected system is in scope.
The DOJ’s own vulnerability disclosure policy illustrates how narrow authorization can be. For covered public-facing DOJ systems, research that follows the policy is considered authorized by DOJ’s Office of the Chief Information Officer. That does not extend to third-party systems or excuse violations of other applicable law, as the DOJ policy explains.
The policy permits only the minimum testing needed to identify or demonstrate a vulnerability. It excludes activities such as data exfiltration, persistence, lateral movement, service-disrupting tests, and social engineering. This is an agency-specific example, not general legal protection for researchers.
Check the policy before you start
Read the current policy and verify:
- The exact in-scope assets and any excluded systems.
- The permitted techniques and prohibited activity.
- The required reporting channel and information to include.
- How the organization says it will handle good-faith research.
CISA and the FBI recommend that organizations’ disclosure policies identify in-scope products, provide a reporting channel, and explain how good-faith researchers will be treated. That guidance is aimed at organizations. It is not a general legal safe harbor for researchers. If a system is not covered, do not infer authorization from its relationship to an in-scope target.
Account for state law, civil claims, and unexpected findings
The CFAA is not the only legal layer. State computer-misuse laws and other federal laws may also apply. Agreements, privacy duties, and cross-border issues can affect an engagement too. The Congressional Research Service describes the wider set of laws that may apply to cyber conduct.
The CFAA also allows qualifying civil actions by people who suffer damage or loss. Federal charging policy therefore does not settle every potential risk, as the statute provides. For a specific engagement, get advice from a qualified U.S. lawyer who can review the assets, authorization, and planned methods.
If testing exposes personal data or affects a live system, stop the activity. Do not explore further or copy more data. Preserve only the minimal evidence needed to describe what happened, then use the agreed reporting channel and follow the response plan.
Keep automated testing inside the same boundaries
A scanner, script, or AI-assisted tool does not expand the authority the owner granted. Automation can send requests or expose data faster than a person can review each step, so check targets and settings before launch.
Use conservative rate limits, human review of targets and findings, clear stop conditions, and evidence logs. Minimize data collection, and ensure the tool cannot drift into excluded systems. Keep the authorization record available to the people running and supervising the test.
Build skills in a controlled environment
Beginners can build practical skills in a lab or a disclosure program that clearly includes the target. Do not use public systems as practice targets without permission. Courses can teach concepts and testing methods, but they do not award an authorization to test someone else’s system.
At Pentevo, we offer free cybersecurity courses with labs and no account required to access the learning resources. Browse the courses to practise in a structured setting, or contact us to request a demo of our AI-powered penetration-testing product, which is in beta. Neither a course nor a demo replaces authorization for a real test.
Before you test, identify who can authorize the assets, record the exact scope, and use a lab or policy that clearly includes the target.
Frequently asked questions
Do I need written permission before penetration testing a system?
Written permission is the safest practical record of what was authorized, even though the right format can depend on the situation. Make sure approval comes from someone with authority over the assets, and record the exact systems, methods, timing, exclusions, and reporting route. If the scope is unclear, get clarification before testing.
Does the DOJ’s good-faith security research policy make unauthorized hacking legal?
No. DOJ policy guides federal prosecutors’ charging decisions in qualifying cases where the evidence shows good-faith security research. It does not grant permission from a system owner, bind private organizations, or eliminate other legal risks. The policy is not a replacement for authorization and a clearly defined scope.
Does a bug bounty program authorize testing every system connected to the listed target?
No. A program covers the assets and activities its rules actually name. Related domains, vendor services, cloud infrastructure, or connected systems may be excluded. Check the program’s asset list, permitted methods, and exclusions. If a system is not clearly covered, do not assume that its connection to an in-scope target authorizes testing.
Does the CFAA treat violating a website’s terms of service as unauthorized access?
Van Buren addressed the meaning of exceeding authorized access, focusing on access to computer areas a person was not entitled to enter. It held that an improper motive alone did not satisfy that clause when the person could access the information. The decision does not resolve every terms-of-service dispute or other possible legal claim.
Can good-faith security research still create state-law or civil risks?
Yes. DOJ policy concerns federal prosecution decisions, while state computer-misuse laws and other rules may still matter. The CFAA also provides for qualifying civil actions by people who suffer damage or loss. For a particular test, consult a qualified U.S. lawyer who can review the authorization, target, and planned activity.
Sources
- 18 U.S.C. § 1030: Fraud and related activity in connection with computers
- Van Buren v. United States, No. 19-783
- Justice Manual: Computer Fraud and Abuse Act
- Justice Management Division: Vulnerability Disclosure Policy
- Product Security Bad Practices
- Cybercrime and the Law: Primer on the Computer Fraud and Abuse Act and Related Statutes
Related reading
Vulnerability management platform: how to choose one that fits your team
Choose a vulnerability management platform by comparing asset coverage, prioritisation, remediation workflows, pricing, and proof-of-concept results.
SecurityAI agent security best practices: a practical plan for safer deployment
Apply AI agent security best practices with a deployment plan to limit access, test realistic threats, set approval rules and monitor activity.
SecurityAI cybersecurity courses: how to choose the right learning path
Compare AI cybersecurity courses by goal, prerequisites, hands-on practice and credentials, then choose a path that fits your next step.
SecurityGoogle cybersecurity courses: what to expect, what they cost, and which one to choose
Compare Google cybersecurity courses, check Coursera pricing and financial aid, understand course listings, and choose a practical next learning step.
Practice this hands-on
Pentevo Academy turns these concepts into guided lessons, videos and quizzes — free.
Start learning free