Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计未展示

next.js-security-scanNext.js 安全 scan

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

8,750

周安装

252

GitHub Stars

90

下载量

1,863
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:next.js-security-scan(Next.js 安全 scan)
来源仓库:https://github.com/sugarforever/01coder-agent-skills
仓库路径:skills/next.js-security-scan
安装命令:
npx skills add https://github.com/sugarforever/01coder-agent-skills --skill 'Next.js Security Scan'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sugarforever/01coder-agent-skills --skill 'Next.js Security Scan'

简介

该技能用于扫描 Next.js 应用的安全漏洞与潜在风险点。

  • 适用于上线前安全检查、第三方依赖审计与敏感数据处理评估。
  • 检测 XSS、CSRF、未授权访问与硬编码凭证等常见问题。
  • 需配合 .env 文件脱敏与 secrets 管理工具使用,避免泄露真实密钥。
  • 扫描结果仅为初步判断,完整安全评估应由专业团队执行。

SKILL.md

Next.js Security Scan Skill

This skill enables comprehensive security scanning of Next.js and TypeScript/JavaScript projects based on OWASP guidelines and industry best practices.

When to Use This Skill

  • Security audits of Next.js applications
  • Code review for security vulnerabilities
  • Pre-deployment security checks
  • Dependency vulnerability assessment
  • Detecting hardcoded secrets and credentials

Scan Types

1. Quick Scan

Fast scan focusing on critical vulnerabilities:

  • Hardcoded secrets and API keys
  • Dangerous function usage (dangerouslySetInnerHTML, eval)
  • Missing authentication in Server Actions
  • Known vulnerable dependencies

2. Full Scan

Comprehensive security assessment covering:

  • All OWASP Top 10:2025 categories
  • XSS vulnerability patterns
  • Injection vulnerabilities (SQL, NoSQL, Command)
  • Authentication and authorization flaws
  • Security misconfigurations
  • Cryptographic failures
  • Next.js-specific vulnerabilities
  • Dependency audit (CVE check)
  • Environment variable exposure

3. Targeted Scan

Focus on specific vulnerability categories:

  • --xss - Cross-site scripting patterns
  • --injection - SQL/NoSQL/Command injection
  • --auth - Authentication/authorization issues
  • --secrets - Hardcoded credentials
  • --deps - Dependency vulnerabilities
  • --nextjs - Next.js specific issues

Scan Procedure

Step 1: Project Discovery

  1. Identify project type (Next.js App Router, Pages Router, or plain React)
  2. Locate configuration files (next.config.js, package.json, .env*)
  3. Map the codebase structure

Step 2: Dependency Audit

Run the dependency audit script:

./scripts/dependency-audit.sh

Or manually:

npm audit --json
# or
yarn audit --json

Step 3: Secret Scanning

Scan for hardcoded secrets:

python scripts/secret-scanner.py /path/to/project

Important: Environment File Handling

  • By default, real .env files are SKIPPED (.env, .env.local, .env.production, etc.)
  • These files contain actual secrets and should not be in version control
  • Only .env.example and .env.template files are analyzed for documentation quality
  • Use --include-env-files flag only if explicitly requested by user

The scanner will:

  1. Scan source code for hardcoded secrets
  2. Analyze .env.example templates to check:

- Which sensitive variables are documented - Whether variables have descriptions (comments) - If placeholder values look like real secrets - Suggestions for missing common variables

Step 4: Pattern Analysis

For each file in the codebase, check against patterns in:

  • references/xss-patterns.md - XSS vulnerabilities
  • references/injection-patterns.md - Injection flaws
  • references/auth-vulnerabilities.md - Auth issues
  • references/nextjs-specific.md - Next.js vulnerabilities

Step 5: Report Generation

Generate a security report using:

  • assets/report-template.md - Report structure

Severity Classification

SeverityDescriptionAction Required
CRITICALExploitable vulnerability with severe impactImmediate fix required
HIGHSignificant security riskFix before deployment
MEDIUMPotential security issueFix in next release
LOWMinor security concernConsider fixing
INFOSecurity best practice suggestionOptional improvement

Key Files to Scan

Always Check

  • **/*.ts, **/*.tsx, **/*.js, **/*.jsx - Source code
  • next.config.js, next.config.mjs - Next.js configuration
  • package.json, package-lock.json - Dependencies
  • middleware.ts, middleware.js - Middleware security

Environment Files

  • .env.example, .env.template - SCAN for template analysis
  • .env, .env.local, .env.production - SKIP by default (contain real secrets)

Note: Real .env files should never be committed to version control. The scanner analyzes .env.example templates to ensure proper documentation of required variables.

High Priority Locations

  • app/api/**/* - API routes (App Router)
  • pages/api/**/* - API routes (Pages Router)
  • **/actions.ts, **/*-actions.ts - Server Actions
  • lib/auth*, utils/auth* - Authentication code
  • **/middleware.* - Middleware files

Output Format

Findings should be reported as:

[SEVERITY] Category: Description
  File: path/to/file.ts:lineNumber
  Code: <relevant code snippet>
  Risk: <explanation of the security risk>
  Fix: <recommended remediation>

Integration with CI/CD

This skill can generate output compatible with:

  • GitHub Security Advisories
  • SARIF format for GitHub Code Scanning
  • JSON for custom integrations

References

Load additional context as needed:

  • references/owasp-top-10.md - OWASP Top 10:2025 quick reference
  • references/xss-patterns.md - XSS detection patterns
  • references/injection-patterns.md - Injection vulnerability patterns
  • references/auth-vulnerabilities.md - Authentication security patterns
  • references/nextjs-specific.md - Next.js specific vulnerabilities and CVEs

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.82%
按下载量换算686

Claude

30.32%
按下载量换算565

Cursor

19.93%
按下载量换算371

Gemini CLI

9.87%
按下载量换算184

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills