Ethical Hacking Ethics
Guidance for ethical hacking: bug bounties, pentesting, and security research.
When to Use This Skill
- Participating in bug bounty programs (HackerOne, Bugcrowd, Intigriti, YesWeHack)
- Conducting authorized penetration testing
- Performing security research on your own systems
- Evaluating legality of security testing activities
- Creating vulnerability disclosure reports
DO's - Always Do These
1. Obtain Explicit Authorization
- Get written permission before testing any system you don't own
- Verify scope - know exactly what assets are authorized
- Document authorization - keep records of written consent
- Check safe harbor status - confirm program has safe harbor policy
2. Follow Platform Rules of Engagement
- Read and understand program-specific rules before testing
- Adhere to testing timeframes specified by the program
- Use only authorized testing methods
- Report through official channels only
- Human-in-the-loop required: HackerOne requires human validation before submitting findings
3. Practice Good Faith Security Research
Access systems solely for good-faith testing, avoid harm to individuals/public, use findings to improve security.
4. Document Everything
- Keep detailed logs of all testing activities
- Capture evidence of vulnerabilities for reports
- Record timeline of discovery and reporting
- Document all communication with program owners
5. Practice Responsible Disclosure
- Report vulnerabilities promptly through official channels
- Allow reasonable time for remediation before disclosure
- Coordinate disclosure with affected organization
- Follow platform-specific disclosure guidelines
6. Respect Data Privacy
- Minimize data access to only what's necessary for testing
- Don't store or share personal data discovered during testing
- Report data exposure vulnerabilities without exploiting them
- Follow GDPR and local data protection laws
DON'Ts - Never Do These
1. Never Test Without Authorization
- Never access systems without explicit permission
- Don't assume permission - verify scope explicitly
- Never test "out of scope" assets even if you find them
- Don't exceed authorized access - stay within defined boundaries
Legal risk: CFAA (US) and CMA 1990 (UK) prohibit unauthorized access. Penalties include imprisonment.
2. Never Cause Harm
- Don't modify or destroy data during testing
- Never create backdoors or permanent access mechanisms
- Don't disrupt services or availability
- Never exfiltrate data beyond what's necessary for proof
3. Never Blackmail or Extort
- Never threaten to publish vulnerabilities for payment
- Don't use vulnerabilities for extortion
- Never demand bounties as condition for not publishing
- Result: Permanent platform ban + potential criminal charges
4. Never Disclose Prematurely
- Don't publish vulnerability details before remediation
- Never share findings with third parties without permission
- Don't post proof-of-concept code publicly without coordination
- Never disclose program existence for private programs
5. Never Use Deceptive Practices
- Don't impersonate authorized security researchers
- Never falsify vulnerability reports or evidence
- Don't misrepresent your identity or affiliation
- Never submit false reports for rewards
6. Never Violate Privacy Laws
- Don't access personal data beyond testing scope
- Never store or share PII discovered during testing
- Don't bypass privacy controls beyond what's necessary
- Follow GDPR/data protection requirements
Scope Verification Checklist
Before beginning any testing, verify:
Authorization Types
| Type |
Authorization |
Safe Harbor |
Notes |
| Bug Bounty |
Implicit via program |
If offered |
Follow program rules |
| Pentest |
Written contract/SOW |
Per contract |
May require NDA |
| VDP |
Program invitation |
Varies |
Usually no rewards |
| CTF |
Competition rules |
Within boundaries |
Legal only in competition |
Authorization Best Practices
- Always get it in writing - verbal authorization is insufficient
- Define scope explicitly - "everything except X" is too vague
- Specify time boundaries - testing windows and deadlines
- Include escalation procedures - what to do if issues arise
Responsible Disclosure Process
- Validate - Reproduce issue, document PoC, assess severity, check for duplicates
- Submit - Use official channels, include description + steps + impact + remediation
- Coordinate - Allow validation time, respond to questions, agree on timeline
- Verify - Confirm fix applied, test that vulnerability is remediated
- Disclose - Per agreed terms (coordinated, limited, full, or non-disclosure)
Red Lines - Violation Severity
| Severity |
Violations |
Consequence |
| Critical |
Unauthorized access, data theft, service disruption, extortion, social engineering, physical breach |
Permanent ban + legal action |
| Severe |
Premature disclosure, prohibited techniques, third-party sharing, withholding details |
Warnings + potential ban |
| Minor |
Unintentional scope violation, incomplete reports, format issues |
Education + warning |
When to Stop and Escalate
Stop Immediately If:
| Situation |
Action |
| Outside scope |
Halt, document, report, await guidance |
| Sensitive data exposure |
Stop exploration, don't download, report immediately |
| Service disruption (or near) |
Stop, document, report, await instructions |
| Asked to stop |
Cease all activities, get written confirmation |
Escalate When:
- Legal questions - Consult legal counsel
- Disputes - Request platform mediation
- Unresponsive programs - Follow platform escalation procedures
- Criminal activity discovered - Report to authorities
- Safety concerns - Escalate if human safety at risk
Legal Framework Summary
| Jurisdiction |
Law |
Key Points |
| US |
CFAA (18 U.S.C. § 1030) |
Prohibits unauthorized access. Van Buren (2021) narrowed scope. |
| UK |
CMA 1990 |
No "good faith" defense. Section 1: up to 2 years. No safe harbor equivalent. |
| EU |
GDPR |
Legal basis required for data. Report breaches within 72 hours. |
Other jurisdictions: Canada, Australia, Germany, France, Japan have similar laws. Research local laws before international testing.
References: CFAA | CMA | GDPR
Standards Compliance
Platform Quick Reference
| Platform |
Safe Harbor |
Disclosure |
Key Requirement |
| HackerOne |
Gold Standard (GSSH) |
Program-specific |
Human-in-the-loop validation |
| Bugcrowd |
Disclose.io framework |
Coordinated/Custom/Non |
Secure POC sharing |
| Intigriti |
Varies |
Coordinated |
GDPR compliance |
| YesWeHack |
Varies |
Program-specific |
Follow program brief |
Platform Docs: HackerOne | Bugcrowd | Intigriti | YesWeHack
Certifications Reference
| Certification |
Focus |
Ethics Requirement |
| OSCP |
Practical exploitation |
Legal boundaries, documentation |
| CEH |
Theory + practical |
Code of ethics required |
| GPEN |
Advanced pentesting |
Legal/ethical training |
| CREST/CHECK |
UK government schemes |
Background checks, conduct codes |
| PCI-DSS |
Cardholder data environments |
Qualified assessor, documentation |
References
Platforms: HackerOne Docs | Bugcrowd Docs | Disclose.io
Standards: PTES | OWASP WSTG | NIST SP 800-115
Legal: CFAA | CMA 1990
For detailed reference material, see the references/ directory.
1---2name: ethical-hacking-ethics3description: Legal and ethical guidelines for bug bounties, pentesting, and security research. Use when conducting authorized security testing.4---56# Ethical Hacking Ethics78Guidance for ethical hacking: bug bounties, pentesting, and security research.910## When to Use This Skill1112- Participating in bug bounty programs (HackerOne, Bugcrowd, Intigriti, YesWeHack)13- Conducting authorized penetration testing14- Performing security research on your own systems15- Evaluating legality of security testing activities16- Creating vulnerability disclosure reports1718## DO's - Always Do These1920### 1. Obtain Explicit Authorization21- Get written permission before testing any system you don't own22- Verify scope - know exactly what assets are authorized23- Document authorization - keep records of written consent24- Check safe harbor status - confirm program has safe harbor policy2526### 2. Follow Platform Rules of Engagement27- Read and understand program-specific rules before testing28- Adhere to testing timeframes specified by the program29- Use only authorized testing methods30- Report through official channels only31- **Human-in-the-loop required**: HackerOne requires human validation before submitting findings3233### 3. Practice Good Faith Security Research34Access systems solely for good-faith testing, avoid harm to individuals/public, use findings to improve security.3536### 4. Document Everything37- Keep detailed logs of all testing activities38- Capture evidence of vulnerabilities for reports39- Record timeline of discovery and reporting40- Document all communication with program owners4142### 5. Practice Responsible Disclosure43- Report vulnerabilities promptly through official channels44- Allow reasonable time for remediation before disclosure45- Coordinate disclosure with affected organization46- Follow platform-specific disclosure guidelines4748### 6. Respect Data Privacy49- Minimize data access to only what's necessary for testing50- Don't store or share personal data discovered during testing51- Report data exposure vulnerabilities without exploiting them52- Follow GDPR and local data protection laws5354## DON'Ts - Never Do These5556### 1. Never Test Without Authorization57- Never access systems without explicit permission58- Don't assume permission - verify scope explicitly59- Never test "out of scope" assets even if you find them60- Don't exceed authorized access - stay within defined boundaries6162**Legal risk**: CFAA (US) and CMA 1990 (UK) prohibit unauthorized access. Penalties include imprisonment.6364### 2. Never Cause Harm65- Don't modify or destroy data during testing66- Never create backdoors or permanent access mechanisms67- Don't disrupt services or availability68- Never exfiltrate data beyond what's necessary for proof6970### 3. Never Blackmail or Extort71- Never threaten to publish vulnerabilities for payment72- Don't use vulnerabilities for extortion73- Never demand bounties as condition for not publishing74- **Result**: Permanent platform ban + potential criminal charges7576### 4. Never Disclose Prematurely77- Don't publish vulnerability details before remediation78- Never share findings with third parties without permission79- Don't post proof-of-concept code publicly without coordination80- Never disclose program existence for private programs8182### 5. Never Use Deceptive Practices83- Don't impersonate authorized security researchers84- Never falsify vulnerability reports or evidence85- Don't misrepresent your identity or affiliation86- Never submit false reports for rewards8788### 6. Never Violate Privacy Laws89- Don't access personal data beyond testing scope90- Never store or share PII discovered during testing91- Don't bypass privacy controls beyond what's necessary92- Follow GDPR/data protection requirements9394## Scope Verification Checklist9596Before beginning any testing, verify:9798- [ ] **Authorization Document**: Written permission to test?99- [ ] **In-Scope Assets**: All authorized targets identified?100- [ ] **Out-of-Scope Assets**: Know what's explicitly prohibited?101- [ ] **Testing Methods**: Required or prohibited techniques?102- [ ] **Time Restrictions**: Designated testing windows?103- [ ] **Safe Harbor**: Program has and honors safe harbor policies?104- [ ] **Reporting Channel**: Know official vulnerability submission process?105- [ ] **Disclosure Policy**: Understand when/how you can publish findings?106107## Authorization Types108109| Type | Authorization | Safe Harbor | Notes |110|------|--------------|-------------|-------|111| **Bug Bounty** | Implicit via program | If offered | Follow program rules |112| **Pentest** | Written contract/SOW | Per contract | May require NDA |113| **VDP** | Program invitation | Varies | Usually no rewards |114| **CTF** | Competition rules | Within boundaries | Legal only in competition |115116### Authorization Best Practices117118- Always get it in writing - verbal authorization is insufficient119- Define scope explicitly - "everything except X" is too vague120- Specify time boundaries - testing windows and deadlines121- Include escalation procedures - what to do if issues arise122123## Responsible Disclosure Process1241251. **Validate** - Reproduce issue, document PoC, assess severity, check for duplicates1262. **Submit** - Use official channels, include description + steps + impact + remediation1273. **Coordinate** - Allow validation time, respond to questions, agree on timeline1284. **Verify** - Confirm fix applied, test that vulnerability is remediated1295. **Disclose** - Per agreed terms (coordinated, limited, full, or non-disclosure)130131## Red Lines - Violation Severity132133| Severity | Violations | Consequence |134|----------|-----------|-------------|135| **Critical** | Unauthorized access, data theft, service disruption, extortion, social engineering, physical breach | Permanent ban + legal action |136| **Severe** | Premature disclosure, prohibited techniques, third-party sharing, withholding details | Warnings + potential ban |137| **Minor** | Unintentional scope violation, incomplete reports, format issues | Education + warning |138139## When to Stop and Escalate140141### Stop Immediately If:142143| Situation | Action |144|-----------|--------|145| Outside scope | Halt, document, report, await guidance |146| Sensitive data exposure | Stop exploration, don't download, report immediately |147| Service disruption (or near) | Stop, document, report, await instructions |148| Asked to stop | Cease all activities, get written confirmation |149150### Escalate When:151152- **Legal questions** - Consult legal counsel153- **Disputes** - Request platform mediation154- **Unresponsive programs** - Follow platform escalation procedures155- **Criminal activity discovered** - Report to authorities156- **Safety concerns** - Escalate if human safety at risk157158## Legal Framework Summary159160| Jurisdiction | Law | Key Points |161|-------------|-----|------------|162| **US** | CFAA (18 U.S.C. § 1030) | Prohibits unauthorized access. Van Buren (2021) narrowed scope. |163| **UK** | CMA 1990 | No "good faith" defense. Section 1: up to 2 years. No safe harbor equivalent. |164| **EU** | GDPR | Legal basis required for data. Report breaches within 72 hours. |165166**Other jurisdictions**: Canada, Australia, Germany, France, Japan have similar laws. Research local laws before international testing.167168**References**: [CFAA](https://www.law.cornell.edu/uscode/text/18/1030) | [CMA](https://www.cps.gov.uk/prosecution-guidance/computer-misuse-act) | [GDPR](https://gdpr.eu/)169170## Standards Compliance171172| Standard | Use Case | Reference |173|----------|----------|-----------|174| **PTES** | General pentesting (7 stages) | [pentest-standard.org](http://www.pentest-standard.org/) |175| **OWASP WSTG** | Web application testing | [owasp.org/wstg](https://owasp.org/www-project-web-security-testing-guide/) |176| **NIST SP 800-115** | Government/compliance testing | [csrc.nist.gov](https://csrc.nist.gov/pubs/sp/800/115/final) |177| **OSSTMM** | Metrics-based security testing | [isecom.org](https://www.isecom.org/) |178179## Platform Quick Reference180181| Platform | Safe Harbor | Disclosure | Key Requirement |182|----------|-------------|------------|-----------------|183| **HackerOne** | Gold Standard (GSSH) | Program-specific | Human-in-the-loop validation |184| **Bugcrowd** | Disclose.io framework | Coordinated/Custom/Non | Secure POC sharing |185| **Intigriti** | Varies | Coordinated | GDPR compliance |186| **YesWeHack** | Varies | Program-specific | Follow program brief |187188**Platform Docs**: [HackerOne](https://docs.hackerone.com/) | [Bugcrowd](https://docs.bugcrowd.com/) | [Intigriti](https://www.intigriti.com/) | [YesWeHack](https://www.yeswehack.com/)189190## Certifications Reference191192| Certification | Focus | Ethics Requirement |193|--------------|-------|-------------------|194| **OSCP** | Practical exploitation | Legal boundaries, documentation |195| **CEH** | Theory + practical | Code of ethics required |196| **GPEN** | Advanced pentesting | Legal/ethical training |197| **CREST/CHECK** | UK government schemes | Background checks, conduct codes |198| **PCI-DSS** | Cardholder data environments | Qualified assessor, documentation |199200## References201202**Platforms**: [HackerOne Docs](https://docs.hackerone.com/) | [Bugcrowd Docs](https://docs.bugcrowd.com/researchers/) | [Disclose.io](https://disclose.io/)203204**Standards**: [PTES](http://www.pentest-standard.org/) | [OWASP WSTG](https://owasp.org/www-project-web-security-testing-guide/) | [NIST SP 800-115](https://csrc.nist.gov/pubs/sp/800/115/final)205206**Legal**: [CFAA](https://www.law.cornell.edu/uscode/text/18/1030) | [CMA 1990](https://www.cps.gov.uk/prosecution-guidance/computer-misuse-act)207208For detailed reference material, see the `references/` directory.