Skip to content
Back to Blog
·9 min read·technology

Nuclei Vulnerability Scanning: A DevSecOps Guide for Teams

Nuclei brings continuous, YAML-based vulnerability scanning to DevSecOps pipelines, helping Indian teams catch CVEs and misconfigs before manual VAPT.

BR

Bachao.AI Research Team

Cybersecurity Research

Scan Your Attack Surface

Security exposure this creates

Unpatched vulnerabilities in your tech stack are the #1 entry point for breaches targeting Indian businesses. Here's what to watch.

Nuclei is an open-source vulnerability scanning tool from ProjectDiscovery that runs YAML-defined templates against a target list to detect CVEs, misconfigurations, exposed panels, and default credentials at scale. Unlike a manual pentest, Nuclei is built for continuous, repeatable scanning — the same template set runs identically today, tomorrow, and inside a CI/CD pipeline on every deploy. For Indian DevSecOps teams managing dozens or hundreds of assets, Nuclei closes the gap between periodic manual VAPT and the daily drift of new subdomains, new services, and newly disclosed CVEs that manual testing cycles simply cannot keep pace with. It complements manual penetration testing; it does not replace it.

What Nuclei Vulnerability Scanning Actually Does

Nuclei vulnerability scanning takes a list of targets (URLs, IPs, or hostnames) and a set of YAML templates, then sends each template's defined requests to each target and evaluates the response against a matcher — a string, regex, status code, or word that confirms the finding. Because templates are plain YAML rather than compiled code, the community-maintained nuclei-templates repository has grown to thousands of checks contributed by researchers worldwide, updated continuously as new CVEs and exposures are disclosed.

The engine itself is written in Go and designed for concurrency — it can fan out requests across thousands of hosts in parallel, rate-limited to avoid overwhelming target infrastructure. That combination of a fast engine and a crowdsourced, constantly-updated template library is what makes Nuclei suitable for continuous scanning rather than a one-off tool run.

Template Categories: What Gets Detected

Templates in the public repository are organised into categories, and understanding the split matters when you decide what to enable in a production scanning pipeline.

CategoryWhat it findsTypical risk if triggered
CVEsKnown, versioned vulnerabilities in software and frameworksDirect exploit path, often with public PoC
MisconfigurationsDefault installs, exposed debug endpoints, verbose error pagesInformation disclosure, privilege escalation
ExposuresAPI keys, .git directories, backup files, config files left publicCredential theft, source code leak
Default loginsUnchanged vendor default credentials on admin panelsFull admin takeover
TakeoversDangling DNS records pointing to unclaimed cloud resourcesSubdomain hijack
NetworkOpen ports, exposed services, protocol-level misconfigurationsLateral movement entry point
ℹ️
INFO
Templates carry a severity rating (info, low, medium, high, critical) and metadata tags. Filtering by -severity critical,high and relevant tags is the standard way to keep a CI scan fast and focused rather than running the entire template set on every build.

Running Nuclei at Scale Against Your Own Asset List

The core DevSecOps use case is not "scan one target once" — it's "scan every asset your organisation owns, continuously." That starts with an accurate, current inventory. Nuclei accepts a plain text file of URLs or hosts via -list, which is typically fed from asset discovery tooling (subdomain enumeration, cloud asset inventories, or an internal CMDB).

nuclei -list targets.txt -t cves/ -t exposures/ -severity critical,high -rate-limit 150 -o results.json

Running at scale introduces operational constraints that a single ad-hoc scan doesn't: rate limiting so scans don't degrade production services, timeout tuning for slow or geographically distant assets, and scheduling so the full template set runs on a cadence (daily incremental, weekly full) rather than as one massive blocking job. Output in structured JSON is what makes the results consumable by downstream tooling — ticketing systems, SIEMs, or a triage dashboard — instead of a scroll of terminal text nobody reads twice.

180%Increase in initial-access breaches via exploited vulnerabilities (Verizon DBIR 2024)
$4.88MGlobal average cost of a data breach (IBM Cost of a Data Breach Report 2024)

Know your vulnerabilities before attackers do

Run a free VAPT scan — takes 5 minutes, no signup required.

Book Your Free Scan

Writing Custom Templates

Public templates cover known, disclosed issues. They will never cover your organisation's internal APIs, custom authentication flows, or business-logic-specific misconfigurations — for that, teams write custom templates. A Nuclei template is a YAML file with an id, info block (name, author, severity, tags), and one or more request blocks defining the HTTP method, path, headers, and body, paired with a matchers block that defines success conditions.

yaml
id: internal-debug-endpoint
info:
  name: Internal Debug Endpoint Exposed
  severity: high
  tags: exposure,custom
http:
  - method: GET
    path:
      - "{{BaseURL}}/debug/vars"
    matchers:
      - type: status
        status:
          - 200

Custom templates let a security team codify institutional knowledge — "this internal endpoint should never be reachable from outside the VPC" — into a check that runs automatically on every scan, rather than relying on someone remembering to test it manually each quarter.

💡
TIP
Version-control custom templates in the same repository as your infrastructure code. When a new internal service ships, the corresponding detection template ships alongside it — treat template coverage as part of the definition of done, not an afterthought.

CI/CD Integration

The highest-leverage place to run Nuclei is inside the deployment pipeline itself, not as a separate weekly job disconnected from the release cycle. A typical pattern: on every merge to a staging or pre-production branch, a pipeline stage runs Nuclei against the newly deployed environment with a curated, fast template subset (critical and high severity only, tagged for the relevant stack — say, nginx, wordpress, or nodejs), and fails the build or opens a ticket if a match is found.

This shifts vulnerability detection left — a misconfigured header or an exposed .env file is caught before it reaches production, not three months later during the next scheduled VAPT engagement. It also builds an audit trail: every deploy has an associated scan record, which is valuable evidence during compliance reviews.

graph TD A[Select templates] --> B[Load target list] B --> C[Run scan] C --> D[Findings] D -->|Critical or High| E[Triage manually] D -->|Info or Low| F[Log and monitor] E --> G[Fix or accept risk] G --> H[Integrate into CI gate] F --> H style A fill:#1e3a5f,stroke:#3B82F6,color:#e2e8f0 style B fill:#1e3a5f,stroke:#3B82F6,color:#e2e8f0 style C fill:#1e3a5f,stroke:#3B82F6,color:#e2e8f0 style D fill:#5f1e1e,stroke:#EF4444,color:#e2e8f0 style E fill:#5f1e1e,stroke:#EF4444,color:#e2e8f0 style F fill:#1e3a5f,stroke:#3B82F6,color:#e2e8f0 style G fill:#1e3d2f,stroke:#10B981,color:#e2e8f0 style H fill:#1e3d2f,stroke:#10B981,color:#e2e8f0

Triage and False-Positive Management

Automated scanning at scale produces noise, and unmanaged noise is how a security team stops trusting — and eventually stops reading — its own scan output. Every finding needs a triage step before it becomes an action item: confirm the match is genuine (not a matcher firing on a benign response), assess real exploitability in context (an exposed .git directory on an internal-only staging box is lower urgency than the same finding on a public production domain), and assign ownership.

A practical triage workflow: critical and high severity findings route to an on-call security or dev channel for same-day review; medium and low severity findings batch into a weekly review; confirmed false positives get suppressed at the template or target level so they don't regenerate noise on every subsequent scan run. Nuclei supports exclusion via -exclude-id and target-specific configuration files precisely so that a known, accepted finding doesn't keep re-triggering alerts.

⚠️
WARNING
A scanner that produces unreviewed findings nobody acts on is worse than no scanner — it creates a false sense of coverage. Triage discipline, not template count, is what determines whether continuous scanning actually reduces risk.
pie title Illustrative Template Category Mix "CVEs" : 32 "Exposures" : 24 "Misconfigs" : 20 "Default Logins" : 12 "Takeovers" : 7 "Network" : 5

Where Nuclei Fits — and Where It Doesn't

Nuclei is signature and pattern-based. It matches requests and responses against known conditions — it does not understand your application's business logic, cannot chain multiple low-severity findings into a novel exploit path the way a skilled human tester can, and will not find a logic flaw like a broken authorisation check on an endpoint that returns a "normal-looking" 200 response. That's the boundary between continuous automated scanning and manual VAPT: automation catches the volume of known, pattern-matchable issues fast and repeatedly; manual testing finds the business-logic and chained vulnerabilities that require human judgment and context.

The two are not competing approaches — they're sequential. Continuous Nuclei scanning inside CI/CD keeps the baseline clean between engagements, and periodic manual VAPT — ideally delivered with a CERT-In empanelled partner for regulated or compliance-driven engagements — goes deeper into logic and chained attack paths that no template set can enumerate. Bachao.AI, built by Dhisattva AI Pvt Ltd, is built around that same layered model: automated, continuous checks running alongside structured manual assessment, rather than treating either as sufficient on its own.

🎯Key Takeaway
Nuclei's value in a DevSecOps pipeline isn't the scan itself — it's making vulnerability detection continuous and repeatable instead of a quarterly event. But template-based scanning has a hard ceiling: it catches known patterns, not business logic. Budget for both automated CI scanning and periodic manual VAPT; neither alone is sufficient for a defensible security posture, and DPDP Act 2023 accountability requirements make that documented, ongoing diligence — not a one-time audit — the standard regulators expect. See DPDP compliance for what that documentation should cover.

Getting Started Without Overcomplicating It

Teams new to Nuclei often try to run the entire template repository against every asset on day one, which produces an unmanageable flood of findings and burns out whoever is triaging them. Start narrower: run critical and high severity CVE and exposure templates against your production asset list first, build a triage process that actually clears the queue, then expand template coverage and add the CI/CD gate once the workflow is proven. Scanning that generates findings nobody reviews accomplishes nothing.

Whether you run Nuclei in-house or want a structured assessment that combines continuous automated scanning with expert manual review, a free VAPT scan is the fastest way to see where your current asset list actually stands. For teams building out a broader DevSecOps security programme, the Bachao.AI blog covers the rest of the toolchain — from network reconnaissance to compliance mapping — in the same practical, no-fluff format.

Frequently Asked Questions

Is Nuclei free to use?
Yes, Nuclei is open-source under an MIT-style license, maintained by ProjectDiscovery, and the community template repository is free to use and contribute to.
Can Nuclei replace manual penetration testing?
No. Nuclei is excellent at detecting known, pattern-matchable issues like CVEs and misconfigurations at scale, but it cannot find business-logic flaws or chain multiple low-severity issues into a novel exploit the way a skilled manual tester can. Use both.
How often should Nuclei scans run in a CI/CD pipeline?
Most teams run a fast, curated template subset on every deploy to staging or pre-production, and a full template sweep on a daily or weekly schedule against the complete asset inventory outside the deploy path.
Is it legal to run Nuclei against any website?
No. Nuclei should only be run against assets you own or have explicit written authorisation to test. Scanning third-party systems without consent can violate Sections 43 and 66 of India's IT Act, 2000.
What's the biggest risk of running Nuclei without a triage process?
Alert fatigue. Continuous scanning at scale generates a steady stream of findings, and without a defined triage workflow — severity-based routing, false-positive suppression, clear ownership — teams stop reviewing results, which defeats the purpose of continuous scanning entirely.
Do I need coding skills to write custom Nuclei templates?
No. Templates are declarative YAML files, not compiled code — most security engineers can write a working custom template within an hour of reading the documentation and a few example templates from the public repository.
BR

Bachao.AI Research Team

Cybersecurity Research

AI-powered security research and threat intelligence from the Bachao.AI team. Covering the latest vulnerabilities, CVEs, and cybersecurity developments affecting Indian businesses.

Get cybersecurity insights for Indian SMBs

Weekly vulnerability alerts, DPDP compliance tips, and security guides. No spam — unsubscribe anytime.

We respect your privacy. Your email is never shared.

Find out if you're exposed to this class of threat

Free automated scan — risk score in under 2 hours. No credit card required.

Scan Your Attack Surface
Find your vulnerabilitiesStart free scan →