Protección contra
Hacking con Google
Pedro Pablo Pérez García
Gonzalo Álvarez Marañón
INDICE
o
Introducción
o
Recopilación de información
o
Protección de la información
CONFERENCIAS FIST
-3-
NeuroCrypt, S.L.
Anatomía de un ataque
Recopilación de Información
Localizar el Objetivo
Acceso Remoto
Acceso Local
ADMIN
Borrado de Huellas / Pistas
Mantenimiento de Acceso
2.- Recopilación
o
Recopilación en remoto
Pasivo
– Tradicional
– Buscador
Activo
CONFERENCIAS FIST
-5-
NeuroCrypt, S.L.
2.- Recopilación
o
www.iana.org
: Asigna Direcciones
o
www.ripe.net
: Direcciones IP ( Europa )
o
www.arin.net
: Direcciones IP ( America / Africa )
o
www.apnic.net
: Direcciones IP ( Asia / Pacifico )
o
www.allwhois.com
: Todos los dominios
o
www.nic.es
: Dominios .es
CONFERENCIAS FIST
-7-
NeuroCrypt, S.L.
2.- Recopilación
Parámetros:
SITE: Sitio
FILETYPE: Tipo de fichero especifico LINK: Enlaces
CACHE: Caché de google INTITLE:Título de la página INURL: Dirección de la página RELATED: Relativo
DEFINE: Definición
PHONEBOOK: Direcciones
Caracteres:
CONFERENCIAS FIST
-9-
NeuroCrypt, S.L.
2.- Recopilación
Servidor proxy:
www.google.es/translate?u=http://www.playboy.com&langpair=en|en
Navegación anónima:
Uso del caché
Cabeza de puente:
2.- Recopilación
Crawl:
site: www.microsoft.comsite: microsoft.com –www.microsoft.com
Listados:
intitle: Index.of/adminintitle: index.of apache server at allintitle: "index of/root"
Páginas por defecto:
intitle:test.page.for.apache "it worked"
allintitle:Netscape FastTrack Server Home Page
intitle:"Welcome to Windows 2000 Internet Services" intitle:welcome.to.IIS.4.0
allintitle:Welcome to Windows XP Server Internet Services allintitle:"Welcome to Internet Information Server"
CONFERENCIAS FIST
-11-
NeuroCrypt, S.L.
2.- Recopilación
Documentos:
intitle:"Apache HTTP Server" intitle:"documentation"Errores:
intitle:"Error using Hypernews" "Server Software" "HTTP_USER_AGENT=Googlebot""HTTP_USER_AGENT=Googlebot" TNS_ADMIN
CGI Scanner:
inurl:/iisadmpwd/PortScanning:
inurl:5800"VNC Desktop" inurl:5800 inurl:webmin inurl:10000
CONFERENCIAS FIST
-13-
NeuroCrypt, S.L.
2.- Recopilación
Login:
inurl:/admin/login.aspEspecíficos como MS Outlook OWA :
inurl:/outlook "Exchange Users Only“
+intitle:Outlook Web Access -inurl:microsoft allintitle:Outlook Web Access Logon
¿OTROS?
ColdFusion página administrador
Citrix Metaframe
CONFERENCIAS FIST
-15-
NeuroCrypt, S.L.
2.- Recopilación
Otros :
inurl:"auth_user_file.txt" "Index of /admin""Index of /password" "Index of /mail"
"Index of /" +passwd
"Index of /" +password.txt "Index of /" +.htaccess
CONFERENCIAS FIST
-17-
NeuroCrypt, S.L.
2.- Recopilación
Otros :
allintitle: "index of/admin" allintitle: "index of/root"
allintitle: sensitive filetype:doc allintitle: restricted filetype :mail
allintitle: restricted filetype:doc site:gov
inurl:passwd filetype:txt inurl:admin filetype:db inurl:iisadmin inurl:"auth_user_file.txt" inurl:"wwwroot/*." “WS_FTP.LOG“
top secret site:mil confidential site:mil
CONFERENCIAS FIST
-19-
NeuroCrypt, S.L.
2.- Recopilación
Otros :
intitle:"Index of" .sh_history intitle:"Index of" .bash_history intitle:"index of" passwd
intitle:"index of" people.lst intitle:"index of" pwd.db intitle:"index of" etc/shadow intitle:"index of" spwd
intitle:"index of" master.passwd intitle:"index of" htpasswd
intitle:"index of" members OR accounts intitle:"index of" user_carts OR user_cart
_vti_inf.html service.pwd users.pwd
authors.pwd administrators.pwd shtml.dll
shtml.exe fpcount.exe default.asp
showcode.asp sendmail.cfm getFile.cfm
CONFERENCIAS FIST
-21-
NeuroCrypt, S.L.
CONFERENCIAS FIST
-23-
NeuroCrypt, S.L.
2.- Recopilación
2.- Recopilación
CONFERENCIAS FIST
-25-
NeuroCrypt, S.L.
3.- Protección
o
Política de seguridad
o
Proteger el servidor web
o
Auditoría de hacking Google
o
Eliminación de páginas de Google
CONFERENCIAS FIST
-27-
NeuroCrypt, S.L.
Política de seguridad
o
Publicación de información en la web
o
Envío de mensajes a listas/grupos de
noticias
No archivar mensajes en grupos de noticias
No revelar información acerca de sistemas,
arquitectura, personal, etc.
o
Política de seguridad web
Proteger el servidor web
o
No hacer accesible información privada (indexación)
o
No permitir listados de directorios
o
Bloqueo de buscadores mediante robots.txt
User-agent: googlebot
Disallow: /directorio/archivos
o
No indexar:
<META NAME="GOOGLEBOT" CONTENT="NOINDEX, NOFOLLOW">
o
No almacenar en caché:
CONFERENCIAS FIST
-29-
NeuroCrypt, S.L.
Proteger el servidor web
o
Eliminación de páginas y aplicaciones
predeterminadas
Directorios, archivos y aplicaciones de ejemplo
o
Adecuada gestión de errores
Mensaje de error significativo al usuario
Información de diagnóstico al administrador
NINGUNA información al atacante
Auditoría de hacking Google
o
Gooscan
Para Linux
Viola la política de Google
o
Athena:
Para .NET
Viola la política de Google
o
Sitedigger
Similar a Athena
Basado en la API de Google
CONFERENCIAS FIST
-31-
NeuroCrypt, S.L.
Eliminación de páginas de
o
Eliminación en local
o
Eliminación de la caché de Google desde
la página de eliminaciones
services.google.com/urlconsole/controller
Dirigirle al archivo robots.txt
Utilizar una directiva META
Google Hack Honeypot
o
GHH emula el comportamiento de firmas
GHDB para ser encontrado por Google
o
Por ahora sólo para Apache y PHP
o
Una vez instalado, se debe hacer que
Google lo indexe
o
Los logs registran quién visita el sitio a
través de Google (Google hackers)
CONFERENCIAS FIST
-33-
NeuroCrypt, S.L.
4.- Conclusiones
o
Auditor Google como herramienta fácil
para obtener información
o
Administrador Minimizar el grado de
¿Preguntas?
CONFERENCIAS FIST
-35-
NeuroCrypt, S.L.
Attribution. You must give the original author
credit.
For any reuse or distribution, you must make clear to others the license terms of this work.
Any of these conditions can be waived if you get permission from the author.
Your fair use and other rights are in no way affected by the above.
This work is licensed under the Creative Commons Attribution-NoDerivs License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-nd/2.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
Creative Commons Attribution-NoDerivs 2.0
You are free:
•to copy, distribute, display, and perform this work
•to make commercial use of this work
Under the following conditions:
No Derivative Works. You may not alter, transform, or