Browser Qa 标志

Browser Qa

社区
brucesongs
browser-qa

Automated browser-based security testing using Playwright and browser devtools. Interact with web applications as a user would — click, type, navigate — while monitoring network traffic, JavaScript execution, and DOM changes for security issues.

Add to TypingMind

概览

发布者brucesongs
代码仓库kali-claw
技能名称browser-qa
星标数
70
复刻数
18
附带文件
14
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 14 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 brucesongs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Browser Qa AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/brucesongs/kali-claw/tree/main/skills/browser-qa
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brucesongs/kali-claw.git /tmp/kali-claw
mkdir -p .claude/skills
cp -r /tmp/kali-claw/skills/browser-qa .claude/skills/browser-qa
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Browser Qa,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Browser Qa。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Browser Qa 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Browser QA

Summary

Interact with web applications as a user would — click, type, navigate — while monitoring network traffic, JavaScript execution, and DOM changes for security issues.

Domain: testing

Skill Identity

AttributeValue
DomainSecurity Testing
Skill IDbrowser-qa
Version1.0.0
Hacker LawsLaw 1 (Know Your Battlefield), Law 3 (Intelligence Over Force)
Related Skillsapi-security, web-xss, web-auth

Purpose

Automated browser-based security testing using Playwright and browser devtools. Interact with web applications as a user would — click, type, navigate — while monitoring network traffic, JavaScript execution, and DOM changes for security issues.

Core Capabilities

  1. Automated Navigation: Click links, fill forms, submit data
  2. Network Monitoring: Capture HTTP requests/responses, detect API calls
  3. JavaScript Execution: Run custom scripts in page context
  4. DOM Inspection: Query selectors, extract data, detect XSS sinks
  5. Screenshot/Video: Document findings visually

Use Cases

  • Auth Flow Testing: Test login, logout, session handling, password reset
  • CSRF Detection: Check for CSRF tokens in state-changing requests
  • XSS Testing: Submit payloads via forms and monitor DOM
  • Cookie Analysis: Check HttpOnly, Secure, SameSite flags
  • Client-Side Security: CSP headers, SRI, HTTPS enforcement

Tools

  • Playwright: Node.js/Python library for browser automation
  • Puppeteer: Chrome-only automation (legacy)
  • Browser DevTools Protocol: Direct CDP access for advanced use

Methodology

  1. Baseline capture — record clean network traffic and console logs before injecting payloads.
  2. Stateful navigation — drive multi-step flows (login → dashboard → settings) so client-side state mirrors real users.
  3. Differential observation — diff request/response pairs across attacker vs. victim contexts to surface authorization gaps.
  4. Evidence-first — capture screenshots, HAR files, and DOM snapshots before mutating state further.

Test Patterns

  • Headed vs. headless — run smoke tests headless for speed, but switch to headed mode for tricky DOM races and anti-bot heuristics.
  • Storage isolation — use Playwright's browserContext per test to avoid cookie/localStorage cross-contamination.
  • Request interception — page.route() to mock responses, inject delays, or replay captured payloads deterministically.
  • CDP escape hatch — drop to client.send('Network.setExtraHTTPHeaders', ...) for headers Playwright's API doesn't expose.

Anti-Detection Considerations

  • Default Playwright fingerprints (navigator.webdriver, missing Chrome runtime fields) are trivially detected; use stealth patches for realistic testing.
  • Mouse-movement simulation matters for CAPTCHA-protected flows — synthesize trajectories, not just instant clicks.
  • TLS fingerprinting (JA3) leaks Playwright's Chromium signature; route through a customized proxy if testing anti-bot defenses.
  • Respect target's anti-bot policy in authorized engagements — log every detection event for the report.

Common Pitfalls

  • Flaky selectors — relying on auto-generated class names breaks across deployments; prefer data-testid or role-based selectors.
  • Timing assumptions — waitForTimeout masks real race conditions; use waitForResponse/waitForLoadState instead.
  • Cookie leakage — failing to clear storage between tests causes authenticated/unauthenticated flow confusion.
  • Silent JS errors — without page.on('pageerror') listeners, CSP violations and client-side crashes go unnoticed.

Authentication Testing

  • Drive full login/logout/password-reset cycles with page.fill() + page.click() — avoid shortcuts that skip client-side validation.
  • After authentication, verify session cookies carry correct flags (HttpOnly, Secure, SameSite=Strict/Lax).
  • Test account lockout by iterating wrong credentials and checking for rate-limiting responses (HTTP 429 or progressive delays).
  • Validate "remember me" tokens — long-lived cookies should be rotated on server-side, not static across sessions.

Session and State Management

  • Enumerate all client-side storage: localStorage, sessionStorage, IndexedDB, and cookies — each is a potential auth-data leak vector.
  • Verify CSRF tokens are present in every state-changing request and are rotated per-request (not per-session).
  • Test session fixation by injecting a known session ID before login and confirming the server issues a new one.
  • Check logout invalidation: after logout, the old session cookie must not grant access (server-side revocation).

Network Traffic Analysis

  • Capture full HAR files during testing: page.context().storageState() for cookies, page.route() for request/response logging.
  • Identify all XHR/fetch calls the application makes — hidden API endpoints often lack the same authz checks as page routes.
  • Monitor for credential leakage in URLs (tokens in query strings) and referrer headers (sensitive paths leaked to third-party origins).
  • Check for mixed content: HTTP subresources on HTTPS pages downgrade security guarantees.

Detection Methods

Browser Automation Detection

  • WebDriver flags: navigator.webdriver === true; legacy Selenium/Puppeteer signature.
  • Headless indicators: --headless flag in Chrome process args; missing chrome.runtime API.
  • Canvas fingerprint anomalies: WebGL renderer Mesa/SwiftShader; headless browser giveaway.
  • Plugin enumeration: Missing expected plugins (Chrome PDF, native messaging).
  • Mouse movement patterns: Linear mouse paths (no jitter) typical of automation.

SIEM Detection Rules

  • Splunk SPL: index=web http.user_agent="*HeadlessChrome*" OR http.user_agent="*PhantomJS*"
  • Sigma rule: sigma/rules/web/automated_browser_detection.yml
  • Cloudflare Bot Management: ML-based bot detection catches most automation frameworks.
  • Akamai Bot Manager: Behavioral fingerprinting.

Defense Evasion Techniques

Stealth Automation

  • puppeteer-extra-plugin-stealth: Removes WebDriver signature; patches navigator APIs.
  • undetected-chromedriver: Patches ChromeDriver to remove detection signatures.
  • Playwright with stealth: Use playwright-extra with stealth plugin.
  • Camoufox: Firefox fork with built-in fingerprint randomization.
  • Real browser binaries: Use real Chrome/Firefox binaries (not headless); slower but stealthier.

Fingerprint Mimicry

  • Use real user fingerprints: Capture legitimate user fingerprint (Canvas, WebGL, fonts); replay it.
  • TLS fingerprint matching: curl-impersonate matches browser JA3/JA4 hashes.
  • Realistic viewport: Match common viewport sizes (1920x1080, 1366x768); avoid 800x600.
  • Realistic timing: Add jitter to mouse movements; random delays between actions.

Proxy / Network Stealth

  • Residential proxies: Bright Data, Smartproxy; mimics real user IPs.
  • IP rotation: Rotate per session; avoid single-IP burst patterns.
  • Mobile carrier proxies: 4G/5G IPs; harder to block (legitimate user pattern).

Reporting and Evidence

  • Use page.screenshot({ fullPage: true }) for every finding — full-page captures preserve context that viewport-only shots miss.
  • Record video traces for complex multi-step exploits: browser.newContext({ recordVideo: { dir: 'evidence/' } }).
  • Export console messages filtered by severity: page.on('console', msg => { if (msg.type() === 'error') log(msg) }).
  • Generate HAR exports with page.context().tracing.start() and tracing.stop({ path }) for complete request-level evidence.

Advanced Techniques

  • Combine Playwright with Burp Suite upstream proxy for passive traffic analysis while browser tests execute.
  • Use page.addScriptTag() to inject custom monitoring hooks that log DOM mutations (MutationObserver) and network requests (PerformanceObserver).
  • Parallelize independent test flows across multiple browser contexts for faster regression suites.

Integration

  • Use with web-xss skill for payload delivery
  • Use with api-security skill to analyze intercepted API calls
  • Use with knowledge-ops to store findings

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Browser Qa AI 技能有什么作用?

Automated browser-based security testing using Playwright and browser devtools. Interact with web applications as a user would — click, type, navigate — while monitoring network traffic, JavaScript execution, and DOM changes for security issues.

为什么在 TypingMind 中使用 Browser Qa?

因为您只需安装一次,就能搭配任何模型使用。Browser Qa 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Browser Qa?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/brucesongs/kali-claw/tree/main/skills/browser-qa。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Browser Qa?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Browser Qa 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Browser Qa 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Browser Qa AI 技能免费吗?

是的。brucesongs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇