Logo van Nextjs Security Stinger

Nextjs Security Stinger

Organisatie
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.

Overzicht

Uitgeverlegioncodeinc
Repositoryvibe-coding-tools
Skillnaamnextjs-security-stinger
Sterren
94
Forks
44
Meegeleverde bestanden
19
LicentieAGPL-3.0-or-later
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 19

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door legioncodeinc op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Nextjs Security Stinger in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/nextjs-security-stinger
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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 na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Nextjs Security Stinger in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Nextjs Security Stinger automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Nextjs Security Stinger niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-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.

Waarom Nextjs Security Stinger gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Nextjs Security Stinger bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Nextjs Security Stinger in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/nextjs-security-stinger. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Nextjs Security Stinger gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Nextjs Security Stinger gebruiken?

Zoveel als je wilt. Je kunt Nextjs Security Stinger gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Nextjs Security Stinger gratis?

Ja. Deze skill is door legioncodeinc op GitHub gepubliceerd onder de licentie AGPL-3.0-or-later. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇