Attack surface mapper

From gonzalezpazmonica/pm-workspace · View interactive version

Attack surface mapper is an AI agent skill from the GitHub repository gonzalezpazmonica/pm-workspace. Mapear la superficie de ataque de un dominio (subdominios, OSINT, typosquatting). Usar solo en pruebas autorizadas, cuando haya que inventariar la exposición externa de un dominio propio o contratado.

How to use this skill

Skill file

Attack Surface Mapper — SE-243

AVISO: AUTORIZACIÓN OBLIGATORIA

Este skill ejecuta herramientas activas contra infraestructura real.

Escanear dominios sin autorización escrita puede ser ilegal.

Antes de usar:

bash scripts/surface-map-authorize.sh --target <domain>

Triggers

Flujo

1. Verificar autorización → output/security/authorization-{domain}.txt
2. subfinder  — enumeración pasiva de subdominios
3. httpx      — HTTP probing de subdominios encontrados
4. theHarvester — OSINT: emails, IPs, tecnologías
5. dnstwist   — typosquatting: dominios similares registrados
6. Report     → output/security/surface-map-{domain}-YYYYMMDD.json

Uso

# Paso 1: autorizar
bash scripts/surface-map-authorize.sh --target ejemplo.com

# Paso 2: mapear
bash scripts/attack-surface-map.sh \
  --target ejemplo.com \
  --tools subfinder,httpx,theharvester,dnstwist

Herramientas (Docker fallback automático)

| Herramienta | Imagen Docker | Función |

|---|---|---|

| subfinder | projectdiscovery/subfinder | Enumeración pasiva subdominios |

| httpx | projectdiscovery/httpx | HTTP probing |

| theHarvester | secsi/theharvester | OSINT emails/IPs |

| dnstwist | elceef/dnstwist | Typosquatting detection |

Output

output/security/
  authorization-{domain}.txt          ← gate de autorización
  surface-map-{domain}-YYYYMMDD.json  ← report consolidado
  attack-surface-{domain}-YYYYMMDD/
    subdomains.txt     ← input para pentesting skill Fase 2
    raw/httpx.json
    raw/dnstwist.json
    raw/harvest.txt

Integración

Gate de autorización

Sin output/security/authorization-{domain}.txt con contenido "AUTHORIZED"

y antigüedad < 30 días, el script aborta con exit 1.

El fichero se crea con surface-map-authorize.sh que pide confirmación interactiva.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.