feat(stealth-diagnostic): bundle a stealth diagnostic with the engine#7
Merged
Conversation
Add `mithwire stealth-diagnostic` (and `mithwire.stealth_diagnostic()` / `run_stealth_diagnostic()`): a diagnostic that drives a bare `mithwire.start()` browser across public bot-detection sites (sannysoft, deviceandbrowserinfo, CreepJS, ipapi) plus a deterministic WebRTC leak probe, then grades the result PASS/WARN/FAIL with short, factual hints for well-established tells (exposed webdriver, headless UA, browser-vs-egress timezone mismatch, WebRTC real-IP leak, datacenter IP). It reveals how an install looks and supports an identify -> adjust -> re-verify loop (re-run with --browser-arg to confirm a fix); it does not auto-fix. - mithwire/stealth_diagnostic/probes.py: readiness-gated JS probes (single source of truth; ported from the mithwire-mcp baseline harness) + SITES - mithwire/stealth_diagnostic/report.py: signal flattening, verdict + hints - mithwire/stealth_diagnostic/runner.py: browser-driving runner + entrypoints - mithwire/__main__.py + [project.scripts]: `mithwire stealth-diagnostic` CLI - tests/test_stealth_diagnostic_report.py: browser-free grading-logic tests Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mithwire stealth-diagnosticCLI andmithwire.stealth_diagnostic()/run_stealth_diagnostic()API: a diagnostic that drives a baremithwire.start()browser across public bot-detection sites (sannysoft, deviceandbrowserinfo, CreepJS, ipapi) plus a deterministic WebRTC leak probe.webdriver, headless UA, browser-vs-egress timezone mismatch, WebRTC real-IP leak, datacenter IP). It reveals how an install looks and supports an identify → adjust → re-verify loop (--browser-argto apply a fix and re-run); it does not auto-fix.mithwire/stealth_diagnostic/probes.pyis the single source of truth for the shared JS probes (ported from the mithwire-mcp baseline harness), so the JS can't drift between the engine and the MCP harness.Test plan
pytest tests/test_stealth_diagnostic_report.py— 10 browser-free grading-logic tests passpython -m mithwire stealth-diagnosticlive on macOS → PASS in ~17s (webdriver hidden, 8/8 sannysoft, 0 CreepJS lies, TZ match, no WebRTC leak)import mithwireexposesstealth_diagnostic/run_stealth_diagnostic; CLI--helprendersMade with Cursor