# Sh kb xss

> Sh kb xss is an open-source agent skill for security. Guides an agent through hunting reflected, stored and DOM-based XSS in code. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-kb-xss
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-kb-xss
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill is a knowledge base for security reviews focused on cross-site scripting. It covers the three XSS sub-classes, where untrusted data typically enters an application, and the server-side template and client-side DOM sinks where it can be rendered as script. It also lists framework escape hatches and sanitizer misconfigurations that bypass normal protections.

The workflow gives the agent a sink-hunting approach: search the codebase for raw-output patterns, trace each one back to an attacker-influenced source, identify the output context (HTML body, attribute, JavaScript, URL or CSS), and check whether the encoding matches that context. It also asks the agent to find every view where stored data is rendered and to check URL scheme allowlisting by parsing rather than by prefix. Guidance on false positives, severity ratings and mitigations is included, along with defender-side detection signals.

The skill is plain instructions with no bundled scripts. It assumes the agent has code search available, and the knowledge base refers to a grep-style search command. It is intended for code review and vulnerability hunting, and it does not generate or fire exploit payloads against live systems.

## When your agent uses it

> Knowledge base for finding Cross-Site Scripting - reflected, stored, and DOM-based XSS. Use when hunting XSS or reviewing untrusted data rendered into HTML/JS/attributes/URLs without context-correct encoding, or sanitizer and framework escape-hatch misuse. CWE-79, OWASP A03:2021-Injection.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-xss)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-xss)

## Features

- **Reflected, stored and DOM XSS:** Explains the three XSS sub-classes and how each reaches the victim's browser.
- **Sink and source catalogue:** Lists server template, JavaScript and framework sinks plus common untrusted input sources.
- **Output context checks:** Guides matching the encoding to the HTML, attribute, JavaScript or URL context.
- **Sanitizer bypass patterns:** Covers incomplete fixes such as blocklists, loosened sanitizer configs and scheme checks.
- **False-positive filters:** Describes when framework auto-escaping or sanitization makes a finding safe.
- **Defender detection signals:** Lists logs and CSP reports that can reveal XSS activity, plus mitigation advice.

## Good for

- Review a Django or Jinja codebase for raw template output of user input
- Check a React front end for dangerouslySetInnerHTML or unsafe href bindings
- Trace whether postMessage data reaches innerHTML without sanitizing
- Audit stored comment or profile fields for every view that renders them
- Assess whether a markdown renderer's output is sanitized before display

## Install

### Claude Code

This skill ships in the `indra` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra
```

Or copy only this skill to `~/.claude/skills/sh-kb-xss`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-xss &&
cp -R "$tmp/plugins/indra/skills/sh-kb-xss" ~/.claude/skills/sh-kb-xss &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sh-kb-xss` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sh-kb-xss` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-kb-xss &&
cp -R "$tmp/plugins/indra/skills/sh-kb-xss" ~/.agents/skills/sh-kb-xss &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sh-kb-xss` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-kb-xss` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-kb-xss &&
cp -R "$tmp/plugins/indra/skills/sh-kb-xss" ~/.cursor/skills/sh-kb-xss &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-kb-xss` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-kb-xss
```

Or copy the folder to `~/.gemini/skills/sh-kb-xss` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sh-kb-xss`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-xss &&
cp -R "$tmp/plugins/indra/skills/sh-kb-xss" ~/.copilot/skills/sh-kb-xss &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sh-kb-xss` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git
```

Then copy `indra/plugins/indra/skills/sh-kb-xss` into your agent's skills folder as `sh-kb-xss`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Sh kb xss need to run?

It is a set of instructions with no bundled scripts. The knowledge base refers to a grep-style search command, so the agent needs code search access to the codebase under review.

### When does the skill trigger?

Its description says it applies when hunting XSS or reviewing untrusted data rendered into HTML, JavaScript, attributes or URLs without context-correct encoding, or when sanitizer and framework escape-hatch misuse is suspected.

### Does Sh kb xss fire payloads at live sites?

No. The skill advises describing impact rather than running payloads against real users, and its exploit examples are limited to probes and conceptual proof of concept.

### Which languages and frameworks does Sh kb xss cover?

The sink list spans many stacks, including Jinja, Django, Rails, Laravel, PHP, Go, Thymeleaf, JSP, ASP.NET, Express, Svelte, plain DOM JavaScript, React, Vue and Angular.

### How do I install Sh kb xss in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-xss to use it in all your projects, or to .claude/skills/sh-kb-xss in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

### Does Sh kb xss run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sh kb xss?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Sh kb xss?

The closest alternatives to Sh kb xss are Client side, Sh kb sqli, Sh kb xxe, Sh kb injection and Sh kb csrf.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Client side](https://ai-powered.com/skills/client-side): Client side is an open-source agent skill for security.
- [Sh kb sqli](https://ai-powered.com/skills/sh-kb-sqli): Sh kb sqli is an open-source agent skill for security.
- [Sh kb xxe](https://ai-powered.com/skills/sh-kb-xxe): Sh kb xxe is an open-source agent skill for security.
- [Sh kb injection](https://ai-powered.com/skills/sh-kb-injection): Sh kb injection is an open-source agent skill for security.
- [Sh kb csrf](https://ai-powered.com/skills/sh-kb-csrf): Sh kb csrf is an open-source agent skill for security.
- [Sh kb ssrf](https://ai-powered.com/skills/sh-kb-ssrf): Sh kb ssrf is an open-source agent skill for security.
- [Sh kb prompt injection](https://ai-powered.com/skills/sh-kb-prompt-injection): Sh kb prompt injection is an open-source agent skill for knowledge and memory.
- [Security](https://ai-powered.com/skills/security-sorah): Security is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-kb-xss
