Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit...

42
*[ Seguridad en dispositivos móviles ] Autor: David Barroso Fecha: 26 de Abril de 2011 Lugar: Madrid, España

Transcript of Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit...

Page 1: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

*[ Seguridad en dispositivos móviles ]

Autor: David BarrosoFecha: 26 de Abril de 2011Lugar: Madrid, España

Page 2: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Primera pregunta

¿Arquitectura abierta o cerrada?

Page 3: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Aspectos de seguridad a tener en cuenta

Seguridad físicaCifrado de datosAutenticaciónSafe browsing (exploits o phishing)Sistema Operativo seguroSandboxing (permisos)PrivacidadMalwareActualizaciones y distribución de paquetesNotificaciones Push¿¿¿¿Enterprise????

Page 4: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Segunda pregunta

¿Recomendaríaisun iPad u otrotablet en unaempresa?

Page 5: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

¿¿Enterprise??

PINBorrado remotoPolítica de seguridadCifrado (FDE, correo, voz, SMS)AplicacionesRedes, VPNCertificadosMobile Device Management (MGM)• Ejemplo: iPhone Configuration Tool

Page 6: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Tercera pregunta

¿Utilizáis AV envuestros móviles?

Page 7: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Los datos. Malware en dispositivos móviles

Page 8: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Métodos de infección

Ingenieria socialWarez apps• Black Markets

Vulnerabilidades o configuraciones débiles (ejemplo Wifi)

Page 9: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

09Droid

Abbey Bank Alaska USA FCU Alliance & LeicesterBank Atlantic Bank of America Bank of Queensland BarclaycardBarclaysBB&T Chase City Bank Texas Commerce Bank Compass Bank Deutsche BankFifty Third Bank

Pág. 9

First Republic BankGreat Florida BankLloydsTSBM&I Mechanics BankMFFCUMidwestNationwideNatWest (v. 1.1) Navy Federal Credit UnionPNCRoyal Bank of Canada RBSSunTrust TD BankUS BankUSAAValley Credit Union Wachovia CorpWells Fargo

Page 10: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

El propio operador

Pág. 10

Page 11: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Cuarta pregunta

¿Qué otra persona,empresa te puede instalar algo así?

Page 12: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Tu novio/a, pareja, padre, madre, etc.

Pág. 12

Page 13: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

¿Solución?

Pág. 13

Page 14: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Quinta pregunta

¿Confiáis en las revisiones que sehacen en las tiendas?

Page 15: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Analicemos el comportamiento

Las herramientas no están tan depuradas como en el mundo Microsoft (IDA rulez! o gdb)• Ejemplo: tráfico (tcpdump, o wifi + hub)

Android: dex2jar + jad pero difícil de automatizar(buscar APIs peligrosas)BlackBerry: casi imposible el reversingSymbian: ideal el .sisxWindows Mobile: más sencilloHay que familiarizarse con el API de cada plataformaARM es nuestra nueva religión

Page 16: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Privacidad

TaintDroid http://appanalysis.org/demo/index.htmliPhone Privacyhttp://seriot.ch/resources/talks_papers/iPhonePrivacy.pdfiPhone Location Tracking http://radar.oreilly.com/2011/04/apple-location-tracking.htmlSkype en Androidhttp://blogs.skype.com/security/2011/04/privacy_vulnerability_in_skype.html

Page 17: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Ikee Worm

Primer código malicioso para iPhoneAshley Towns, 21 añosAustralia

Page 18: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

SSH Scanning

Page 19: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Ikee Worm

Ikee iPhone Worm (alpine):“<ikee> Secondly I was quite amazed by the

number of people who didn't RTFM and change their default passwords.”

Segundo iPhone Worm (ohshit!): • Roba información• Es una botnet con dos C&C• Afecta a bancos holandeses• Ya no es sólo un script de prueba sino que tiene

un proceso malicioso (sshd)

Page 20: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

El primer malware ‘importante’ en Android: Geinimi

http://blog.mylookout.com/_media/Geinimi_Trojan_Teardown.pdfCifrado (DES 56 bits) + ofuscaciónRecibe órdenes de un C&C• Borrar SMS• ‘Robar’ SMS• Llamar a un número aleatorio• Abrir navegador• Instalar APK• Listar aplicaciones

Page 21: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

El incidente Mitmo

Page 22: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Background

Page 23: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Consiguiendo el teléfono

Page 24: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Consiguiendo el telefono

Page 25: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Conseguiendo el teléfono

Page 26: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

El SMS

Spoofed SMS Sender ID

ID Token (importante!)

Page 27: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Ciclo de vida del fraude

1.Infección del ordenador2.Robo de credenciales3.Transferencia fraudulenta4.Cash out

Page 28: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Ciclo de vida del fraude (actualizada)

1.Infección del ordenador2.Robo de credenciales3.Infección del móvil4.Robo OTP-SMS5.Transferencia fraudulenta6.Cash out

Page 29: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

ZeuS - Mitmo

El usuario se infecta con ZeuS 2.xRobo de credencialesEl código inyectado JavaScript pide también la marca, modelo y número de teléfonoEl usuario recibe un SMS con un enlace a una aplicación móvilEl usuario instala la aplicación móvil que intercepta los SMS

Page 30: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

ZeuS Mitmo - Comandos

BLOCK ON: ignora llamadasBLOCK OFF: deshabilita ignorarSET ADMIN: cambia el número del C&C SMSADD SENDER: añade número a interceptarADD SENDER ALL: intercepta todos los SMSREM SENDER: quita un número a interceptarREM SENDER ALL: quita toda la interceptaciónSET SENDER: actualiza información de un contacto

Page 31: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

ZeuS Mitmo - Comandos

http://dtarasov.ru/smsmonitor_lite.html

Page 32: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

ZeuS Mitmo - Certificados

Serial Number: BF43000100230353FF79159EF3B3 Revocation Date: Sep 28 08:26:26 2010 GMT Serial Number: 61F1000100235BC2794380405E52 Revocation Date: Sep 28 08:26:26 2010 GMT

Page 33: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Respuesta ante incidentes

Bloqueo del envío de SMS al SMS C&C desde todos los operadoresRevocar el certificado de la aplicación móvil (Nokia)Alerta temprana e informes para clientesCompartición de binarios entre AV y empresasBúsqueda activa de otras plataformas (BlackBerry y Windows Mobile)

Page 34: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Windows Mobile

if ($urlPathExt == 'cab') {$oGate->addHeader('Content-Type: application/cab');if ($data['mobile_os_type'] == OS_WINDOWS_MOBILE_2K) $oGate-

>outputFile('./wm/cert_uncompress.cab.txt');else if ($data['mobile_os_type'] == OS_WINDOWS_MOBILE_GR5)

$oGate->outputFile('./wm/cert_compress.cab.txt');}

Page 35: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Symbian

if ($urlPathExt == ’sis') {$oGate->addHeader('Content-Type: application/vnd.symbian.install');if ($data['mobile_os_type'] == OS_SYMBIAN_78)

$oGate->outputFile('./symbian/cert_78.sis.txt');else if ($data['mobile_os_type'] == OS_SYMBIAN_9)

$oGate->outputFile('./symbian/cert_9.sis.txt');}

Page 36: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

BlackBerry

if ($urlPathExt == ’cod') {$oGate->addHeader('Content-Type: application/vnd.rim.cod');if ($data['mobile_os_type'] == OS_BLACKBERRY_41)

$oGate->outputFile('./blackberry/cert_41.cod.txt');else if ($data['mobile_os_type'] == OS_BLACKBERRY_GR44)

$oGate->outputFile('./blackberry/cert_41.cod.txt');}

Page 37: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

¿Recuerda el token del SMS?

mysql_unbuffered_query("UPDATE sms_list SET mobile_os_version=$mobile_os_version, is_downloaded='YES',ts_downloaded=$ts_downloaded WHERE token='$token'");

Page 38: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Conclusiones del incidente

SMS como autenticación OOB:• Si implementa medidas OOB está demostrado que los atacantes

intentarán saltarselas (OTP SMS)

SMS como notificación OOB:• Posibilidad de interceptación.

La parte de SMS está muy integrada en elZeuS C&C, y creemos que en las próximas versiones será un plugin.

Page 39: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

Conclusiones del incidente

Firmar aplicaciones móviles no sirve de nada si:• El fabricante no analiza las aplicaciones• No se comprueba el certificado de revocación

¿Es más fácil perseguir a los atacantes si usan móviles? El malware para el móvil es ya una realidad (inclusoen Android)

Page 40: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

NFC – Near Field Communications

http://www.youtube.com/watch?v=pNSF1RxzJtg

Page 41: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

A investigar

Infecciones desde el móvil a un ordenadorMalware multi-plataforma?NFC¿Vuelven los dialers?¿Los SMS sirven para más cosas?Covert channels en nuevos protocolosIPV6??In-game purchasesLocalización por Wifi, GPS, celda, 4square¿Qué pasó con Bluetooth?

Page 42: Seguridad en dispositivos móviles - CriptoRed · RBS SunTrust TD Bank US Bank USAA Valley Credit Union Wachovia Corp Wells Fargo. ... ZeuS Mitmo - Comandos BLOCK ON: ignora …

*[ MUCHAS GRACIAS ]

Pág. 42

David BarrosoS21sec e-crime [email protected]://blog.s21sec.com

lostinsecurity