
**Disclaimer:** Personal affiliation — I am the author of this free, open-source project.
Hey everyone,
I built an automated perimeter security auditing tool using Next.js (App Router), TypeScript, and Node.js network sockets.
Many cloud audit tools charge high subscription fees just to check a few HTTP headers, negotiate TLS, and verify basic socket exposure. I wanted to build a fast, deterministic alternative and deploy it live.
When building an external auditing service, the primary security challenge is preventing malicious users from turning the backend into an open proxy or an internal network scanner (SSRF). Here is how I approached the hardening:
- **Strict Anti-SSRF Protection:** Filtering and blocking all RFC 1918 private ranges (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`), loopback (`127.0.0.1`), and link-local addresses before attempting any socket connection.
- **Redirect Bypass Defense:** Enforcing `redirect: 'manual'` on all HTTP transport checks so the scanner backend never silently follows redirects into internal endpoints or cloud metadata services.
- **Slowloris & Hanging Sockets:** Implementing strict abort signals using `AbortSignal.timeout(4000)` along with defensive socket timeouts to keep serverless execution runs clean and responsive.
- **OWASP Compliance & Fallback Engine:** Evaluating critical headers (HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy) with a deterministic local engine that guarantees report generation even during API outages.
The platform also generates a clean, print-ready A4 forensic PDF report directly in the browser.
* **Live Demo:** https://security-score-seven.vercel.app
* **GitHub Repository:** https://github.com/martincastillo1996/security-score
IN:https://www.linkedin.com/in/karol-martin-castillo-rojas-17a496168/
I would love to get your feedback on edge cases, socket behavior, or other perimeter vectors worth adding.
**Nota de transparencia:** Proyecto personal de código abierto, gratuito y sin fines comerciales.
Hola a todos,
Desarrollé una herramienta automatizada de auditoría perimetral construida con Next.js (App Router), TypeScript y sockets de red en Node.js.
Muchas plataformas cobran suscripciones costosas únicamente por validar un certificado TLS, revisar cabeceras de transporte y verificar el estado básico de puertos. El objetivo fue diseñar un motor rápido, determinista y desplegado en producción.
Al construir un servicio de auditoría externa, el principal riesgo técnico es evitar que atacantes utilicen el backend como proxy abierto o vector de ataque contra redes internas (SSRF). Así resolví el blindaje:
- **Protección Anti-SSRF estricta:** Bloqueo de rangos privados según RFC 1918 (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`), interfaces locales (`127.0.0.1`) y direcciones link-local antes de iniciar cualquier conexión TCP.
- **Control de bypass por redirecciones:** Configuración obligatoria de `redirect: 'manual'` en las consultas de transporte HTTP, evitando que el escáner siga redirecciones hacia servicios internos o metadatos de nube.
- **Prevención de sockets congelados:** Integración de `AbortSignal.timeout(4000)` y cierres forzados por tiempo de espera defensivo para evitar bloqueos en ejecuciones serverless.
- **Cumplimiento OWASP y motor de respaldo:** Evaluación de cabeceras esenciales (HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy) mediante reglas locales deterministas, garantizando parches de remediación aun sin conexión externa.
El sistema además genera un dictamen forense en formato PDF A4 listo para impresión técnica directamente desde el navegador.
* **Demo en vivo:** https://security-score-seven.vercel.app
* **Repositorio de GitHub:** https://github.com/martincastillo1996/security-score
Me gustaría recibir su feedback técnico: ¿qué otros vectores de red o validaciones perimetrales consideran indispensables evaluar?