Skip to main content
skill CX Codex

performing-web-application-scanning-with-nikto — Claude Code skill

performing-web-application-scanning-with-nikto teaches coding agents to run Nikto for web server vulnerability scanning, configuration audits, and SSL checks. Useful during planned audits or incident response.

Apache-2.0 299 installs ★ 36,511 updated 2026-08-31

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-application-scanning-with-nikto -a claude-code
Open on GitHub

What performing-web-application-scanning-with-nikto does

This skill guides the agent through operating Nikto against target web servers. The scanner inspects systems for 7,000 risky files, evaluates version records across 1,250+ web servers, and flags configuration defects on 270 server builds. It focuses on finding exposed admin panels, injection vulnerabilities, and unsafe HTTP methods like PUT or DELETE.

The reference material covers CLI patterns for single hosts, custom ports, and multi-target workflows. Users get concrete commands for tuning flags, proxy routing, evasion techniques, and pause intervals. Scan outputs can be formatted into CSV, XML, HTML, or JSON files.

Running these scans requires a local Nikto installation on Perl and explicit written authorization for target hosts. Without network reachability to the target ports, the scanner fails immediately.

What it helps with

  • Scan web servers for insecure default files and known CGI flaws
  • Detect outdated server software versions and missing security headers
  • Export vulnerability scan findings into HTML, XML, or JSON reports
  • Feed host lists from targets.txt into parallel scanning jobs

Example prompts for the agent

  • Run a basic Nikto scan against https://target.example.com and save the report to report.html
  • Scan target.example.com with -Tuning 49a to check for injection flaws and authentication bypasses
  • Execute parallel Nikto scans across all hosts listed in targets.txt using GNU parallel

How to install performing-web-application-scanning-with-nikto

1Skills CLI (Vercel)

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-application-scanning-with-nikto -a claude-code

2Manually: put the files in place

~/.claude/skills/performing-web-application-scanning-with-nikto/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/performing-web-application-scanning-with-nikto/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about performing-web-application-scanning-with-nikto

How do I install performing-web-application-scanning-with-nikto in Claude Code?

Run npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-application-scanning-with-nikto -a claude-code. The tool places the skill into ~/.claude/skills/performing-web-application-scanning-with-nikto/SKILL.md.

What does performing-web-application-scanning-with-nikto do?

It instructs the agent on structuring Nikto CLI commands for web server security audits. The skill outlines tuning flags, evasion modes, output formatting, and batch scanning pipelines.

What prerequisites are needed before using this skill?

You need Nikto installed on your system via Perl, active network access to target hosts, and written testing authorization.

Source text

SKILL.md · Apache-2.0
---
name: performing-web-application-scanning-with-nikto
description: Runs Nikto, an open-source web server and web application scanner,
  to test over 7,000 potentially dangerous files/programs, check for outdated versions
  across 1,250+ servers, and identify XSS, SQL injection, misconfigurations, default
  credentials, and vulnerable CGI scripts. Use when performing web application vulnerability
  scanning, security assessments, scheduled security testing, or validating web
  server security controls.
domain: cybersecurity
subdomain: vulnerability-management
tags:
- vulnerability-management
- cve
- nikto
- web-scanning
- owasp
- risk
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- ID.RA-01
- ID.RA-02
- ID.IM-02
- ID.RA-06
mitre_attack:
- T1190
- T1203
- T1068
---
# Performing Web Application Scanning with Nikto

## Overview
Nikto is an open-source web server and web application scanner that tests against over 7,000 potentially dangerous files/programs, checks for outdated versions of over 1,250 servers, and identifies version-specific problems on over 270 servers. It performs comprehensive tests including XSS, SQL injection, server misconfigurations, default credentials, and known vulnerable CGI scripts.


## When to Use

- When conducting security assessments that involve performing web application scanning with nikto
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing

## Prerequisites
- Nikto installed (Perl-based, included in Kali Linux)
- Written authorization to scan target web servers
- Network access to target web applications
- Understanding of HTTP/HTTPS protocols

## Core Concepts

### What Nikto Detects
- Server misconfigurations and dangerous default files
- Outdated server software versions with known CVEs
- Common CGI vulnerabilities and dangerous scripts
- Default credentials and admin pages
- HTTP methods that should be disabled (PUT, DELETE, TRACE)
- SSL/TLS misconfigurations and weak ciphers
- Missing security headers (X-Frame-Options, CSP, HSTS)
- Information disclosure through headers and error pages

### Nikto vs Other Web Scanners
| Feature | Nikto | OWASP ZAP | Burp Suite | Nuclei |
|---------|-------|-----------|------------|--------|
| License | Open Source | Open Source | Commercial | Open Source |
| Focus | Server/Config | App Logic | Full Pentest | Template-Based |
| Speed | Fast | Medium | Slow | Very Fast |
| False Positives | Moderate | Low | Low | Low |
| Authentication | Basic | Full | Full | Template |
| Active Community | Yes | Yes | Yes | Yes |

## Workflow

### Step 1: Basic Scanning
```bash
# Basic scan against a target
nikto -h https://target.example.com

# Scan specific port
nikto -h target.example.com -p 8443

# Scan multiple ports
nikto -h target.example.com -p 80,443,8080,8443

# Scan with SSL enforcement
nikto -h target.example.com -ssl

# Scan from a host list file
nikto -h targets.txt
```

### Step 2: Advanced Scanning Options
```bash
# Comprehensive scan with all tuning options
nikto -h https://target.example.com \
  -Tuning 123456789abcde \
  -timeout 10 \
  -Pause 2 \
  -Display V \
  -output report.html \
  -Format htm

# Tuning options control test types:
# 0 - File Upload
# 1 - Interesting File / Seen in logs
# 2 - Misconfiguration / Default File
# 3 - Information Disclosure
# 4 - Injection (XSS/Script/HTML)
# 5 - Remote File Retrieval - Inside Web Root
# 6 - Denial of Service
# 7 - Remote File Retrieval - Server Wide
# 8 - Command Execution / Remote Shell
# 9 - SQL Injection
# a - Authentication Bypass
# b - Software Identification
# c - Remote Source Inclusion
# d - WebService
# e - Administrative Console

# Scan with specific tuning (XSS + SQL injection + auth bypass)
nikto -h https://target.example.com -Tuning 49a

# Scan with authentication
nikto -h https://target.example.com -id admin:password

# Scan through a proxy
nikto -h https://target.example.com -useproxy http://proxy:8080

# Scan with custom User-Agent
nikto -h https://target.example.com -useragent "Mozilla/5.0 (Security Scan)"

# Scan specific CGI directories
nikto -h https://target.example.com -Cgidirs /cgi-bin/,/scripts/

# Evasion techniques (IDS avoidance for authorized testing)
# 1-Random URI encoding, 2-Directory self-reference
# 3-Premature URL ending, 4-Prepend long random string
nikto -h https://target.example.com -evasion 1234
```

### Step 3: Output and Reporting
```bash
# Generate multiple output formats
nikto -h https://target.example.com -output scan.csv -Format csv
nikto -h https://target.example.com -output scan.xml -Format xml
nikto -h https://target.example.com -output scan.html -Format htm
nikto -h https://target.example.com -output scan.txt -Format txt

# JSON output (newer versions)
nikto -h https://target.example.com -output scan.json -Format json

# Save to multiple formats simultaneously
nikto -h https://target.example.com \
  -output scan_report \
  -Format htm
```

### Step 4: Scan Multiple Targets
```bash
# Create targets file (one per line)
cat > targets.txt << 'EOF'
https://app1.example.com
https://app2.example.com:8443
http://internal-app.corp.local
192.168.1.100:8080
EOF

# Scan all targets
nikto -h targets.txt -output multi_scan.html -Format htm

# Parallel scanning with GNU parallel
cat targets.txt | parallel -j 5 "nikto -h {} -output {/}_report.html -Format htm"
```

### Step 5: SSL/TLS Assessment
```bash
# Comprehensive SSL scan
nikto -h https://target.example.com -ssl \
  -Tuning b \
  -Display V

# Check for specific SSL vulnerabilities
# Nikto checks for:
# - Expired certificates
# - Self-signed certificates
# - Weak cipher suites
# - SSLv2/SSLv3 enabled
# - BEAST, POODLE, Heartbleed indicators
# - Missing HSTS header
```

### Step 6: Integration with Other Tools
```bash
# Pipe Nmap results into Nikto
nmap -p 80,443,8080 --open -oG - 192.168.1.0/24 | \
  awk '/open/{print $2}' | \
  while read host; do nikto -h "$host" -output "${host}_nikto.html" -Format htm; done

# Export to Metasploit-compatible format
nikto -h target.example.com -output msf_import.xml -Format xml

# Parse Nikto XML output with Python for custom reporting
python3 -c "
import xml.etree.ElementTree as ET
tree = ET.parse('scan.xml')
for item in tree.findall('.//item'):
    print(f\"[{item.get('id')}] {item.findtext('description', '')[:100]}\")
"
```

## Interpreting Results

### Severity Classification
- **OSVDB/CVE References**: Cross-reference with NVD for CVSS scores
- **Server Information Disclosure**: Version banners, technology stack
- **Dangerous HTTP Methods**: PUT, DELETE, TRACE enabled
- **Default/Backup Files**: .bak, .old, .swp, web.config.bak
- **Admin Interfaces**: /admin, /manager, /console exposed
- **Missing Security Headers**: CSP, X-Frame-Options, HSTS

### Common False Positives
- Generic checks triggered by custom 404 pages
- Anti-CSRF tokens flagged as form vulnerabilities
- CDN/WAF responses misidentified as vulnerable
- Load balancer health check pages

## Best Practices
1. Always obtain written authorization before scanning
2. Run Nikto in conjunction with application-level scanners (ZAP, Burp)
3. Use -Pause flag to reduce load on production servers
4. Validate findings manually before reporting
5. Combine with SSL testing tools (testssl.sh, sslyze) for comprehensive coverage
6. Schedule regular scans as part of continuous vulnerability management
7. Keep Nikto database updated for latest vulnerability checks
8. Use appropriate evasion settings only for authorized IDS testing

## Common Pitfalls
- Running Nikto without authorization (legal liability)
- Treating Nikto as a complete web application scanner (it focuses on server/config issues)
- Not validating results leading to false positive reports
- Scanning too aggressively against production systems
- Ignoring SSL/TLS findings as "informational"

## Related Skills
- scanning-infrastructure-with-nessus
- scanning-apis-for-security-vulnerabilities
- performing-network-vulnerability-assessment

© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills

Similar skills

All skills for Security →

From the same set152

The whole set →
exploiting-jwt-algorithm-confusion-attack The exploiting-jwt-algorithm-confusion-attack skill tests JWT authentication for algorithm switching, alg:none, and key-header issues. Use it for authorized API security checks. CX Codex +1 303installs analyzing-powershell-empire-artifacts The analyzing-powershell-empire-artifacts skill hunts for PowerShell Empire traces in Windows event logs and builds a report with IOCs, decoded payloads, and MITRE ATT&CK mappings. CX Codex +1 303installs configuring-oauth2-authorization-flow The configuring-oauth2-authorization-flow skill guides OAuth 2.0 setup for web, mobile, SPA, and machine clients. Use it when adding authorization or reviewing an existing flow. CX Codex +1 301installs exploiting-broken-function-level-authorization The exploiting-broken-function-level-authorization skill for Claude Code tests APIs for OWASP API5:2023: whether low-privilege users can invoke admin functions by manipulating HTTP methods, paths, and parameters. CX Codex +1 299installs exploiting-server-side-request-forgery exploiting-server-side-request-forgery — a skill for discovering and exploiting SSRF vulnerabilities in web applications: access cloud metadata, internal services, and restricted network resources during authorized penetration tests. CX Codex +1 296installs implementing-jwt-signing-and-verification implementing-jwt-signing-and-verification is a Claude Code skill for building JWT signing and verification. It activates for authentication work or audits of token checks. CX Codex +1 294installs analyzing-supply-chain-malware-artifacts The analyzing-supply-chain-malware-artifacts skill investigates supply-chain malware artifacts, from altered software updates to tainted builds and sideloaded dependencies. CX Codex +1 293installs scanning-network-with-nmap-advanced scanning-network-with-nmap-advanced — a skill for advanced network reconnaissance with Nmap: host discovery, service version detection, firewall evasion, NSE vulnerability checks, and structured output parsing into XML or CSV. CX Codex +1 286installs

Project sponsors

Companies that keep this analytics open