/claim #6403
This PR implements honeypot detection for nuclei to identify hosts that intentionally match an abnormally high percentage of templates, which may be honeypots designed to generate false positives.
Some hosts on Shodan respond positively to every nuclei template matcher to generate noise/false positives. These honeypots can flood scan results with useless data.
Implemented a honeypot detection feature that:
# Enable honeypot detection with default 50% threshold
nuclei -u target.com -hpd
# Enable with custom threshold (e.g., 30%)
nuclei -u target.com -hpd -hpt 30
| Flag | Short | Description | Default |
|---|---|---|---|
--honeypot-detection |
-hpd |
Enable honeypot detection | false |
--honeypot-threshold |
-hpt |
Detection threshold percentage | 50 |
pkg/protocols/common/honeypotdetection: Core detection logic with thread-safe cachingpkg/output/honeypot_writer.go: Output wrapper that intercepts results for trackingAdded comprehensive unit tests including:
Fixes #6403
New Features
Tests
Chores
Erdogan Kervanli
@erdogan98
ProjectDiscovery
@projectdiscovery