Address CodeRabbit review: legal guardrails, mkdir, filename consistency, HIBP headers

This commit is contained in:
juliosuas
2026-03-17 17:13:52 -06:00
committed by mukul975
parent 788404ca75
commit 16201a7e60
@@ -44,8 +44,21 @@ license: Apache-2.0
## Workflow
### Legal & Ethical Requirements
- Obtain documented written authorization before any investigation
- Establish lawful basis for data processing (law enforcement, corporate policy, etc.)
- Define PII retention limits and data handling procedures
- Comply with local privacy regulations (GDPR, CCPA, etc.)
### Phase 1 — Multi-Source OSINT Collection
0. **Create the working directory for all OSINT outputs:**
```bash
mkdir -p /tmp/osint
```
1. **Enumerate usernames across platforms with Sherlock:**
```bash
@@ -78,6 +91,7 @@ license: Apache-2.0
```bash
curl -s -H "hibp-api-key: ${HIBP_KEY}" \
-H "User-Agent: OSINT-Correlation-Skill" \
"https://haveibeenpwned.com/api/v3/breachedaccount/target@example.com" \
-o /tmp/osint/breach-results.json
```
@@ -94,7 +108,7 @@ license: Apache-2.0
findings = []
# Normalize Sherlock CSV results
sherlock_path = "/tmp/osint/sherlock-results.csv"
sherlock_path = "/tmp/osint/sherlock-results.txt"
if os.path.exists(sherlock_path):
with open(sherlock_path) as f:
for row in csv.DictReader(f):