Apple
d77a4769c6
🔒 security(daarion-web): Hardening after crypto-mining incidents
## Root Cause Analysis
- Found CRITICAL RCE vulnerability in Next.js 15.0.3 (GHSA-9qr9-h5gf-34mp)
- 10 vulnerabilities total including SSRF, DoS, Auth Bypass
- Attack vector: exposed port 3000 + vulnerable Next.js → remote code execution
## Security Fixes
- Upgraded Next.js: 15.0.3 → 15.5.9 (0 vulnerabilities)
- Upgraded eslint-config-next: 15.0.3 → 15.5.9
## Hardening (New Files)
- apps/web/Dockerfile.secure: Multi-stage build, read-only FS, no shell
- docker-compose.web.secure.yml: Resource limits, cap_drop ALL, localhost bind
- scripts/rebuild-daarion-web-secure.sh: Local secure rebuild with Trivy scan
- scripts/deploy-daarion-web-node1.sh: Production deployment to NODE1
- SECURITY-REBUILD-REPORT.md: Full incident analysis and remediation report
## Key Security Measures
- restart: "no" (until verified)
- ports: 127.0.0.1:3000 (localhost only, use Nginx reverse proxy)
- read_only: true
- cap_drop: ALL
- resources.limits: 1 CPU, 512M RAM
- no-new-privileges: true
## Related Incidents
- Incident #1 (Jan 8): catcal, G4NQXBp miners
- Incident #2 (Jan 9): softirq, vrarhpb miners
- Hetzner AbuseID: 10F3971:2A
Co-authored-by: Cursor Agent <agent@cursor.sh>
2026-01-09 02:08:13 -08:00
..
2025-11-28 09:09:00 -08:00
2025-11-28 09:25:04 -08:00
2025-11-27 09:29:42 -08:00
2025-11-28 05:39:59 -08:00
2025-11-27 00:19:40 -08:00
2025-11-17 05:24:36 -08:00
2025-12-02 07:07:58 -08:00
2025-12-02 13:41:03 -08:00
2025-12-02 07:07:58 -08:00
2025-11-30 14:51:59 -08:00
2025-11-30 14:53:53 -08:00
2025-11-27 00:19:40 -08:00
2025-12-01 06:03:08 -08:00
2025-11-30 13:52:01 -08:00
2025-12-02 13:57:28 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2026-01-09 02:08:13 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-21 00:35:41 -08:00
2025-11-30 15:19:11 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-12-01 06:50:48 -08:00
2025-12-02 13:41:03 -08:00
2025-12-03 10:12:21 -08:00
2025-11-27 00:19:40 -08:00
2025-12-02 02:11:26 -08:00
2025-12-05 02:41:43 -08:00
2025-11-30 13:52:01 -08:00
2025-12-01 08:03:46 -08:00
2025-12-01 03:43:06 -08:00
2025-11-27 00:19:40 -08:00
2026-01-09 02:08:13 -08:00
2025-11-16 11:13:40 -08:00
2025-12-02 13:57:28 -08:00
2025-11-30 15:25:37 -08:00
2025-12-02 13:45:14 -08:00
2025-11-27 00:19:40 -08:00
2025-12-01 08:47:37 -08:00
2025-12-02 01:56:39 -08:00
2025-11-17 05:24:36 -08:00
2025-11-16 11:13:40 -08:00
2025-11-27 00:19:40 -08:00
2025-12-02 07:07:58 -08:00
2025-11-27 00:19:40 -08:00
2025-12-02 07:02:08 -08:00
2025-12-02 07:07:58 -08:00
2025-12-02 07:07:58 -08:00
2025-12-02 07:07:58 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-12-02 07:07:58 -08:00
2025-12-02 07:07:58 -08:00
2025-12-02 07:07:58 -08:00
2025-12-02 07:07:58 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-28 05:23:14 -08:00
2025-12-01 08:31:25 -08:00
2025-11-15 08:56:14 -08:00
2025-11-27 00:19:40 -08:00
2025-12-02 07:07:58 -08:00
2025-12-02 02:11:26 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00
2025-11-27 00:19:40 -08:00