SKILL.md
SKILL.mdBrowse 56 files
6,299 tokens
25,261 bytes
Token encoding: o200k_base
Snapshot 24fd22b
1---2name: unbroker3description: Autonomously remove your info from data-broker sites.4version: 1.0.05author: SHL0MS (github.com/SHL0MS)6license: MIT7platforms: [linux, macos, windows]8prerequisites:9 commands: [python]10metadata:11 hermes:12 tags: [privacy, data-broker, opt-out, ccpa, gdpr, security, doxxing]13 category: security14 related_skills: [google-workspace, agentmail, himalaya, scrapling, osint-investigation]15 homepage: https://github.com/NousResearch/hermes-agent16---17 18# unbroker19 20Find where a person's personal information (name, addresses, phone, email, relatives) is exposed on21data brokers and people-search sites, then remove it - automatically where possible, with guided22human steps only where a site demands a CAPTCHA, government ID, phone call, or fax. Manages multiple23people independently. It does **not** defeat anti-bot systems, does **not** act on anyone without24recorded consent, and does **not** remove public records (voter/property/court) or accounts the25person controls.26 27The Python CLI (`scripts/pdd.py`) owns the deterministic state - config, dossiers + consent, the28broker database, tier planning, the ledger, drafts, reports, **email sending (SMTP), verification-link29polling (IMAP), and the autonomous action queue (`next`)**. You (the agent) do the scanning and30form-driving with native tools: `web_extract` and `browser_navigate` for searching and web forms, and31`cronjob` for recurring re-scans.32 33## Autonomy contract34 35This skill is designed to run **hands-off**. After intake (+ recorded consent) there are exactly TWO36legitimate human touchpoints: (1) the intake conversation itself, and (2) ONE consolidated human-task37digest at the end of the run (`$PDD tasks`). Between those:38 39- **Never ask the operator to choose configuration.** `$PDD setup --auto` detects capabilities and40 picks the most autonomous valid config itself.41- **Never pause before individual submissions** when `autonomy=full` (the default): the consent42 recorded at intake is standing authorization for T0-T2 opt-outs. (`autonomy=assisted` restores43 per-submission confirmation for cautious operators - honor `confirm_first` flags in `next` output.)44- **Never interrupt the run for human-only work.** Record it (`record ... human_task_queued45 --reason "..."`) and keep going; it all surfaces once in the final digest.46- **Drive the whole run as a loop over `$PDD next <subject>`** - it returns the exact ordered actions47 to take right now (scan, poll verification, re-check, opt out parents-first, requeue blocked), plus48 the human digest. Execute every action, record outcomes, re-run `next`, repeat until49 `done_for_now`. Then present the digest, report, and schedule the cron.50 51The hard limits that autonomy never overrides: no acting without recorded consent, no disclosure52beyond `disclosure_fields`, no CAPTCHA/anti-bot bypass, and `confirmed_removed` only after a53verifying re-scan.54 55## When to Use56 57- "Remove my (or my family member's) data from data brokers / people-search sites."58- "Opt me out", "delete me from Spokeo/Whitepages/etc.", "clean up after a doxxing."59- "Set up recurring privacy monitoring" (brokers re-list people).60- Checking which brokers still expose someone and why.61 62## Prerequisites63 64- `python` (stdlib only; no extra packages needed for the core engine).65- **Optional upgrades** (the skill works zero-config without these; `setup --auto` turns on every66 one it detects, reading credentials from the shell env **and from `$HERMES_HOME/.env`** so keys67 Hermes already loads for its own tools are picked up without re-exporting - each one converts a68 class of human tasks into agent actions):69 - **Cloud browser (recommended default): `BROWSERBASE_API_KEY`.** `setup --auto` selects it70 whenever the key is present, and it is the intended baseline: a real residential-IP cloud71 browser **clears soft/managed CAPTCHAs (Cloudflare Turnstile, hCaptcha/reCAPTCHA checkbox) as72 normal operation**, so those brokers stay automated (T1) instead of becoming human tasks. This73 is not CAPTCHA "solving" - no solver service, no fingerprint spoofing; only interactive/behavioral74 ("hard") challenges the browser genuinely cannot pass fall back to a human task. Without the key,75 the plain agent browser is used and soft-CAPTCHA brokers drop to T2 (human).76 - Email automation, two credential-free-or-not options:77 - **Browser mode (no password): `setup --email-mode browser`.** The agent sends opt-out/CCPA78 emails and opens verification links through the operator's **logged-in webmail** using79 `browser_*` tools. Nothing is stored. This requires Hermes to be pointed at the operator's own80 logged-in browser, **NOT** a cloud browser: a headless cloud browser (Browserbase) holds no81 webmail session and is itself Cloudflare/DataDome-gated on webmail and on session-bound broker82 gates (e.g. PeopleConnect guided-mode). Drive the operator's real Chrome over CDP - launch83 `chrome --remote-debugging-port=9222 --user-data-dir="$HOME/.hermes/chrome-debug"` (a dedicated84 debug profile signed into the webmail once, not the Default profile) and connect the browser85 tools to `127.0.0.1:9222`. **`$PDD cdp` launches this for you** (finds Chrome/Chromium/Brave/Edge,86 starts it detached on the dedicated profile, prints the CDP endpoint; `--check` to test, `--print`87 for the command). See `references/methods.md` -> "Browser backends: scan vs execute".88 Falls back to drafts for an email if the inbox isn't reachable.89 - **SMTP/IMAP (stored creds): `EMAIL_ADDRESS` + `EMAIL_PASSWORD`** (+ `EMAIL_SMTP_HOST` /90 `EMAIL_IMAP_HOST` for non-mainstream providers; gmail/outlook/yahoo/icloud/fastmail inferred).91 The CLI sends via `send-email` and reads verify links via `poll-verification`. The `agentmail`92 skill (per-broker aliases) also counts.93 - Google Sheets tracker: the `google-workspace` skill.94 - The `scrapling` skill for stealth/Cloudflare-protected pages.95 96## How to Run97 98Run everything through the `terminal` tool. From this skill's directory:99 100```bash101PDD="python scripts/pdd.py"102```103 104The engine stores data under `$PDD_DATA_DIR` (default `$HERMES_HOME/unbroker`), written105`0600`. Run via `terminal`, **not** `execute_code` (that sandbox scrubs env and redacts output, which106breaks reading the dossier).107 108## Quick Reference109 110| Command | Purpose |111|---|---|112| `$PDD setup --auto` | **Autonomous setup**: detect capabilities, pick the most autonomous valid config (no questions) |113| `$PDD doctor` | Readiness check: config, broker count, and which upgrades are on/available |114| `$PDD cdp [--check] [--print] [--port N]` | Launch/detect the operator's Chrome over CDP for Phase-2 browser + webmail (dedicated debug profile; the reliable way to send webmail and clear session-bound gates) |115| `$PDD intake --full-name "..." [--alias ...] [--email ... --phone ...] [--city --state] [--prior-location "City,ST"] --consent` | Create a consenting subject; captures aliases + multiple emails/phones + prior locations; prints `subject_id` |116| `$PDD next <subject>` | **The autonomous loop driver**: ordered agent actions right now + human digest + `next_wake_at` |117| `$PDD brokers [--priority crucial]` | List the people-search broker database (curated + live) |118| `$PDD refresh-brokers` | Pull the latest BADBOOL people-search list **and the CA Data Broker Registry** (`next` requeues this automatically when the cache is stale) |119| `$PDD registry [--search NAME]` | State registry coverage (CA ~545 ingested; VT/OR/TX portals surfaced); the DROP/email lane, not scanned |120| `$PDD drop <subject> [--filed]` | **The one-shot legal lever**: one CA DROP request deletes from ALL registered brokers; `--filed` records it |121| `$PDD plan <subject> [--priority crucial]` | Per-broker tier + method + `search_vectors` + the exact fields to disclose |122| `$PDD plan <subject> --batch` | **Reduce view**: overlays ledger state, groups brokers by next action (unscanned/found/indirect/blocked/in_progress/done), collapses ownership clusters, **orders `found` cluster-parents-first + emits a tailored `parent_playbook`**, prints `next_actions` |123| `$PDD fanout <subject> [--priority crucial] [--size 5]` | Batch brokers into parallel `delegate_task` subagents (auto for large runs; batches of 5 - 8+ time out) |124| `$PDD record <subject> <broker> <state> [--found true] [--evidence JSON] [--disclosed F --channel C] [--reason "..."]` | Update the ledger (validated state machine); **auto-stamps `next_recheck_at`** |125| `$PDD show <subject> <broker>` | Read back a case's recorded state + evidence + disclosure log (so the parent re-verifies a subagent's `found` without re-deriving the listing URL) |126| `$PDD send-email <subject> <broker> --listing <url> [--kind ccpa_indirect ...]` | Render + record the request (recipient locked to the broker's own address). **browser** mode returns a `compose` payload to send via webmail (no password); **programmatic** mode SMTP-sends |127| `$PDD verify-link <subject> <broker> --text '<body>'` | **browser mode**: extract a broker's verification link from webmail text you read (anti-phishing scored) |128| `$PDD poll-verification <subject> [--broker <id>]` | **programmatic mode**: poll IMAP for verification links (anti-phishing scored); auto-advances `submitted → verification_pending` |129| `$PDD render-email <subject> <broker> --listing <url>` | Draft only (fallback when no email mode is configured) |130| `$PDD due <subject>` | Cases whose recheck window arrived (the cron re-scan queue) |131| `$PDD tasks <subject>` | ONE consolidated human-task digest (present at END of run) |132| `$PDD status <subject>` | Markdown status report |133| `$PDD report <subject> --sheets` | Rows for the Google Sheets tracker |134 135## Batch operation (two-phase: crawl-all, then delete)136 137For anything past a couple of brokers, run this as **map → reduce → act**, not broker-by-broker:138 139- **Phase 1 - DISCOVER (read-only, parallel, idempotent).** Crawl *every* broker first and record a140 verdict for each (`found` / `not_found` / `indirect_exposure` / `blocked`). Scanning has no side141 effects, so it is safe to parallelize and retry. Getting the full exposure map *before* acting is142 what unlocks cluster dedup and prioritization below. **Default: the parent drives `web_extract`143 probes directly** - most people-search sites render name/phone/address results as static HTML that144 `web_extract` reads in seconds. Escalate to `browser_*` only for the few JS-only sites, and to145 `delegate_task` subagents only for genuinely *reasoning*-heavy work (large-scale namesake/relative146 disambiguation). **Do NOT hand a browser-toolset subagent a big list of brokers to crawl** - in the147 field this timed out repeatedly (600s, ~5-6 brokers each, no summary) because browser navigation is148 heavy; the ledger writes that survived came at 10x the cost of parent `web_extract`. A `blocked`149 (DataDome/Cloudflare/`antibot`) site is *not* a subagent job either: record `blocked` and requeue it150 for a stealth/cloud browser (Browserbase) pass. Subagent reports are self-reports - the parent151 re-fetches key URLs to confirm a `found` before trusting it (this cuts both ways: it caught a real152 listing the parent had wrongly assumed was a false positive).153- **REDUCE - `$PDD plan <subject> --batch`.** Collapses the crawl into a phase-oriented plan: groups by154 next action, **collapses ownership clusters** (a parent removal that clears children is ONE action,155 not N - e.g. one Intelius/PeopleConnect suppression covers Truthfinder/Instant Checkmate/US Search/…),156 and prints `next_actions`. `phase` is `discover` while anything is unscanned, else `delete`.157- **Phase 2 - DELETE (sequential, irreversible).** Work the reduced groups **parents first**:158 `plan --batch` orders the `found` group cluster-parents-first (most children first) and emits a159 `parent_playbook` with tailored, ordered steps per parent - follow that order and those steps160 (full recipes in `references/methods.md` → "Ownership clusters - DO PARENTS FIRST"). Do the161 cluster parents (skipping the covered children), **re-scan each parent's children after it confirms**162 (they usually drop out), then the standalone listings; send the `indirect_exposure` cases as163 CCPA/GDPR delete-my-PII emails (`send-email --kind ccpa_indirect`), and defer `blocked` to the164 stealth-browser pass. Opt-outs hit CAPTCHAs, email-verification loops, and session binding - work165 them **one at a time, carefully** (this is the opposite of fan-out), but do NOT stop to ask166 permission per submission in `autonomy=full`; in `assisted`, confirm each one. **Usually prefer167 deletion over suppression** where a broker offers both (Spokeo/BeenVerified) - but follow the168 record's `deletion.prefer`: **PeopleConnect is the exception** (`prefer: false`), where deleting169 your user data removes your suppressions and does not stop public-records re-listing, so you170 suppress-and-maintain instead.171- **Blind opt-out is the DEFAULT, not a fallback.** Submit an opt-out/deletion on **every site with an172 accessible removal channel, even when a listing was not first confirmed** - it discloses only the173 subject's own identifiers to the broker's own official channel, so it does not violate174 least-disclosure. Two corollaries: (1) a guided flow that matches email+DOB+name and says "no results"175 is a **stronger `not_found`** than any scrape - the opt-out flow doubles as the search; (2) when a form176 is automation-hostile (hard CAPTCHA, Cloudflare/DataDome, slide-to-verify slider), **default to the177 broker's cited rights-request email** (name+state+contact-email only) rather than recording `blocked`.178 CAPTCHA policy: never defeat behavioral/token/slider challenges; OK to read a static distorted-text or179 plain-arithmetic CAPTCHA on the subject's own opt-out, but stop if the site rejects the whole180 submission after a correct answer (it is fingerprinting the automation). Third-party/indirect records181 are the exception - still confirm those before acting. Per-site game plans + the meta-search no-op182 skip-list are in `references/site-playbooks.md`; the full policy is in `references/methods.md`.183- **PeopleConnect delete-wipes-suppression (permanent rule).** A PeopleConnect *deletion* wipes the184 suppression and the subject re-lists across the whole affiliate cluster. If a "Your deletion request185 for PeopleConnect.us is Complete" email ever appears, the suppression is gone -> **re-run suppression186 and re-verify** the Control step reads "suppressed". Never leave this cluster on a completed deletion187 (see `references/brokers/intelius.json`).188 189Subagent reports are self-reports: the parent re-verifies key claims (listing URLs, match basis) before190recording `found` and before any deletion.191 192## Procedure (the autonomous loop)193 1941. **Setup (once, no questions).** Run `$PDD setup --auto` - it detects capabilities and configures195 the most autonomous valid combination itself (programmatic email when `EMAIL_*` creds exist,196 Browserbase when its key exists, `age` encryption when the binary exists, `autonomy=full`). Then197 `$PDD doctor` and show the operator the readiness output **for information, not as a question** -198 proceed immediately. Mention what would unlock more automation (e.g. email creds) but do not wait.1992. **Intake + consent (the ONE human conversation).** `$PDD intake ...` with `--consent` (and200 `--consent-method`). Without consent the engine refuses to plan or act. Collect everything in one201 pass - names/aliases, current + prior cities, emails, phones - so you never have to come back with202 questions. For California subjects, also read `references/legal/drop.md`: `next` will surface a203 `drop_submit` one-shot that deletes from every registered broker (~545) at once, which is the204 single highest-leverage action. File it, then `drop <subject> --filed`. For non-CA subjects the205 registry is covered by targeted CCPA/GDPR emails (`registry --search`, then `send-email`); the206 people-search sites are worked directly in either case.2073. **Drain the queue.** Loop:208 209 ```210 while true:211 q = $PDD next <subject>212 if q.actions is empty: break213 execute EVERY action in order; record each outcome via $PDD record214 ```215 216 `next` emits, in order: `refresh_brokers` (stale cache), `fanout_scan`/`scan_inline` (Phase 1217 crawl - see step 4), `poll_verification` (in-flight email confirmations), `verify_removal` (due218 re-checks), `optout_web_form`/`optout_email_send` (Phase 2, parents-first with playbook steps),219 `indirect_email_send`, and `stealth_rescan`. Human-only work never appears as an action - it220 accumulates in `q.human_digest`. In `autonomy=full`, execute actions without pausing; honor221 `confirm_first` in `assisted` mode.2224. **Scanning (when `next` says so).** For `fanout_scan`: run `$PDD fanout <subject>` and **spawn one223 `delegate_task` subagent per `batch`, in parallel, passing that batch's ready-made `brief`** - do224 not scan all brokers yourself sequentially. For `scan_inline`: scan the few brokers yourself.225 Either way, each broker gets **every** `search_vectors` entry via the `references/methods.md`226 ladder (`web_extract` → `site:` probe → `browser_navigate` → `scrapling`), a 404 is INCONCLUSIVE227 (not `not_found`), `blocked` is recorded when `antibot` is set and no stealth browser is available,228 and subject vs namesake/relative is confirmed before recording:229 `$PDD record <subject> <broker> <found|not_found|indirect_exposure|blocked> --found <bool> --evidence '{"listing_urls":[...]}'`.230 The parent re-verifies key `found` claims from subagents before trusting them.2315. **Opt-outs (when `next` says so).** Actions come pre-ordered parents-first with `steps` from each232 broker record's own `optout.playbook` (field-verified; cluster parents like PeopleConnect,233 Whitepages, BeenVerified, Spokeo have exact, live-checked recipes). **Deletion usually beats234 suppression**: when an action carries `prefer_deletion`, complete the record's DELETION lane, not235 just the hide-my-listing flow. When it carries `prefer_suppression` instead (**PeopleConnect** -236 deleting removes your suppressions and does not stop re-listing), do the suppression flow and keep237 it maintained; use their Delete button only for a deliberate data-purge. Per method:238 - **web_form** → drive `optout_url` with `browser_navigate`/`browser_type`/`browser_click`, submit239 only `disclosure_fields`, screenshot the confirmation, then the action's `after` record command.240 Playbooks may end with a right-to-delete `send-email` follow-up - do it (full erasure, not just241 listing suppression).242 - **email** → `$PDD send-email <subject> <broker> --kind <ccpa|gdpr|generic> --to <addr>243 --listing <url>` records + discloses in one step (recipient locked to addresses the broker244 record declares; `next` picks the kind from residency - never claim CCPA/GDPR for someone who245 can't). In **browser** mode it returns a recipient-locked `compose` payload: compose a new246 message to `compose.to` with `compose.subject`/`compose.body` exactly in the operator's webmail247 via `browser_*` and send (no password); in **programmatic** mode it SMTP-sends. `next` also248 routes human-gated forms (phone-callback/gov-ID) through a broker's deletion email when one249 exists - the **rescue lane** (verified Whitepages pattern). Draft-only falls back to250 `render-email` + a digest entry.251 - **captcha** → soft/managed challenges clear automatically on the default cloud browser (proceed252 as normal); only a hard interactive/behavioral challenge it can't pass is recorded `blocked`253 (requeued for the stealth/operator-browser pass). Never a solver service.254 - **phone_callback / account / gov_id / fax / mail / voice (T3)** *without a deletion email* →255 never an agent action; `next` already routed these to the digest. Record them:256 `$PDD record <subject> <broker> human_task_queued --reason "..."`.257 6. **Verification (when `next` says so).** In **programmatic** mode `$PDD poll-verification <subject>`258 finds arrived confirmation links via IMAP (anti-phishing scored, auto-advances state). In259 **browser** mode, open the broker's confirmation email in the operator's webmail and run260 `$PDD verify-link <subject> <broker> --text '<body>'` to score the link. Either way **open the261 link in the same browser** (several brokers bind the verification session to the browser that262 opens it), finish the flow, then record `awaiting_processing`. `confirmed_removed` ONLY after a263 verifying re-scan shows the listing gone - never off the submission flow's own confirmation page.2647. **Wrap up (once per run).** When `next` returns no actions: present `$PDD tasks <subject>` (the265 consolidated human digest) if non-empty, then `$PDD status <subject>`; if the Sheets tracker is266 on, append `$PDD report <subject> --sheets` rows via the `google-workspace` skill.2678. **Schedule the next wake-up.** `next` returns `next_wake_at` (earliest due re-check). Create ONE268 `cronjob` that re-runs this skill's loop for the subject (a prompt like: *"run the269 unbroker loop for <subject_id>: `$PDD next` and execute all actions"*). Processing270 windows, verification polls, and reappearance sweeps all flow through the same queue, so the case271 keeps advancing with zero human attention.272 273## Pitfalls274 275- **Never disclose more than the broker already shows.** Submit only `disclosure_fields`. The engine276 never volunteers SSN/ID numbers; you must not either.277- **No consent, no action.** The engine enforces this; do not work around it to "research" a third party.278- **`send-email` is idempotent + rate-limited.** It refuses to re-send a case already `submitted`279 or beyond (use `--force` only if a genuine re-send is needed), and SMTP sends are paced by280 `email_min_interval_seconds` (default 20s) with retry/backoff. Do not loop it to "make sure" -281 a successful SMTP handoff is not proof of delivery; the due-queue re-scan is the real confirmation.282- **Ledger writes are locked.** Concurrent runs (cron + manual) serialize safely; if you ever see a283 lock timeout, another run is mid-write - let it finish, don't delete the `.lock` by hand.284- **Autonomy ≠ improvisation.** Full autonomy means not *asking* between steps; it does not loosen any285 gate. If a broker demands MORE than the planned `disclosure_fields` mid-flow, stop that case and286 queue it (`human_task_queued --reason`) rather than deciding alone to disclose extra PII.287- **Don't interrupt the run with questions.** Config choices are `setup --auto`'s job; human-only work288 goes to the digest. The only mid-run question that's ever warranted is a missing-identity fact that289 blocks scanning (e.g. no city at all) - and that should have been collected at intake.290- **Use `terminal`, not `execute_code`** for `pdd.py` (secret scrubbing + output redaction break it).291- **Dossiers are plaintext by default** (JSON, `0600` under `HERMES_HOME`). For at-rest encryption run292 `$PDD setup --encryption age` - it generates a local `age` key and encrypts dossiers + ledgers (the293 audit log holds field names only and stays plaintext). It guards casual/backup/commit exposure, not294 a full-`HERMES_HOME` read; set `PDD_AGE_IDENTITY` to a separate volume for real key separation.295 `$PDD doctor` shows whether encryption is *actually* engaged (not just whether `age` is installed).296- **"Hidden from free search" ≠ deleted.** Only mark `confirmed_removed` after verifying the record is297 actually gone; note paid-tier retention in the report.298- **Soft CAPTCHAs clear by default; don't fight the hard ones.** The default cloud browser passes299 managed/soft challenges as normal operation (those brokers stay T1). For a hard interactive one it300 genuinely can't pass, record `blocked` and let the stealth/operator-browser pass take it - never a301 third-party solver service or fingerprint spoofing.302- **Broker pages change.** If a flow breaks, `$PDD record ... blocked` and flag the broker file in303 `references/brokers/` for re-verification instead of guessing.304- **Verify non-field-verified records before submitting.** `confidence: auto` records came from305 parsing BADBOOL (read `optout.notes`/`optout.links`, confirm the real opt-out URL). `confidence:306 documented` records (several people-search sites) carry the correct published opt-out URL but have307 **not** been field-verified (they 403 datacenter IPs), so confirm the live flow via the operator's308 residential browser on first use, then set `last_verified`. Field-verified curated records (no309 `confidence`, e.g. the cluster parents) have checked mechanics and take precedence.310 311## Verification312 313- `scripts/run_tests.sh tests/skills/test_unbroker_skill.py` (hermetic; no network), or the314 dependency-free runner `python tests/skills/test_unbroker_skill.py`.315- Dry run: `$PDD setup --auto && $PDD doctor && SID=$($PDD intake --full-name "Test Person"316 --email t@example.com --consent | python -c 'import sys,json;print(json.load(sys.stdin)["subject_id"])')317 && $PDD next "$SID"` and confirm a readiness summary plus an ordered action queue.318 Discovery context
Discovered by repository scan. No exact path reference found in the snapshot’s root AGENTS.md.