11
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP Foundation OWASP http://www.owasp.org Hardening IIS Łukasz Tomaszkiewicz [email protected] +48 604 132 518 22 maja 2012

Hardening IIS

Embed Size (px)

DESCRIPTION

Łukasz Tomaszkiewicz [email protected] +48 604 132 518. Hardening IIS. 22 maja 2012. Aktualność systemu i jego konfiguracja. Demo – Baseline Security Analyzer BSA do pobrania z: http://www.microsoft.com/en-us/download/details.aspx?id=7558 Demo – Web Application Configuration Analyzer - PowerPoint PPT Presentation

Citation preview

Page 1: Hardening IIS

Copyright © The OWASP FoundationPermission is granted to copy, distribute and/or modify this document under the terms of the OWASP License.

The OWASP Foundation

OWASP

http://www.owasp.org

Hardening IIS

Łukasz [email protected]+48 604 132 518

22 maja 2012

Page 2: Hardening IIS

OWASP

Aktualność systemu i jego konfiguracja

• Demo – Baseline Security Analyzer• BSA do pobrania z:

http://www.microsoft.com/en-us/download/details.aspx?id=7558

• Demo – Web Application Configuration Analyzer

• WACA do pobrania z:http://www.microsoft.com/en-us/download/details.aspx?id=573

Page 3: Hardening IIS

OWASP

Komponenty IIS

• Mniej komponentów = mniej miejsc w których mogą wystąpić podatności

• Dawniej: IIS Lockdown• Obecnie: Server Manager• Demo

Page 4: Hardening IIS

OWASP

Bezpieczeństwo adresów

• Moduł Request Filtering• Demo

Page 5: Hardening IIS

OWASP

URLScan

• Podstawowa funkcjonalność: blokowanie nieprawidłowych URLi

• Nie zastąpi WAFa!• Moduł Request Filtering przejął dużo

funkcji od URLScan-a, ale nie wszystkie – np. ukrywanie informacji o serwerze

• Do pobrania z:http://www.microsoft.com/en-us/download/details.aspx?id=5728

Page 6: Hardening IIS

OWASP

Limitowanie ilości połączeń

• Moduł Dynamic IP Restrictions• Demo

Page 7: Hardening IIS

OWASP

Application Pools

• Dobre praktyki• Pula per witryna• Używanie Application Pool Identity

• Application Pool Identity a uprawnienia systemu plików

• Application Pool Identity a połączenia do SQL Servera

Page 8: Hardening IIS

OWASP

Bezpieczeństwo systemu plików

• Dobre praktyki• Osobna partycja• Oczywiście NTFS• Restrykcyjne uprawnienia do plików• Używanie Application Pool Identity

Page 9: Hardening IIS

OWASP

Mocne szyfrowanie SSL/TLS

• „Magiczne” klucze:• [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\DES 56/56]

"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\NULL]"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 40/128]"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 56/128]"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 40/128]"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 56/128]"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 64/128]"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\PCT 1.0\Server]"Enabled"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server]"Enabled"=dword:00000000

• Weryfikacja używanego szyfrowania

Page 10: Hardening IIS

OWASP

Certyfikaty

• Problemy z self-signed certyfikatami• Własne CA – problem?• Demo programu XCA

Page 11: Hardening IIS

OWASP

Q&A

Łukasz [email protected]