360 Secure SkillHub
360 安全技能中心

offensive-xss

该Skill提供反射型、存储型、DOM型及mXSS的授权审计方法,覆盖源汇点污点跟踪、模板上下文转义、净化器绕过分析与CSP加固,并给出检查清单、CVSS评分、修复代码和回归测试要求。

分类:安全
smartworldarafath
热度 0.00
最近更新 2026-11-15 11:17:41

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add smartworldarafath/rea_skill/offensive-xss
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
offensive-xss
description
Cross-site scripting (XSS) assessment methodology covering reflected, stored, DOM-based, and mutation XSS (mXSS), sink/source taint tracking, template context escaping, sanitizer bypass analysis, and Content-Security-Policy (CSP) hardening. Use when auditing frontend rendering, DOM sinks, rich-text sanitizers, or HTML output encoding.

Cross-Site Scripting (XSS) Audit (offensive-xss)

Authorization & Scope Notice: This skill is part of the REA_Skill + claude-red Unified Security & Reverse Engineering Suite. It is designed strictly for authorized security assessments, defensive architecture reviews, vulnerability triage, bug bounty verification, and remediation engineering on software, infrastructure, and assets you own or have explicit permission to test.

Overview

Cross-site scripting (XSS) assessment methodology covering reflected, stored, DOM-based, and mutation XSS (mXSS), sink/source taint tracking, template context escaping, sanitizer bypass analysis, and Content-Security-Policy (CSP) hardening. Use when auditing frontend rendering, DOM sinks, rich-text sanitizers, or HTML output encoding.


Operational Workflow

  1. Surface & Architecture Inventory
    • Identify all entrypoints, trust boundaries, parsers, and configuration files relevant to Cross-Site Scripting (XSS) Audit (web domain).
    • Combine static code/binary inspection (via REA MCP tools, rg, AST analysis, or decompilation) with runtime configuration verification.
  2. Hypothesis & Vulnerability Verification
    • Test each security invariant systematically against known CWE and OWASP patterns.
    • Record concrete evidence: affected file/procedure, line numbers or binary offsets, request/response trace, and root cause.
  3. Impact & Reachability Triage
    • Evaluate whether the issue is reachable across trust boundaries, whether defense-in-depth controls mitigate it, and compute an accurate CVSS v3.1 / v4.0 score.
  4. Remediation & Regression Verification
    • Implement or provide production-ready, copy-pasteable remediation code.
    • Write an automated regression test or verification command to prove the flaw is resolved with 0 regressions.

Audit & Verification Checklist

Phase Check Verification Method Expected Secure State
1. Discovery Enumerate all web surfaces and dependencies Source search / REA binary & bundle inspection Complete inventory of trust boundaries
2. Input & State Validate parser behavior, type safety, and state transitions Boundary testing & static taint analysis Strict schema validation and invariant checks
3. Auth & Isolation Verify caller identity, tenant isolation, and least privilege Horizontal/vertical privilege matrix check Explicit deny-by-default enforcement
4. Defense-in-Depth Inspect secondary controls, logging, and compiler/runtime flags Config & header/binary flag audit Full hardening and telemetry enabled
5. Remediation Apply fix and execute automated regression test npm test / toolchain build & test suite 0 vulnerabilities, 0 build errors

Integration with REA MCP & Tooling

  • Static & Binary Analysis: Pair with rea-universal-orchestrator, rea-binary-disassembly, rea-web-bundle-recovery, or rea-mobile-app-recovery when source code is unavailable.
  • Interactive Scoping: Invoke /rea-grill-me before large-scale assessments to clarify scope, target environments, and acceptance criteria.
  • Reporting: Pair with offensive-reporting to format findings with CVSS vectors, CWE mappings, and remediation patches.