ethical-hacking-ethics
Legal and ethical guidelines for bug bounties, pentesting, and security research. Use when conducting authorized security testing.
What this skill does
# 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 Document**: Written permission to test? - [ ] **In-Scope Assets**: All authorized targets identified? - [ ] **Out-of-Scope Assets**: Know what's explicitly prohibited? - [ ] **Testing Methods**: Required or prohibited techniques? - [ ] **Time Restrictions**: Designated testing windows? - [ ] **Safe Harbor**: Program has and honors safe harbor policies? - [ ] **Reporting Channel**: Know official vulnerability submission process? - [ ] **Disclosure Policy**: Understand when/how you can publish findings? ## 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 1. **Validate** - Reproduce issue, document PoC, assess severity, check for duplicates 2. **Submit** - Use official channels, include description + steps + impact + remediation 3. **Coordinate** - Allow validation time, respond to questions, agree on timeline 4. **Verify** - Confirm fix applied, test that vulnerability is remediated 5. **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](https://www.law.cornell.edu/uscode/text/18/1030) | [CMA](https://www.cps.gov.uk/prosecution-guidance/computer-misuse-act) | [GDPR](https://gdpr.eu/) ## Standards Compliance | Standard | Use Case | Reference | |----------|----------|-----------| | **PTES** | General pentesting (7 stages) | [pentest-standard.org](http://www.pentest-standard.org/) | | **OWASP WSTG** | Web application testing | [owasp.org/wstg](https://owasp.org/www-project-web-security-testing-guide/) | | **NIST SP 800-115** | Government/compliance testing | [csrc.nist.gov](https://csrc.nist.gov/pubs/sp/800/115/final) | | **OSSTMM** | Metrics-based security testing | [isecom.org](https://www.isecom.org/) | ## Platform Quick Reference | Platform | Safe Harbor | Disclosure | Key Requirement | |----------|-------------|------------|-----------------| | **HackerOne** | Gold Standard (GSSH) | Program-specific | Human-in-the-loop validation | | **Bugcrowd** | Dis
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.