hono-honeypot 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +8 -1
- package/README.md +27 -1
- package/package.json +16 -4
package/AGENTS.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# hono-honeypot
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Security middleware for Hono.js. A mini WAF and honeypot path blocker that intercepts vulnerability scanners (nuclei, nikto, sqlmap, dirbuster, gobuster, wpscan), bot crawlers, and brute-force probes before they reach route handlers. Works on all Hono runtimes: Cloudflare Workers, Bun, Deno, Node.js, Vercel Edge, Fastly Compute.
|
|
4
|
+
|
|
5
|
+
## What this is (and isn't)
|
|
6
|
+
|
|
7
|
+
- **Is:** path-based attack pattern blocker. Rejects known scanner targets (`/wp-admin`, `/.env`, `/.git/`, `/actuator`, `/@fs/`) and bans repeat offenders by IP when a store is configured. Mini WAF, scanner deflector, bot blocker.
|
|
8
|
+
- **Is not:** a form-field anti-spam honeypot. Not a rate limiter. Not DDoS protection. Not behavioral bot detection. Not auth/authz. Runs before your auth middleware.
|
|
9
|
+
- **Name:** "honeypot" is figurative. Scanners probing the trap paths get banned when the store is enabled.
|
|
10
|
+
- **OWASP:** reduces attack surface for OWASP Top 10 2025 **A02 Security Misconfiguration** (formerly A05:2021, ranked #2 in 2025) by denying reconnaissance probes for default admin paths, debug endpoints (Spring `/actuator`, Django `/__debug__`, Laravel `/_ignition`), sample/legacy apps with default credentials, and exfiltration of `.env` / `.git/` / `.aws/`. One layer of defense in depth, not a configuration auditor.
|
|
4
11
|
|
|
5
12
|
> Read the full API reference in the README before configuring.
|
|
6
13
|
|
package/README.md
CHANGED
|
@@ -6,10 +6,36 @@
|
|
|
6
6
|
|
|
7
7
|
# hono-honeypot
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Security middleware for [Hono.js](https://hono.dev). A mini WAF and honeypot path blocker that intercepts vulnerability scanners (nuclei, nikto, sqlmap, dirbuster, gobuster, wpscan), bot crawlers, and brute-force probes before they reach your route handlers.
|
|
10
10
|
|
|
11
11
|
Built from analyzing hundreds of thousands of real-world malicious requests in production. Pattern matching runs in sub-millisecond time across all Hono runtimes: Cloudflare Workers, Bun, Deno, Node.js, Vercel Edge, and Fastly Compute.
|
|
12
12
|
|
|
13
|
+
## What this is (and isn't)
|
|
14
|
+
|
|
15
|
+
`hono-honeypot` is **path-based attack pattern blocking** for Hono.js. It rejects requests to known scanner targets (`/wp-admin`, `/.env`, `/.git/`, `/actuator`, `/@fs/`, etc.) before they reach your handlers, optionally banning repeat offenders by IP. Treat it as a mini web application firewall (WAF), scanner deflector, or bot blocker.
|
|
16
|
+
|
|
17
|
+
| What it blocks | What it does NOT block |
|
|
18
|
+
|---|---|
|
|
19
|
+
| Vulnerability scanners: nuclei, nikto, sqlmap, dirbuster, gobuster, wpscan | Spam form submissions (use a hidden form-field trap for that) |
|
|
20
|
+
| WordPress, PHP, cPanel, phpMyAdmin probes | Application-level rate limits (use a separate rate limiter) |
|
|
21
|
+
| `.env`, `.git`, `.aws`, `.ssh` exfiltration attempts | DDoS and volumetric attacks (terminate at Cloudflare or upstream proxy) |
|
|
22
|
+
| Vite dev server exploits (CVE-2025-30208) | OWASP Top 10 injection against your own routes (input validation belongs in handlers) |
|
|
23
|
+
| Path traversal probes, SSRF cloud-metadata probes | Behavioral bot detection (use a fingerprint or device-intelligence service) |
|
|
24
|
+
| 200+ baked-in patterns covering Spring Actuator, Magento REST, Exchange OWA, IoT routers, K8s probes, CI/CD admin panels, and more | Authentication or authorization (this runs before your auth middleware) |
|
|
25
|
+
|
|
26
|
+
The name "honeypot" is figurative: when the IP store is enabled, scanners that probe the trap paths get stuck (struck and banned). It is **not** a form-field anti-spam honeypot.
|
|
27
|
+
|
|
28
|
+
### OWASP alignment
|
|
29
|
+
|
|
30
|
+
Reduces attack surface for [**OWASP Top 10 2025 A02 Security Misconfiguration**](https://owasp.org/Top10/2025/) (formerly A05:2021, ranked #2 in the 2025 edition). Specifically denies reconnaissance probes targeting:
|
|
31
|
+
|
|
32
|
+
- **Sample / legacy applications** left on production with default admin accounts (OWASP A02 Scenario #1: WordPress, phpMyAdmin, Adminer, Magento, cPanel)
|
|
33
|
+
- **Debug endpoints** insecure by default (Spring `/actuator`, Django `/__debug__`, Laravel `/_ignition`, Vite `/@fs/`)
|
|
34
|
+
- **Unnecessary features** enabled in production (admin panels, dev-tooling routes, IoT vendor backdoors)
|
|
35
|
+
- **Sensitive files** that should never be web-accessible (`.env`, `.git/`, `.aws/`, `.ssh/`, backup files, dependency manifests)
|
|
36
|
+
|
|
37
|
+
This is one layer of defense in depth, not a configuration auditor. Pair with proper hardening, secret management, and removal of unused frameworks.
|
|
38
|
+
|
|
13
39
|
## Install
|
|
14
40
|
|
|
15
41
|
```bash
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono-honeypot",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"description": "Hono.js security middleware. Honeypot path blocker that stops vulnerability scanners (nuclei, nikto, sqlmap, dirbuster), bot crawlers, and brute-force probes. Mini WAF with optional IP strike and ban. Zero dependencies. Cloudflare Workers, Bun, Deno, Node.js, Vercel Edge, Fastly Compute.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -31,15 +31,27 @@
|
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
33
|
"hono",
|
|
34
|
+
"hono-middleware",
|
|
34
35
|
"middleware",
|
|
35
36
|
"honeypot",
|
|
36
37
|
"security",
|
|
37
|
-
"
|
|
38
|
+
"waf",
|
|
39
|
+
"web-application-firewall",
|
|
38
40
|
"firewall",
|
|
41
|
+
"bot-protection",
|
|
42
|
+
"bot-blocker",
|
|
43
|
+
"scanner-blocker",
|
|
44
|
+
"vulnerability-scanner",
|
|
45
|
+
"request-filter",
|
|
46
|
+
"ip-ban",
|
|
47
|
+
"owasp",
|
|
48
|
+
"edge",
|
|
49
|
+
"edge-computing",
|
|
39
50
|
"cloudflare-workers",
|
|
40
51
|
"bun",
|
|
41
52
|
"deno",
|
|
42
|
-
"
|
|
53
|
+
"nodejs",
|
|
54
|
+
"typescript"
|
|
43
55
|
],
|
|
44
56
|
"author": "ph33nx (https://github.com/ph33nx)",
|
|
45
57
|
"license": "MIT",
|