
Sh kb xss
Guides an agent through hunting reflected, stored and DOM-based XSS in code
Sh kb xss is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 44
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Sh kb xss
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (9 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indraOr copy only this skill to ~/.claude/skills/sh-kb-xss:
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.
Copy the skill folder to ~/.agents/skills/sh-kb-xss to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/sh-kb-xss to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-kb-xssOr copy the folder to ~/.gemini/skills/sh-kb-xss yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-kb-xss:
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.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen 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.
What it does
- 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
Sh kb xss 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.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Gives a security review agent persistent Markdown memory of past findings and learnings
- Open source
- 44 GitHub stars
- Knowledge and memory

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

Re-checks one earlier security finding against current code or recorded traffic
- Open source
- 44 GitHub stars
- Security




