Security Testing
Ethics
Understand the ethical boundaries of security testing and learn the principles of responsible disclosure that protect both testers and organizations.
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
Why Do Ethics Matter?
The Golden Rule of Security Testing
What Authorization Looks Like
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
Disclosure Models Compared
How to Apply Ethical Testing
Example: Bug Bounty Program
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?
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?
Key Legal Frameworks
Common Mistakes to Avoid
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
Scenario: A security researcher discovers that a major bank's mobile app transmits customer account numbers in plain text over an unencrypted connection. The researcher has no relationship with the bank and was not authorized to test the app. They confirmed the vulnerability by intercepting their own network traffic while using the app as a regular customer.
The researcher wants to do the right thing and ensure the bank fixes this critical vulnerability that affects millions of customers.
What is the most responsible course of action for the researcher?