Logo: Nextjs Security Stinger

Nextjs Security Stinger

Organisatioun
legioncodeinc
nextjs-security-stinger

Deep Next.js security audit (13 to 16, App and Pages Router). Version advisories, proxy and middleware auth, Server Actions, Route Handlers, data exposure, caching, config. Read-only.

Iwwersiicht

Editeurlegioncodeinc
Repositoryvibe-coding-tools
Skill-Nummnextjs-security-stinger
Stären
94
Forks
44
Matgeliwwert Dateien
19
LizenzAGPL-3.0-or-later
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 19 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    legioncodeinc huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Nextjs Security Stinger an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/nextjs-security-stinger
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/legioncodeinc/vibe-coding-tools.git /tmp/vibe-coding-tools
mkdir -p .claude/skills
cp -r /tmp/vibe-coding-tools/plugins/code-audit-tools/skills/nextjs-security-stinger .claude/skills/nextjs-security-stinger
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Nextjs Security Stinger an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Nextjs Security Stinger automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Nextjs Security Stinger net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Next.js Security Stinger

Designed and built by Legion Code Inc.

Where this skill's files are

Every path below (guides/, references/, scripts/) is relative to the folder that contains this SKILL.md. In Claude Code that folder is ${CLAUDE_SKILL_DIR}. If that text was not replaced with a real path, find the folder yourself (for example with Glob for **/nextjs-security-stinger/SKILL.md) and use it as the skill directory in every command.

Purpose

Run the Next.js-specific part of the security dimension of an /audit-my-code run. It finds the installed next version in every app of the repo and matches it against a normalized table of 61 GitHub Security Advisories (2024 to 2026-09-30, including CVE-2025-29927 and the React2Shell RSC remote code execution CVE-2025-55182), then reviews the places Next.js apps actually break: authorization that lives only in middleware or proxy.ts, Server Actions and Route Handlers that are public endpoints without auth or ownership checks, private data passed to Client Components or baked into static and cached output, NEXT_PUBLIC_ secrets, broad images.remotePatterns, dynamic-host rewrites, CSP and header gaps, and auth-library misuse (Auth.js, Clerk, Supabase SSR). It writes contract-shaped SEC-NEXT-NNN findings, metrics, and notes to the run workspace and never changes the audited repository.

When to use

  • The orchestrator routes a basic, full, or mario tier run with nextjs in intake.json.stacks.
  • "Security audit this Next.js app", "are my Server Actions safe", "is our middleware auth enough", "is our Next.js version vulnerable", "check us for CVE-2025-29927 or React2Shell".
  • A vibe-coded Next.js app (v0, Cursor, Claude Code, Lovable, Bolt) needs a deep framework pass before launch.

When not to use

  • Generic OWASP review, non-next dependency CVEs, SQL injection in plain helpers, secrets scanning of the whole repo: security-stinger through security-wasp-drone (the generic pass runs alongside this one).
  • React client-side patterns (XSS through dangerouslySetInnerHTML, unsafe URLs in href, client storage of tokens): the react-security pair.
  • SvelteKit or non-JavaScript backends: sveltekit-security and polyglot-security pairs.
  • Fixing the code. This skill is research-only; remediation planning belongs to the mario tier's remediation Drone.
  • Testing a live site from the outside: web-security-posture-stinger.

Procedure

  1. Read guides/00-scoping.md and run scripts/next_audit_scan.py against the repo with output into <workspace>/02-security/raw/. Record versions, router type, deployment target, auth library, and data access pattern in notes-nextjs-security-wasp-drone.md.
  2. Follow guides/01-version-and-advisory-check.md: confirm lockfile versions, settle advisory preconditions, rewrite or drop scanner findings, append them to findings-nextjs-security-wasp-drone.jsonl.
  3. Follow guides/02-proxy-middleware-and-auth-boundaries.md: build the boundary map, test middleware-only auth, matcher gaps, unverified sessions, and the auth library checks.
  4. Follow guides/03-server-actions-and-route-handlers.md: read every action and handler for authentication, ownership, input trust, return values, CSRF, CORS, and SSRF.
  5. Follow guides/04-data-exposure-and-caching.md: secrets and NEXT_PUBLIC_, props to Client Components, server-only, source maps, taint, use cache, unstable_cache, static and ISR output.
  6. Follow guides/05-config-and-headers.md: images, rewrites and redirects, headers, CSP, build switches, next/og.
  7. At the end of steps 3 to 6, sweep references/ai-failure-patterns.md and confirm hits through their owning checks.
  8. Follow guides/06-writing-findings.md: write and validate findings, metrics measures, and notes. Report the counts and the verdict input to the orchestrator.

References map

PathLoad when
guides/00-scoping.md to guides/06-writing-findings.mdIn order, for every run
references/REFERENCE.mdIndex of all references and the script's inputs, outputs, and limits
references/advisory-table.mdAny version or advisory question
references/next-advisories.jsonRead by the scanner; edit only when refreshing research
references/checks-proxy-and-auth-boundaries.mdGuide 02
references/checks-server-actions-and-route-handlers.mdGuide 03
references/checks-data-exposure-and-caching.mdGuide 04
references/checks-config-and-headers.mdGuide 05
references/ai-failure-patterns.mdEnd of guides 02 to 05
references/finding-templates.mdGuide 06
references/research/distilled-nextjs-security.mdVerifying a claim or settling a dispute
Source research archive (not shipped with the plugin)Source-repository only; the shipped distillation summarizes it, do not require it
scripts/next_audit_scan.pyRun once in guide 00; rerun after refreshing the advisory table

Related drones and stingers

  • nextjs-security-wasp-drone - The paired agent. The orchestrator dispatches it for every app with the nextjs stack.
  • audit-my-code-stinger - Owns the run contract this skill writes against (references/audit-contract.md).
  • security-stinger - Generic security pass that runs next to this one; overlapping findings are merged by the brief renderer.
  • react-security pair - Client component patterns in the same app.
  • web-security-posture-stinger - Passive outside-in checks of a deployed site, if the user wants headers confirmed live.

Critical Directive

  • You must read all files and context contained within your skill.
  • In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.
  • Additional related skills can be found here:
    • security-stinger (core Wasp Nest, when installed) - Generic security audit pass that runs alongside this one in the security dimension.
    • web-security-posture-stinger - Passive external posture checks of a deployed site.

Designed and built by Legion Code Inc. Licensed under AGPL-3.0-or-later.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Nextjs Security Stinger?

Deep Next.js security audit (13 to 16, App and Pages Router). Version advisories, proxy and middleware auth, Server Actions, Route Handlers, data exposure, caching, config. Read-only.

Firwat Nextjs Security Stinger op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Nextjs Security Stinger besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Nextjs Security Stinger an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/nextjs-security-stinger an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Nextjs Security Stinger benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Nextjs Security Stinger benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Nextjs Security Stinger domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Nextjs Security Stinger gratis?

Jo. legioncodeinc huet de Skill ënner der Lizenz AGPL-3.0-or-later op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇