Skip to content

feat(stealth-diagnostic): bundle a stealth diagnostic with the engine#7

Merged
codeisalifestyle merged 1 commit into
mainfrom
feat/stealth-diagnostic
Jun 20, 2026
Merged

feat(stealth-diagnostic): bundle a stealth diagnostic with the engine#7
codeisalifestyle merged 1 commit into
mainfrom
feat/stealth-diagnostic

Conversation

@codeisalifestyle

Copy link
Copy Markdown
Owner

Summary

  • Adds mithwire stealth-diagnostic CLI and mithwire.stealth_diagnostic() / run_stealth_diagnostic() API: a diagnostic that drives a bare mithwire.start() browser across public bot-detection sites (sannysoft, deviceandbrowserinfo, CreepJS, ipapi) plus a deterministic WebRTC leak probe.
  • 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 (--browser-arg to apply a fix and re-run); it does not auto-fix.
  • mithwire/stealth_diagnostic/probes.py is 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 pass
  • python -m mithwire stealth-diagnostic live on macOS → PASS in ~17s (webdriver hidden, 8/8 sannysoft, 0 CreepJS lies, TZ match, no WebRTC leak)
  • import mithwire exposes stealth_diagnostic / run_stealth_diagnostic; CLI --help renders

Made with Cursor

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>
@codeisalifestyle codeisalifestyle merged commit 2070b44 into main Jun 20, 2026
1 check passed
@codeisalifestyle codeisalifestyle deleted the feat/stealth-diagnostic branch June 20, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant