Add honeypot-path collector to detect exposed sensitive endpoints #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a new TLS certificate is issued and appears in Certificate Transparency logs, scanners immediately probe the new host for commonly-exploitable paths. The log excerpt below was observed within minutes of a new host coming online:
These paths are well-known attack surfaces: leaked credentials (
.env,.git/config,sftp.json), admin panels (/console/,/server-status), framework debug endpoints (/actuator/env,/telescope/requests,/@vite/env), and CMS entry points (/xmlrpc.php,/wp-json/).Proposed feature
Add a honeypot-path collector (similar to
wellknownCollector) that probes a curated list of these paths and reports any that return a non-404/non-410 response.Collector
A new
HoneypotDatacollector probes a fixed list of paths on the first HTTPS IP (same pattern aswellknownCollector). It records status code and response size for each path.Rules
One or more rules evaluate the collected data:
http.honeypot.sensitive_exposed:StatusWarnorStatusCriticalfor any path returning2xxor3xxhttp.honeypot.info_leak: flag paths that return200with a non-trivial body (> N bytes), since even an empty shell could be a misconfiguration401/403could be reported asStatusInfo("endpoint exists but is protected")Path list (initial)
Derived from real CT-scanner traffic; grouped by category for maintainability:
/.env,/.git/config,/.vscode/sftp.json,/.DS_Store/actuator/env,/server-status,/debug/default/view,/trace.axd,/@vite/env,/info.php/console/,/server,/login.action,/telescope/requests/v2/_catalog,/graphql,/api/graphql,/api/gql/xmlrpc.php,/wp-json/,/?rest_route=/wp/v2/users//config.json,/version,/api/v1/healthThe list should live in a dedicated slice (easy to extend) rather than be inlined in the collector logic.