01 / 20

Security Testing
Ethics

Understand the ethical boundaries of security testing and learn the principles of responsible disclosure that protect both testers and organizations.

Cyber Security

What is Security Testing?

Security testing is the process of evaluating a system, network, or application to identify vulnerabilities that could be exploited by malicious actors. It helps organizations find and fix weaknesses before attackers discover them.

Essential Vocabulary

Penetration Test
An authorized, simulated attack on a system to evaluate its security posture.
Vulnerability
A weakness in a system that could be exploited to gain unauthorized access or cause harm.
Exploit
A technique or piece of code that takes advantage of a vulnerability to compromise a system.

Why Do Ethics Matter?

Ethical Authorized Legal Protective Unethical Unauthorized Illegal Harmful The same skills can protect or harm

The Golden Rule of Security Testing

NEVER test a system without EXPLICIT WRITTEN AUTHORIZATION Scope Define exactly which systems are targets IP ranges, domains Timeline Specify start and end dates for testing Window of operations Boundaries List what methods are permitted Rules of engagement

What Authorization Looks Like

1
Written permission from the system owner, not just a verbal agreement.
2
Defined scope: exactly which systems, networks, or applications you may test.
3
Testing methods specified: vulnerability scanning, social engineering, physical testing, etc.
4
Emergency contacts: who to call if something goes wrong during the test.
5
Data handling rules: how sensitive data encountered during testing must be treated.

White Hat vs. Black Hat vs. Grey Hat

White Hat Black Hat Grey Hat
Authorization Always obtained Never obtained Sometimes absent
Intent Improve security Personal gain or harm Mixed: help + curiosity
Legality Legal Illegal Legally risky
Disclosure Reports to owner Sells or uses exploits May notify publicly

Responsible Disclosure

1. Discover Find vulnerability 2. Document Record details 3. Report Notify vendor 4. Wait Allow fix time 5. Deadline Typically 90 days 6. Publish Disclose publicly The standard responsible disclosure timeline is 90 days from vendor notification to public disclosure

Disclosure Models Compared

Responsible Disclosure
Notify the vendor privately, give them time to fix, then publish. Balanced approach that protects users while ensuring accountability.
Full Disclosure
Publish all vulnerability details immediately. Pressures vendors to act fast but exposes users to risk before a patch exists.
Non-Disclosure
Never reveal the vulnerability publicly. May protect in the short term but allows the flaw to persist indefinitely.

How to Apply Ethical Testing

1
Get written authorization from the system owner with a clear scope and rules of engagement.
2
Stay within scope: only test the systems, networks, and methods specified in the agreement.
3
Minimize harm: avoid disrupting services, destroying data, or accessing information beyond what the test requires.
4
Document everything: keep detailed logs of all actions, findings, and timestamps.
5
Report responsibly: deliver findings to the authorized party and follow the agreed disclosure process.

Example: Bug Bounty Program

Security Researcher submits bug Bug Bounty Platform triaged Company Patch Released reward paid Bug bounty programs provide a legal, structured framework

Example: Scope Creep Scenario

A penetration tester is authorized to test webserver.company.com. During testing, they discover the web server connects to database.internal.company.com. Should they test the database server?

✕ Wrong Approach
Proceed to test the database server because "it's connected and probably vulnerable." This exceeds the authorized scope and is a violation.
✓ Correct Approach
Stop, document the discovery, and request an amendment to the authorization before touching the database. Get it in writing.

Example: Accidental Discovery

While browsing a public website, you notice a URL pattern that reveals other users' private data when you change a number in the address bar. You did not intend to find this vulnerability. What should you do?

1
Stop immediately. Do not access any more records beyond confirming the issue exists.
2
Document what you observed: the URL pattern, what data was exposed, and the timestamp.
3
Report privately to the organization via their security contact (security@company.com or a bug bounty platform).
4
Do not share the vulnerability publicly or with others until the organization has had time to fix it.

Key Legal Frameworks

CFAA (U.S.)
Computer Fraud and Abuse Act: accessing a computer "without authorization" or "exceeding authorized access" is a federal crime, even without malicious intent.
CMA (U.K.)
Computer Misuse Act: unauthorized access to computer material carries penalties up to imprisonment. Intent to impair is a separate, more serious offense.

Common Mistakes to Avoid

✕ Testing Without Written Consent
Verbal agreements or assumptions of permission are not enough. Always get signed, written authorization before starting.
✕ Exceeding Scope
Finding an interesting lead outside the defined targets and following it. Request scope amendments instead.
✕ Public Disclosure Too Early
Sharing vulnerability details on social media or blogs before the vendor has had reasonable time to patch.

Ethics Summary

Principle Ethical Practice Unethical Practice
Authorization Written consent obtained No permission sought
Scope Stay within boundaries Test whatever you find
Data Handling Protect sensitive findings Copy or leak data
Disclosure Private report, then public Immediate full disclosure
Intent Improve security posture Personal gain or fame

Question 1 of 5

A security researcher discovers a critical vulnerability in a popular app. What is the most ethical first step?

Question 2 of 5

A company hires you to perform a penetration test on their web application. During testing, you find a path to their internal payroll database, which is not in scope. What should you do?

Question 3 of 5

Which of the following best describes a "grey hat" hacker?

Question 4 of 5

Under the U.S. Computer Fraud and Abuse Act (CFAA), which factor primarily determines whether accessing a computer system is a crime?

Question 5 of 5

What is the most responsible course of action for the researcher?