Nuclei — Fast and Customizable Vulnerability Scanner
Nuclei is a fast, template-based vulnerability scanner. Its community-driven template library covers CVEs, misconfigurations, exposed panels, and security checks — letting you scan applications, APIs, networks, and cloud configurations with simple YAML templates.
这个资产会安全暂存
这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。
npx -y tokrepo@latest install 40702aa3-372b-11f1-9bc6-00163e2b0d79 --target codex先暂存文件;激活前需要读取暂存 README 和安装计划。
What it is
Nuclei is a fast, template-based vulnerability scanner by ProjectDiscovery. Its community-driven template library covers CVEs, misconfigurations, exposed admin panels, default credentials, and security checks. You point Nuclei at a target, and it runs thousands of checks in parallel using YAML templates.
Nuclei targets security researchers, penetration testers, and DevSecOps teams who need automated vulnerability scanning across web applications, APIs, and infrastructure.
How it saves time or tokens
Nuclei replaces manual security checks with automated template scanning. The community maintains thousands of templates updated for new CVEs within days of disclosure. Running Nuclei against a target in CI/CD catches vulnerabilities before deployment.
Templates are YAML files you can read, modify, and write. Custom checks for your application take minutes to create.
How to use
- Install Nuclei:
go install github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest - Update templates:
nuclei -update-templates - Scan a target:
nuclei -u https://example.com - Filter by severity:
nuclei -u https://example.com -severity critical,high
Example
# Custom Nuclei template: check for exposed .env file
id: exposed-env-file
info:
name: Exposed .env File
author: security-team
severity: high
description: Checks for publicly accessible .env files containing secrets
http:
- method: GET
path:
- '{{BaseURL}}/.env'
matchers-condition: and
matchers:
- type: word
words:
- 'DB_PASSWORD'
- 'API_KEY'
- 'SECRET'
condition: or
- type: status
status:
- 200
Run: nuclei -t exposed-env.yaml -u https://target.com
Related on TokRepo
- Security tools -- Security scanning and auditing
- DevOps tools -- CI/CD security integration
Common pitfalls
- Running all templates against a production target generates heavy traffic; use rate limiting (
-rl 100) and severity filters - Some templates trigger active exploitation attempts; use
-tags safefor passive-only scanning in production - False positives occur with broad templates; validate critical findings manually before reporting
常见问题
The community template library contains thousands of templates covering CVEs, misconfigurations, exposed panels, default credentials, and technology detection. The library is updated frequently as new vulnerabilities are disclosed.
Yes. Templates are YAML files with a simple structure: define the HTTP request, set matchers for the response, and specify metadata. Custom templates for internal application checks typically take 5-10 minutes to write.
Use caution. Some templates perform active exploitation. Filter with '-tags safe' for passive detection only. Always get authorization before scanning targets. Use rate limiting to avoid impacting production performance.
Yes. Nuclei supports HTTP, DNS, TCP, and other protocols. For APIs, you can scan individual endpoints, test for authentication bypass, and check for common API vulnerabilities using templates.
Nessus and Burp Suite are commercial tools with GUIs and enterprise features. Nuclei is free, open source, and CLI-based. Nuclei's template system makes it highly customizable. Use Nuclei for automated CI/CD scanning; use Burp Suite for manual penetration testing.
引用来源 (3)
- Nuclei GitHub— Nuclei is a fast template-based vulnerability scanner
- Nuclei Templates— Community-driven vulnerability templates
- ProjectDiscovery— ProjectDiscovery open-source security tools
讨论
相关资产
Polybar — Fast and Customizable Status Bar for Linux
Polybar is a lightweight status bar for Linux window managers that uses simple INI-style configuration to display workspaces, system metrics, notifications, and custom scripts.
Lit — Simple Library for Fast Lightweight Web Components
Lit is a simple library for building fast, lightweight web components. Built by Google on top of the standard Web Components APIs, it provides reactive properties, scoped styles, and a declarative templating system in about 5KB.
Homepage — Highly Customizable Self-Hosted Dashboard
Homepage is a modern, fully customizable application dashboard and startpage. It integrates with 100+ services to display real-time status, weather, bookmarks, and widgets — all configured through simple YAML files.
SWC — Super-Fast Rust-Based JavaScript and TypeScript Compiler
SWC is an extensible Rust-based platform for the next generation of fast developer tools. It can be used for both compilation and bundling, offering 20x faster performance than Babel while maintaining compatibility with its ecosystem.