/kernel-cli:profile-website-bot-detectionfrom kernel-cli
Profiles websites to identify bot detection vendors, products, and challenge types using Kernel browsers. Compares stealth vs non-stealth modes and checks Kernel's config registry for pre-tested configurations.
Ships in kernel-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Analyzes a target website to identify bot detection vendors, their specific products, and challenge types. Supports comparative analysis between stealth and non-stealth browser modes. Checks Kernel's config registry for a configuration already tested on the site, and starts an analysis when there isn't one.
curl, and jq installedKERNEL_API_KEY exported for the analysis script; never print it or ask the user to paste it into chatCompare bot detection behavior between stealth and non-stealth browsers while controlling the network path. Run Steps 1-7 in the same Bash process so the cleanup trap remains armed. Do not run Step 2 as a standalone non-interactive shell: its EXIT trap will delete the sessions when that shell returns.
Install dependencies before creating billable browser sessions:
cd scripts
npm install # first run only
export TARGET_URL='https://example.com'
test -n "${KERNEL_API_KEY:-}" || { echo "KERNEL_API_KEY is not set" >&2; exit 1; }
# Check the config registry for a configuration Kernel has already tested on this site.
REGISTRY_JSON=$(curl -sS -X POST https://api.onkernel.com/config-registry/lookup \
-H "Authorization: Bearer $KERNEL_API_KEY" -H "Content-Type: application/json" \
-d "$(jq -n --arg url "$TARGET_URL" '{url: $url}')")
echo "$REGISTRY_JSON" | jq '{recommendation: (.recommendation | if .type == "recommendation" then {browser, proxy, evidence: (.evidence | {success_rate, run_count, last_observed_at})} else . end), guidance}'
lookup is read-only and needs a Hobbyist plan or higher. Keep REGISTRY_JSON for Step 6.
Use JSON output to capture exact session IDs. The EXIT trap cleans up the first session if the second creation or a later analysis fails.
set -euo pipefail
STEALTH_ID=
NORMAL_ID=
cleanup() {
local ids=()
[[ -n "${STEALTH_ID:-}" ]] && ids+=("$STEALTH_ID")
[[ -n "${NORMAL_ID:-}" ]] && ids+=("$NORMAL_ID")
if ((${#ids[@]})); then
kernel browsers delete "${ids[@]}" || true
fi
}
trap cleanup EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
STEALTH_ID=$(kernel browsers create --stealth --viewport 1920x1080@25 --timeout 300 --output json | jq -er '.session_id')
NORMAL_ID=$(kernel browsers create --viewport 1920x1080@25 --timeout 300 --output json | jq -er '.session_id')
# Isolate browser stealth behavior: route the stealth session directly, like the normal session.
kernel browsers update "$STEALTH_ID" --disable-default-proxy >/dev/null
A stealth session otherwise uses Kernel's default stealth proxy, while a normal session connects directly. Without the update, the result measures stealth plus proxy versus normal plus direct, not stealth alone. Apply --disable-default-proxy only to the stealth session; the API rejects it for non-stealth sessions.
Choose one network design before navigating:
stealth + default proxy; do not attribute differences solely to stealth.kernel proxies check "$PROXY_ID" --url https://example.com --output json, add --proxy-id "$PROXY_ID" to both create commands, and omit the update. This controls proxy configuration, though provider rotation can still produce different exit IPs.KERNEL_BROWSER_ID="$STEALTH_ID" TARGET_URL="$TARGET_URL" BROWSER_MODE=stealth npm run analyze
KERNEL_BROWSER_ID="$NORMAL_ID" TARGET_URL="$TARGET_URL" BROWSER_MODE=normal npm run analyze
Each analyzer run disconnects its local CDP client after writing the report; it leaves the Kernel session active for comparison and cleanup.
Compare the newest report from each mode rather than concatenating multiple JSON documents:
# Derive the same hostname folder used by the analyzer (e.g., chase.com -> chase-com).
HOST=$(node -e 'const host = new URL(process.env.TARGET_URL).hostname; console.log(host.replace(/^www\./, "").replace(/\./g, "-"))')
latest_report() {
local reports=("$1"/report-*.json)
[[ -e "${reports[0]}" ]] || return 1
printf '%s\n' "${reports[@]}" | sort | tail -n 1
}
STEALTH_REPORT=$(latest_report "output/$HOST/stealth")
NORMAL_REPORT=$(latest_report "output/$HOST/normal")
echo "=== STEALTH VERDICT ===" && jq '.summary.verdict' "$STEALTH_REPORT"
echo "=== NORMAL VERDICT ===" && jq '.summary.verdict' "$NORMAL_REPORT"
echo "=== STEALTH BLOCKED ===" && jq '.summary | {isBlocked, blockedPages, blockedVendors}' "$STEALTH_REPORT"
echo "=== NORMAL BLOCKED ===" && jq '.summary | {isBlocked, blockedPages, blockedVendors}' "$NORMAL_REPORT"
echo "=== STEALTH VENDORS ===" && jq '.summary.vendorNames' "$STEALTH_REPORT"
echo "=== NORMAL VENDORS ===" && jq '.summary.vendorNames' "$NORMAL_REPORT"
| Scenario | Stealth | Normal | Meaning |
|---|---|---|---|
| No vendors detected | 0 | 0 | No signals observed; do not assume the site has no bot detection |
| Same vendors, no blocks | N | N | Bot detection present, both pass |
| Normal blocked, stealth passes | 0 blocks | Blocked | With a controlled network, stealth is effective |
| Both blocked | Blocked | Blocked | Both tested configurations are blocked |
| Different challenge types | Lighter | Harder | With a controlled network, stealth likely reduces suspicion |
After running the comparative analysis, state the network design explicitly. Claim stealth effectiveness only when both sessions used the same network class.
If the registry had no recommendation and either browser was blocked, start an analysis so a tested configuration exists for the next run. It takes minutes; report the analysis ID and rerun the Step 1 lookup later:
NO_RECOMMENDATION=$(echo "$REGISTRY_JSON" | jq '.recommendation.type != "recommendation"')
ANY_BLOCKED=$(jq -s 'any(.[]; .summary.isBlocked)' "$STEALTH_REPORT" "$NORMAL_REPORT")
if [[ "$NO_RECOMMENDATION" == true && "$ANY_BLOCKED" == true ]]; then
curl -sS -X POST https://api.onkernel.com/config-registry/resolve \
-H "Authorization: Bearer $KERNEL_API_KEY" -H "Content-Type: application/json" \
-d "$(jq -n --arg url "$TARGET_URL" --arg intent 'load the homepage and the login page' '{url: $url, intent: $intent}')" \
| jq '.analysis | {id, status}'
fi
Summary Report Template:
## Bot Detection Comparative Analysis: [TARGET_URL]
### Verdict
- **Network Design**: [both direct / same explicit proxy config / platform defaults]
- **Stealth Browser**: [verdict from summary.verdict]
- **Normal Browser**: [verdict from summary.verdict]
- **Stealth Effectiveness**: [Effective/Ineffective/Inconclusive; use Inconclusive for mixed network paths]
### Block Status
| Browser | Blocked | Block Type | Evidence |
|---------|---------|------------|----------|
| Stealth | [Yes/No] | [blockType or N/A] | [first evidence item] |
| Normal | [Yes/No] | [blockType or N/A] | [first evidence item] |
### Detected Vendors
| Vendor | Stealth | Normal | Products |
|--------|---------|--------|----------|
| [vendor] | ✓/✗ | ✓/✗ | [product list] |
### Recommended Configuration
- **Config Registry**: [recommended browser and proxy, with run count, success rate, and last observed date; or "none yet"]
- **Analysis Started**: [analysis ID, or "not needed"]
### Analysis
- [Explain what the results mean]
- [Note any differences between stealth and normal]
- [Recommend next steps if blocked: the registry configuration, or the Step 1 lookup once the analysis finishes]
### Key Findings
1. [Finding 1]
2. [Finding 2]
3. [Finding 3]
Use the JSON reports to populate this template:
summary.verdict - The final verdict stringsummary.isBlocked - Whether the browser was blockedsummary.blockedPages - Details about blocked pagessummary.vendorNames - List of detected vendorsvendorDetections - Detailed vendor/product informationDelete both sessions immediately after collecting reports. browsers delete is non-interactive and accepts multiple IDs; it has no -y flag.
cleanup
trap - EXIT INT TERM
If the shell was interrupted or the variables were lost, use kernel browsers list to find the created sessions and delete each with kernel browsers delete <session-id>.
The analysis detects vendors and their specific products:
| Vendor | Products Detected |
|---|---|
| Akamai | Bot Manager, Bot Manager Premier, mPulse RUM, Sensor Script, Edge DNS |
| Cloudflare | Bot Management, Turnstile, Challenge Platform, JS Challenge, Managed Challenge |
| DataDome | Interstitial Challenge, Slider Challenge, Device Check, Picasso Fingerprint |
| HUMAN/PerimeterX | Bot Defender, Sensor SDK, Press & Hold Challenge |
| Imperva/Incapsula | Advanced Bot Protection (utmvc), Advanced Bot Protection (reese84), WAF |
| Kasada | IPS (Initial Page Security), FP (Fingerprint Endpoint), Telemetry, POW Challenge |
| reCAPTCHA v2, reCAPTCHA v3, reCAPTCHA Enterprise | |
| hCaptcha | Widget, Enterprise |
| FingerprintJS | Fingerprint Pro, BotD |
| Arkose Labs | FunCaptcha |
Detection methods:
_abck, __cf_bm, datadome, _px*)cf-ray, x-kpsdk-*, x-d-token)Vendor-specific checks:
dd.t === 'bv')~0~ indicator)The script automatically analyzes:
/login, /signin, etc.)Login pages often have more aggressive bot detection due to credential stuffing prevention.
Results are organized by target hostname in scripts/output/<hostname>/<mode>/:
report-<timestamp>.json - Full JSON report with vendor detectionsscreenshot-homepage-<timestamp>.png - Homepage screenshotscreenshot-login-<timestamp>.png - Login page screenshot (if found)Example structure for comparative test on chase.com:
output/chase-com/
├── stealth/
│ ├── report-*.json
│ ├── screenshot-homepage-*.png
│ └── screenshot-login-*.png
└── normal/
├── report-*.json
├── screenshot-homepage-*.png
└── screenshot-login-*.png
The JSON report includes:
summary: Quick access to verdict, block status, and vendor names
verdict: Human-readable result (e.g., "BLOCKED - homepage (Error Page)")isBlocked: Boolean - true if any page was blockedvendorNames: Array of detected vendor namesblockedPages: Details of blocked pages with evidencevendorDetections: Map of detected vendors with products, URLs, cookies, headersblockDetections: Detailed block analysis for each pagevendorScriptsDetected: URLs of detected vendor scripts (not saved to disk)networkRequests/networkResponses: All requests with vendor matchingcookies: All cookies with vendor attribution_abck (core validation), bm_sz, bm_sv~0~ in _abck value = valid session__cf_bm, cf_clearance/cdn-cgi/challenge-platform/challenges.cloudflare.com/turnstiledatadomedd.t === 'bv' = hard IP block (changing IP required, solving captcha won't help)_px2, _px3, _pxhd/_Incapsula_Resourcex-d-token headerx-kpsdk-ct, x-kpsdk-cdips.js first/fp fingerprint requestsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bot-detection, anti-bot, browser-stealth, kernel-browser, web-scraping
npx claudepluginhub kernel/skills --plugin kernel-cli8 skills in this plugin
/create-agent-site-skillcreate reusable skills for automating specific websites with KERNEL cloud browsers. use when building a new site skill or turning an existing browser workflow into one./debug-browser-sessionSystematically debug a Kernel cloud browser session — VM issues, network errors, Chrome crashes, page-load failures, and live-view problems. Use when a browser session misbehaves (e.g. ERR_HTTP2_PROTOCOL_ERROR, "browser not responding", blank/error pages, captcha or "checking your browser" blocks, live view not loading) and you have the session ID. Drives the Kernel CLI to inspect session status, screenshots, page state, VM logs, network connectivity, and telemetry events (which remain readable even after the session is deleted)./diff-profile-archivesCompare two Kernel profile snapshots to investigate behavioral differences. Use when an issue (e.g. login failure, captcha, broken automation, vendor mismatch) reproduces on one profile but not another, or when a "good" vs "bad" profile needs to be diffed. Takes two profile IDs/names plus an issue description, downloads and extracts both profiles via the Kernel CLI, and surfaces differences in cookies, storage, preferences, extensions, and login state that could explain the issue./kernel-agent-browserBest practices for using agent-browser with Kernel cloud browsers. Use when automating websites with agent-browser -p kernel, tuning stealth or proxy behavior, persisting profiles, handling iframes, discovering Kernel session IDs or live views, or cleaning up cloud sessions./kernel-authuse KERNEL managed auth or vault credentials after choosing a browser path that genuinely requires an authenticated website ui or authenticated browser behavior. prefer a dedicated api, cli, mcp server, or authoritative local records for operations they support; a url alone does not require browser auth. reuse or create auth connections, complete hosted login without abandoning the task, launch profile-backed browsers with telemetry, and handle reauthentication safely. for per-user vault credentials, let the user choose KERNEL-hosted collection or 1Password brokered approval, and fill only with explicit approval./kernel-browser-harnessBest practices for using browser-use's open-source browser-harness with Kernel cloud browsers over CDP. Use when driving a Kernel browser from browser-harness, extracting a CDP URL from `kernel browsers create`, or running multi-step or parallel harness sessions against Kernel.Other plugins' skills for the same job