Skip to main content
ClaudeWave
ES, Spanish
Skill8k estrellas del repoactualizado 16d ago

offensive-xss

This Claude Code skill provides a comprehensive checklist for identifying and exploiting Cross-Site Scripting vulnerabilities across stored, reflected, DOM-based, and blind variants. Use it when testing web applications for XSS flaws, bypassing filters and Content Security Policy protections, or conducting bug bounty assessments that require systematic vulnerability discovery and impact escalation analysis.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/SnailSploit/Claude-Red /tmp/offensive-xss && cp -r /tmp/offensive-xss/Skills/web/offensive-xss ~/.claude/skills/offensive-xss
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# SKILL: Cross-Site Scripting (XSS)

## Metadata
- **Skill Name**: xss
- **Folder**: offensive-xss
- **Source**: https://github.com/SnailSploit/offensive-checklist/blob/main/xss.md

## Description
Cross-Site Scripting testing checklist: stored/reflected/DOM/blind XSS discovery, polyglot payloads, CSP bypass, XSS filter bypass, event handler injection, DOM clobbering, mutation XSS, and impact escalation (session hijack, phishing, keylogging). Use for web app XSS testing and bug bounty.

## Trigger Phrases
Use this skill when the conversation involves any of:
`XSS, cross-site scripting, stored XSS, reflected XSS, DOM XSS, blind XSS, CSP bypass, XSS filter bypass, polyglot, DOM clobbering, mutation XSS, event handler injection`

## Instructions for Claude

When this skill is active:
1. Load and apply the full methodology below as your operational checklist
2. Follow steps in order unless the user specifies otherwise
3. For each technique, consider applicability to the current target/context
4. Track which checklist items have been completed
5. Suggest next steps based on findings

---

## Full Methodology

# Cross-Site Scripting (XSS)

## Shortcut

- Look for user input opportunities on the application. When user input is stored and used to construct a web page later, test the input field for stored XSS. if user input in a URL gets reflected back on the resulting web page, test for reflected and DOM XSS.
- Insert XSS payloads into the user input fields you've found. Insert payloads from lists online, a polyglot payload, or a generic test string.
- Confirm the impact of the payload by checking whether your browser runs your JavaScript code. Or in the case of a blind XSS, see if you can make the victim browser generate a request to your server.
- If you can't get any payloads to execute, try bypassing XSS protections.
- Automate the XSS hunting process
- Consider the impact of the XSS you've found: who does it target? How many users can it affect? And what can you achieve with it? Can you escalate the attack by using what you've found?

## Mechanisms

Cross-Site Scripting (XSS) is a vulnerability that allows attackers to inject malicious client-side scripts into web pages viewed by other users. XSS occurs when applications incorporate user-supplied data into a page without proper validation or encoding.

### Types of XSS

```mermaid
flowchart TD
    A[Cross-Site Scripting] --> B[Stored XSS]
    A --> C[Reflected XSS]
    A --> D[DOM-Based XSS]
    A --> E[Blind XSS]

    B -->|"Persists in DB"| B1[Comments]
    B -->|"Persists in DB"| B2[User Profiles]
    B -->|"Persists in DB"| B3[Product Reviews]

    C -->|"Reflected in response"| C1[Search Results]
    C -->|"Reflected in response"| C2[Error Messages]
    C -->|"Reflected in response"| C3[URL Parameters]

    D -->|"Client-side execution"| D1[Client-side Routing]
    D -->|"Client-side execution"| D2[DOM Manipulation]

    E -->|"Hidden Execution"| E1[Admin Panels]
    E -->|"Hidden Execution"| E2[Log Viewers]
```

#### Stored (Persistent) XSS

- Malicious script is permanently stored on target servers (databases, message forums, comment fields)
- Executed when victims access the stored content
- Most dangerous as it affects all visitors to the vulnerable page
- Examples: comments, user profiles, product reviews

```mermaid
sequenceDiagram
    actor A as Attacker
    participant W as Web Server
    participant DB as Database
    actor V as Victim

    A->>W: Submit malicious script via form
    W->>DB: Store user input with script
    V->>W: Request page with stored content
    W->>DB: Retrieve stored content
    DB->>W: Return content with malicious script
    W->>V: Deliver page with malicious script
    Note over V: Script executes in victim's browser
    V->>A: Stolen data sent to attacker
```

#### Reflected (Non-Persistent) XSS

- Script is reflected off the web server in an immediate response
- Typically delivered via URLs (parameters, search fields)
- Requires victim to click a malicious link or visit a crafted page
- Examples: search results, error messages, redirects

```mermaid
sequenceDiagram
    actor A as Attacker
    actor V as Victim
    participant W as Web Server

    A->>V: Send malicious URL
    V->>W: Click link with malicious script in parameters
    W->>V: Return page with reflected script
    Note over V: Script executes in victim's browser
    V->>A: Stolen data sent to attacker
```

#### DOM-Based XSS

- Vulnerability exists in client-side code rather than server-side
- Malicious content never reaches the server
- Occurs when JavaScript dynamically updates the DOM using unsafe methods
- Examples: client-side routing, client-side templating

```mermaid
sequenceDiagram
    actor A as Attacker
    actor V as Victim
    participant W as Web Server
    participant DOM as DOM

    A->>V: Send malicious URL with fragment
    V->>W: Request page (fragment not sent to server)
    W->>V: Return page with JavaScript
    Note over V: JavaScript processes URL fragment
    V->>DOM: Update DOM with malicious content
    Note over V: Script executes in victim's browser
    V->>A: Stolen data sent to attacker
```

#### Blind XSS

- Special type of stored XSS where impact isn't immediately visible
- Payload activates in areas not accessible to the attacker (admin panels, logs)
- Often discovered using specialized tools that callback to attacker-controlled servers

#### LLM-Generated Content XSS

- **AI Integration Risks**: Large Language Models generating unsafe HTML
- **Prompt Injection → XSS**: Manipulating AI to output malicious scripts
- **RAG (Retrieval Augmented Generation) XSS**: Injecting payloads into vector databases that get included in AI responses

```mermaid
sequenceDiagram
    actor A as Attacker
    participant U as User
    participant AI as LLM/AI Service
    participant DB as Vector DB
    participant W as Web App

    A->>DB: Inject payload into training/context data
    U->>W: Ask AI a question
    W->>AI: Fo
offensive-active-directorySkill

Active Directory attack methodology for internal network red team engagements. Covers reconnaissance (BloodHound, PowerView, ADExplorer), credential abuse (Kerberoasting, ASREProasting, NTLM relay, LLMNR/NBT-NS poisoning), privilege escalation (ACL abuse, GPO abuse, unconstrained/constrained delegation), lateral movement (Pass-the-Hash, Pass-the-Ticket, Overpass-the-Hash, WMI/WinRM/PsExec), persistence (Golden/Silver/Diamond Tickets, DCSync, DCShadow, AdminSDHolder, Skeleton Key), forest trust attacks, ADCS abuse (ESC1-ESC15), and modern MDI/Defender for Identity evasion. Use when assessing on-prem AD, hybrid AD/Entra ID environments, or ADCS deployments.

offensive-advanced-redteamSkill

Comprehensive red team operations methodology covering full engagement lifecycle from planning through reporting. Addresses engagement scoping and rules of engagement negotiation, multi-tier C2 infrastructure design with redirectors and domain fronting, malleable traffic profiles and beacon tradecraft, OPSEC discipline including attribution avoidance and indicator management, EDR and AMSI evasion techniques using direct syscalls and unhooking, data collection with chain-of-custody controls, and structured reporting with purple team debrief workflows. Covers assumed-breach, external-to-internal, insider threat, and hybrid physical-cyber engagement scenarios with MITRE ATT&CK mapping throughout. Targets operators planning or executing adversary simulation engagements against mature defenders.

offensive-ai-securitySkill
offensive-anti-forensicsSkill

Anti-forensics and evidence destruction techniques for red team operators conducting authorized engagements. Covers log clearing on Windows (wevtutil, Clear-EventLog, ETW provider patching) and Linux (journal truncation, utmp/wtmp binary editing, syslog manipulation), timestamp manipulation via Timestomp and SetMACE to defeat timeline analysis, filesystem-level anti-forensics including NTFS Alternate Data Streams for payload hiding and secure deletion with sdelete/shred, memory artifact removal to counter live forensics, disk artifact manipulation targeting MFT entries and USN journal records, network forensics evasion through encrypted C2 channels and DNS-over-HTTPS tunneling, and anti-VM/sandbox detection to avoid dynamic analysis environments. Tools: Timestomp, wevtutil, sdelete, shred, MimiPenguin, Invoke-Phant0m. Aligns to MITRE ATT&CK T1070 (Indicator Removal), T1027 (Obfuscated Files or Information), T1497 (Virtualization/Sandbox Evasion). Each technique includes the forensic artifact it targets, the destruction or manipulation method, and the defender perspective so operators understand detection gaps they must account for.

offensive-api-abuseSkill

Advanced API exploitation methodology focused on business logic abuse and sophisticated attack patterns that bypass traditional security controls. Covers business logic bypass through API call chaining and workflow manipulation. Addresses GraphQL-specific attacks including batching for credential brute-force, query depth exploitation, and introspection abuse. Includes pagination exploitation for data exfiltration, webhook hijacking for SSRF and data interception, and resource exhaustion through algorithmic complexity attacks. Covers race conditions in API transactions using parallel request techniques. Provides comprehensive JWT manipulation including algorithm confusion, kid injection, jku/x5u abuse, and claim tampering. Details API key leakage detection across source repositories, client-side code, and error messages. Covers undocumented endpoint discovery through predictable naming, debug routes, and source map analysis. Tooling includes Arjun, ParamSpider, jwt_tool, and GraphQL Voyager. Designed for authorized penetration testers targeting business logic layers that automated scanners miss.

offensive-api-securitySkill

Comprehensive API security testing methodology covering REST, gRPC, and WebSocket attack surfaces. Addresses the full OWASP API Security Top 10 2023 including BOLA/IDOR, broken authentication, excessive data exposure, rate limiting bypass, BFLA, mass assignment, SSRF, and security misconfiguration. Includes REST-specific attacks such as HTTP verb tampering, content-type switching, and parameter pollution. Covers gRPC exploitation through protobuf interception, reflection API enumeration, and metadata injection. Addresses WebSocket vulnerabilities including origin bypass, message injection, and cross-site WebSocket hijacking. Provides tooling guidance for Burp Suite, Postman, grpcurl, websocat, and mitmproxy. Each technique includes detection signatures and defensive indicators so you understand what artifacts your testing leaves behind. Designed for authorized penetration testing engagements against API-driven architectures.

offensive-basic-exploitationSkill
offensive-bluetooth-bleSkill

Bluetooth Low Energy (BLE) attack methodology — GATT enumeration, characteristic read/write without auth, pairing downgrade (Just Works forced), LE Secure Connections bypass, MITM via active relay, sniffing with Sniffle (TI CC1352) / Ubertooth / Frontline, encryption key extraction (LE Legacy Pairing crackable, LE Secure Connections strong), proximity authentication abuse (cars, locks), and companion-app trust analysis. Use for IoT BLE devices, smart locks, fitness trackers, medical devices, BLE beacons, or any device pairing over BLE.