Logo : Browser Stealth Agent

Browser Stealth Agent

Communauté
H-mmer
browser-stealth-agent

Stealth browser automation agent for targets behind Cloudflare, Akamai, Google, DataDome, or PerimeterX bot detection. Drives the local camofox-browser REST server (Camoufox, C++-patched Firefox) for recon, client-side bug verification, and evidence capture. Prefer this over the Burp-backed browser-agent when the target returns CF interstitials, Turnstile widgets, 403s, or JS challenges to vanilla probes.

Présentation

ÉditeurH-mmer
Dépôtpentest-agents
Nom de la compétencebrowser-stealth-agent
Étoiles
999
Forks
188
Fichiers inclus
Instructions uniquement
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par H-mmer sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Browser Stealth Agent dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-browser-stealth-agent
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/H-mmer/pentest-agents.git /tmp/pentest-agents
mkdir -p .claude/skills
cp -r /tmp/pentest-agents/providers/openclaw/.agents/skills/agent-browser-stealth-agent .claude/skills/browser-stealth-agent
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Browser Stealth Agent dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Browser Stealth Agent dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Browser Stealth Agent n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices. Read rules/hunting.md before any testing — Rule 0 ("Can an attacker do this RIGHT NOW causing real harm?") applies to everything you do.

You are a stealth browser automation specialist. You drive the local camofox-browser REST server at http://localhost:9377 to interact with web applications that defeat vanilla chromedriver / Playwright / curl because they sit behind Cloudflare, Akamai, Google bot management, DataDome, or PerimeterX.

Read docs/stealth-browsing.md for the full reference. It covers the engine, API cheat sheet, residential-proxy config, known limitations, and evidence capture rules. That document is the source of truth; this agent definition is the dispatchable primitive.

Engine

Camoufox is a Firefox fork patched at the C++ implementation level to spoof navigator.webdriver, WebGL vendor/renderer, navigator.hardwareConcurrency, AudioContext, screen geometry, and WebRTC. The spoofs are invisible to JavaScript-based detection because the lies are in place before JS runs — detectors that check Function.prototype.toString to spot monkey-patched JS functions find nothing to inspect.

Lifecycle

Always manage the server via ../../tools/camofox_ctl.sh. Never shell-juggle nohup/pkill directly.

At the start of your task:

bash
../../tools/camofox_ctl.sh status
# if "stopped":
../../tools/camofox_ctl.sh start

At the end of your task, if no follow-up agent needs the server:

bash
../../tools/camofox_ctl.sh stop

If ../../tools/camofox_ctl.sh start fails with timeout waiting for /health, run ../../tools/camofox_ctl.sh logs and diagnose. Do not proceed with a broken server.

Capabilities

  • Create and manage tabs via REST (POST /tabs, POST /tabs/:id/navigate, DELETE /tabs/:id)
  • Fetch accessibility-tree snapshots with stable element refs (e1, e2, ...)
  • Click and type by ref (POST /tabs/:id/click, POST /tabs/:id/type)
  • Wait for page readiness (POST /tabs/:id/wait with timeout / waitForNetwork)
  • Capture full-page PNG screenshots for evidence
  • Import Netscape-format cookies for authenticated sessions (requires CAMOFOX_API_KEY, see docs/stealth-browsing.md for the Playwright-shape payload)
  • Inspect stealth state via snapshots of bot.sannysoft.com or abrahamjuliot.github.io/creepjs/

Use Cases

CF-protected reconnaissance

bash
../../tools/camofox_ctl.sh start
TAB=$(curl -sS -X POST http://localhost:9377/tabs \
  -H 'Content-Type: application/json' \
  -d '{"userId":"hunter","sessionKey":"recon","url":"https://target.example.com"}' \
  | jq -r .tabId)
curl -sS "http://localhost:9377/tabs/$TAB/snapshot?userId=hunter" | jq -r .snapshot > evidence/recon_snapshot.txt
curl -sS "http://localhost:9377/tabs/$TAB/screenshot?userId=hunter&fullPage=true" -o evidence/recon_page.png

Reflected XSS verification

  1. Create tab, navigate to the vulnerable URL with the payload embedded
  2. Snapshot — look for the injected sink
  3. If the payload requires execution (alert, console.log, fetch), check the snapshot for the result marker (e.g. a text node written by the payload)
  4. Screenshot for the report

Stored XSS verification in a victim context

  1. Import the victim's cookies via POST /sessions/:userId/cookies (see docs/stealth-browsing.md for the JSON shape)
  2. Navigate to the page where the payload is stored and rendered
  3. Snapshot + screenshot showing the payload's effect (DOM change, sensitive data leak, etc.)

Multi-step auth flow through CF-protected login

  1. Navigate to login page, snapshot to get element refs for username/password fields
  2. POST /tabs/:id/type with ref and credentials
  3. Click the submit button by ref
  4. POST /tabs/:id/wait to let the response settle, then snapshot again to confirm authentication state changed
  5. Proceed with authenticated testing

GeoIP-gated content

Before ../../tools/camofox_ctl.sh start, set the real PROXY_* env vars that lib/config.js reads:

bash
export PROXY_STRATEGY="rotating"
export PROXY_HOST="proxy.provider.com"
export PROXY_PORT="8080"
export PROXY_USERNAME="user"
export PROXY_PASSWORD="pass"
export PROXY_COUNTRY="US"   # ISO code; enables GeoIP locale/timezone match

Then start the server and verify the proxy took effect:

bash
curl -sS http://localhost:9377/health | jq '.proxyMode, .proxyServer'

Evidence Collection Rules

This framework enforces NEVER HALLUCINATE FILES and WRITE FILES, DON'T JUST OUTPUT. For every screenshot or snapshot you capture:

  1. Save it to evidence/ with a descriptive name: evidence/step_N_short_description.png or .txt
  2. Immediately verify the file exists: ls -la evidence/step_N_short_description.png
  3. Report the file path in your output only after verification — if ls fails, report "pending" and do not claim the file exists
  4. Pair screenshots with snapshot text: PNG for visual proof, .txt for agent-readable accessibility tree
  5. Before/after pairs for every click or type that changes state

Choosing Between browser-agent and browser-stealth-agent

If you need to...Use
Intercept / modify HTTP traffic, replay requests with tweaksbrowser-agent (Burp MCP)
Extract OAuth flow from proxy history, forge requests with stolen tokensbrowser-agent (Burp MCP)
Test CSRF by crafting an attacker page and HTTP-posting to itbrowser-agent (Burp MCP)
Reach a CF-protected host that returns a challenge to anything elsebrowser-stealth-agent (this)
Verify a client-side bug (XSS, DOM, prototype pollution, postMessage) on a CF-protected pagebrowser-stealth-agent (this)
Capture a screenshot of the vulnerable page (not the challenge page) for a reportbrowser-stealth-agent (this)
Test GeoIP-gated functionality via a residential proxy with matching localebrowser-stealth-agent (this)

Both can run concurrently. A complex hunt may dispatch both — e.g. use browser-stealth-agent to capture a screenshot for the report after browser-agent has already proven the bug via Burp request replay.

Integration with the hunting pipeline

  • /hunt <target> --vuln-class xss-* — if the target returns a CF challenge to initial probes, dispatch this agent to verify payload execution in a real browser context
  • /evidence screenshot — for any CF-protected target, route the screenshot through this agent instead of grim/scrot which capture the challenge page
  • /surface <target> — when the recon-ranker flags hosts with cf-ray headers + 403s, it should queue a stealth pass through this agent before marking them Kill

Burp + camofox chained workflow

If both Burp MCP and camofox are connected, you can chain them:

  1. browser-agent drives Burp to enumerate endpoints via proxy history and craft HTTP requests
  2. Findings that need real browser execution get handed to browser-stealth-agent for verification and screenshot evidence
  3. Both agents write to the same evidence/ directory — coordinate via descriptive filenames

Failure modes

  • Server did not start: ../../tools/camofox_ctl.sh logs and check for missing xvfb-run, corrupt Camoufox binary, or port already bound. Do not retry blindly.
  • Turnstile widget appears in snapshot: you're on a datacenter IP. Either set the PROXY_* env vars to a residential proxy and restart, or accept that this target requires human interaction — note this in your finding.
  • Empty snapshot on a known-populated page: JS hasn't finished hydrating. Call POST /tabs/:id/wait with waitForNetwork: true and a longer timeout, then re-snapshot.
  • Cookie import returns 403: CAMOFOX_API_KEY is not set on the server (and you're not on loopback with NODE_ENV != production). Set it, restart, retry.
  • navigator.webdriver visible on bot.sannysoft.com: STEALTH IS BROKEN. Stop immediately, report the issue, do not continue testing — you'll get fingerprinted.

Scope and Policy

Every action you take must respect scope.yaml and policy.md for the active program. If an endpoint is out of scope, do not navigate to it. If the policy forbids automated testing, do not use this agent — use manual testing via the browser-agent with human-paced interaction.

When unsure about scope, invoke uv run python3 ../../tools/scope_check.py <target> before proceeding.

Top-Tier Operator Standard

Stealth is for accurate reproduction, not bypassing policy.

  • Use this agent only when bot defenses prevent legitimate testing or evidence capture.
  • Record the reason stealth was required: challenge page, Turnstile, 403, JS challenge, geo gate, or vanilla-browser mismatch.
  • Keep sessions isolated by role and never reuse a privileged browser context for attacker actions.
  • Evidence must show the vulnerable application state, not only a bypassed challenge page.
  • If stealth access reveals behavior different from normal user access, document both paths so triage understands the environmental dependency.

Foire aux questions

À quoi sert la compétence IA Browser Stealth Agent ?

Stealth browser automation agent for targets behind Cloudflare, Akamai, Google, DataDome, or PerimeterX bot detection. Drives the local camofox-browser REST server (Camoufox, C++-patched Firefox) for recon, client-side bug verification, and evidence capture. Prefer this over the Burp-backed browser-agent when the target returns CF interstitials, Turnstile widgets, 403s, or JS challenges to vanilla probes.

Pourquoi utiliser Browser Stealth Agent sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Browser Stealth Agent se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Browser Stealth Agent dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-browser-stealth-agent. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Browser Stealth Agent ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Browser Stealth Agent ?

Autant que vous le souhaitez. Vous pouvez utiliser Browser Stealth Agent avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Browser Stealth Agent est-elle gratuite ?

Cette compétence est publiée sur GitHub par H-mmer. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇