microsoft windows security · microsoft windows security ... • windows xp • microsoft office...

52
Security Intelligence Security Intelligence Security Intelligence Microsoft Windows Security ภัคพงศ กฤตวัฒน Senior Instructor (ACIS Professional Center) Microsoft Certified Trainer, EC-Council Certified Instructor, Certified Wireless Network Trainer

Upload: others

Post on 27-Mar-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

11/4/2009 1

Security IntelligenceSecurity Intelligence

Microsoft Windows Security

ภัคพงศ กฤตวัฒนSenior Instructor (ACIS Professional Center)

Microsoft Certified Trainer, EC-Council Certified Instructor, Certified Wireless Network Trainer

Page 2: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

http://www.microsoft.com/security

Page 3: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Security Guidance

Page 4: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Security Compliance Management Toolkit series

• Windows Server 2008

• Windows Server 2003

• Windows Vista

• Windows XP

• Microsoft Office 2007

Page 5: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Other Security Guidelines

• DISA STIGs

• NSA IA Guidance

• The CIS Benchmarks

Page 6: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

DISA (http://www.disa.mil)

Page 7: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

DISA STIGS

• Security Checklists

• Security Readiness Review Evaluation Scripts

• Security Technical Implementation Guides

http://iase.disa.mil/stigs/

Page 8: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

NSA (http://www.nsa.gov)

Page 9: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Center for Internet Security(http://www.cisecurity.org)

Page 10: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Hardening Concept

• Reduce Attack Surface

• Defense In Depth

• Least Privilege

• Fail to Secure Mode

Page 11: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Attack SurfaceAttack Surface

The “Attack Surface” is the sum of the ways in which an attacker can get at you

Smaller Attack Surface is better

Which one has the Smaller attack surface?

Page 12: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Understand Your Attack SurfaceUnderstand Your Attack Surface

• Networking protocols that are enabled by default

• Network Endpoints

• Code that auto-starts or will execute when accessed– Examples: Services, daemons, ISAPI filters and applications,

SOAP services, and Web roots

• Reusable components – ActiveX controls, COM objects, and .NET Framework

assemblies, especially those marked with the AllowParticallyTrustedCallersAttribute)

• Process identities for all the code you run

• User accounts installed

Page 13: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

ACIS Professional Center Co., Ltd.http://www.acisonline.net

HARDENINGReduce Attack Surface

Page 14: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Reducing Attack SurfaceReducing Attack Surface

Service: Autostart SYSTEM

TCP/UDP

TCP/UDP

TCP/UDP

Page 15: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Reducing Attack SurfaceReducing Attack Surface

Service: Autostart SYSTEM

TCP/UDP

TCP/UDP

TCP/UDP

Turn off less-used ports

Page 16: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Reducing Attack SurfaceReducing Attack Surface

Service: Autostart SYSTEM

TCP Only

Turn off UDP connections

Page 17: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Reducing Attack SurfaceReducing Attack Surface

Service: Autostart SYSTEM

TCP Only

Restrict requests to subnet/IP range

Page 18: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Reducing Attack SurfaceReducing Attack Surface

Service: Autostart SYSTEM

TCP Only

Authenticate connections

Page 19: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Reducing Attack SurfaceReducing Attack Surface

Service: Manual NetService

TCP Only

Lower privilegeTurn feature off

Page 20: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Reducing Attack SurfaceReducing Attack Surface

Service: Manual NetService

TCP Only

Harden ACLs on data store

Everyone (Full Control)Everyone (Full Control)

Admin (Full Control)Admin (Full Control)Everyone (Read)Everyone (Read)Service (RW)Service (RW)

Page 21: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

HARDENINGDefense in Depth

Page 22: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Defense In DepthDefense In Depth

• Don’t count on one line of defense for everything– What if the attacker penetrates that defense?

– Contain the damage

• An example – Nuclear Plants– “Multiple redundant safety systems. Nuclear plants are

designed according to a "defense in depth" philosophy that requires redundant, diverse, reliable safety systems. Two or more safety systems perform key functions independently, such that, if one fails, there is always another to back it up, providing continuous protection. “

• - Nuclear Energy Institute

Page 23: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Microsoft Security Bulletin MS03-007Unchecked Buffer In Windows Component Could Cause Server Compromise

(815021)Originally posted: March 17, 2003

Impact of vulnerability: Run code of attacker's choice

Maximum Severity Rating: Critical

Affected Software: • Microsoft Windows NT 4.0 • Microsoft Windows 2000 • Microsoft Windows XP

Not Affected Software:• Microsoft Windows Server 2003

Microsoft Security Bulletin MS03-007Unchecked Buffer In Windows Component Could Cause Server Compromise

(815021)Originally posted: March 17, 2003

Impact of vulnerability: Run code of attacker's choice

Maximum Severity Rating: Critical

Affected Software: • Microsoft Windows NT 4.0 • Microsoft Windows 2000 • Microsoft Windows XP

Not Affected Software:• Microsoft Windows Server 2003

Defense in DepthDefense in Depth (MS03(MS03--007)007)Windows Server 2003 UnaffectedWindows Server 2003 Unaffected

The underlying DLL The underlying DLL (NTDLL.DLL) not vulnerable(NTDLL.DLL) not vulnerable Code made more conservative during Security PushCode made more conservative during Security Push

EvenEven if it was runningif it was running IIS 6.0 doesnIIS 6.0 doesn’’t have WebDAV enabled by defaultt have WebDAV enabled by default

EvenEven if it did have if it did have WebDAV enabledWebDAV enabled

Maximum URL length in IIS 6.0 is 16kb by default Maximum URL length in IIS 6.0 is 16kb by default (>64kb needed) (>64kb needed)

EvenEven if it was vulnerableif it was vulnerable IIS 6.0 not running by default on IIS 6.0 not running by default on Windows Server 2003Windows Server 2003

EvenEven if it there was an if it there was an exploitable buffer overrunexploitable buffer overrun

Would have occurred in Would have occurred in w3wp.exew3wp.exe which is now which is now running as running as ‘‘network servicenetwork service’’

EvenEven if the buffer was if the buffer was large enoughlarge enough

Process halts rather than executes malicious code, Process halts rather than executes malicious code, due to bufferdue to buffer--overrun detection code (overrun detection code (--GS)GS)

Page 24: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

HARDENINGLeast Privilege

Page 25: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Least PrivilegeLeast Privilege

• A defense in depth measure

• Code should run with only the permissions it requires

• Attackers can only do whatever the code was already allowed to do

• Recommendations– Use least privilege accounts

– Use code access security

– Write Apps that non-admins can actually use

Page 26: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

HARDENINGFail To Secure ModeFail To Secure Mode

Page 27: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Fail To Secure ModeFail To Secure Mode

• Watch out for exceptions

• Never initialize variables to success results

Function Authenticate(UserID As String, Password As String)Dim Authenticated As Boolean = TrueTry

Dim conn As New SqlConnection(connString)conn.Open()Dim cmd As New SqlCommand("SELECT Count(*) FROM Users …”)Dim count As Integercount = cmd.ExecuteScalar()Authenticated = (count = 1)

Catch ex As ExceptionMessageBox.Show("Error logging in " + ex.Message)

End TryReturn Authenticated

End Function

Function Authenticate(UserID As String, Password As String)Dim Authenticated As Boolean = TrueTry

Dim conn As New SqlConnection(connString)conn.Open()Dim cmd As New SqlCommand("SELECT Count(*) FROM Users …”)Dim count As Integercount = cmd.ExecuteScalar()Authenticated = (count = 1)

Catch ex As ExceptionMessageBox.Show("Error logging in " + ex.Message)

End TryReturn Authenticated

End Function

Danger!!Assumes Success

Authenticated flag may

still be true here

Authenticated As Boolean = True

Catch ex As Exception

Page 28: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Secure baseline

– Settings for applications and services

– Operating system components

– Permissions and rights

– Administrative procedures

– Physical access

Page 29: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Server Hardening - Templates

• Predefined Security Templates• Security Guide Templates• Industrial Templates

– SANS – CIAC– NSA– DoD DISA

• Custom Templates

Page 30: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Demo: Security Template

Page 31: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Template Deployment

• Test before deployment• Periodic analysis

– Security Configuration and Analysis snap-in– Scripting (Secedit.exe)

• Deployment Methods– Group Policy (Active Directory)– Security Configuration and Analysis snap-in– Scripting (Secedit.exe)

Page 32: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

GPOAccelerator

• A tool that you can use to create all the Group Policy objects (GPOs) you need to deploy your chosen security configuration.

Page 33: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

GPOAccelerator

Page 34: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

GPOAccelerator (cont)

Page 35: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Baseline Compliance Management

Page 36: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Security Baseline Environments

The Legacy Client (LC) Environment

The Enterprise Client (EC) Environment

The Specialized Security – Limited Functionality (SSLF) Environment

Page 37: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Security Design

Page 38: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Example: OU Structure

Page 39: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Example: OU StructureWindows XP Users OU

This OU contains the user accounts for the EC environment.

Windows XP Computers OU

This OU contains child OUs for each type of client in the EC environment.

Desktop OU. This OU contains desktop computers that constantly remain connected to the network.

Laptop OU. This OU contains laptop computers for mobile users that are not always connected to the network.

Page 40: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Microsoft System Center Configuration Manager

Page 41: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Example: The Configure Validation dialog box

Page 42: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Example: Report

Page 43: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

FDCC AND SCAP

Ensuring Secure Computer Configurations

within the Federal Government

Page 44: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Federal Desktop Core Configuration (FDCC)• Standardized security configuration for Windows

• OMB and the CIO council seek to reduce federal systems vulnerability to individual and state sponsored cyber terrorism– “OMB Deep Dive” (Office of President initiative)

• New government wide program (DOD, Intel, Civilian) that leverages existing components

• Deadline for deployment is February, 2008

• Scope of program requires automation

Page 45: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Information Security Automation Program (ISAP)• Interagency (NIST, NSA, DISA, OSD, DHS) response to

the need for consistent standards-based vulnerability management in the federal government and private industry.

• Automate the implementation of information system security controls in the IT systems through security-data sharing in standard formats.

• Security Content Automation Protocol (SCAP) is the technical implementation of ISAP

Page 46: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Security Content Automation Protocol (SCAP)

• Enables standardized and automated vulnerability management, measurement, and policy compliance evaluation (e.g., FISMA and DoD 8500.2/8510 compliance)

• Enumeration of vulnerabilities, misconfigurations, platforms, and impact

• Machine readable security configuration checklists

Page 47: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

SCAP Components:Six open XML standards

Page 48: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

Software Flaw Management

CVE

CPE CCESCAP

OVALCVSS

Compliance Management

XCCDF

AssetManagement

ConfigurationManagement

SCAP Interoperability

Page 49: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

SCAP Vendors

Page 50: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

SCCM and SCAP

Page 51: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

SCAP Checklists

• SCAP Checklists:– Windows Vista (FDCC Profile)

– Windows XP (FDCC Profile)

– Windows Vista Firewall (FDCC Profile)

– Windows XP Firewall (FDCC Profile)

– Windows Server 2003

– Red Hat Linux

– Internet Explorer 7 (FDCC Profile)

– Microsoft Office 2007

– Symantec Antivirus

Page 52: Microsoft Windows Security · Microsoft Windows Security ... • Windows XP • Microsoft Office 2007. Security Intelligence Other Security Guidelines • DISA STIGs ... Hardening

Security Intelligence

SCAP Compliance Program

• Ensuring security tools – comply to the NIST Security Content Automation Protocol

(SCAP)– enable agencies to continuously monitor systems against OMB

mandated configuration settings (results mapped to FISMA)

• Supports Multiple Initiatives:– OMB FDCC Secure Configuration Effort– NIST FISMA Implementation Phase II (also applies to NIST

HIPAA work)– Information Security Automation Program (ISAP): OSD, DISA,

NSA, DHS, NIST– OSD Computer Network Defense Pilot– NIST Checklist Program– NIST National Vulnerability Database