Better Together: Secure SQL Server on Secure Windows

Slides:



Advertisements
Similar presentations
Session 1.
Advertisements

Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
A Windows Azure application runs multiple instances of each role A Windows Azure application behaves correctly when.
demo Instance AInstance B Read “7” Write “8”
customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
How We Do Language Design at Microsoft (C#, Visual Basic, F#)
Deployment Internals: Mastering Windows Deployment Services
Running Reporting Services in SharePoint Integrated Mode: How and Why
Tech·Ed  North America /11/ :01 AM SESSION CODE: DEV405
6/12/ :53 PM DEV311 Deep Dive into Microsoft Visual Studio Team Foundation Server 2010 Reporting Steven Borg, Principal ALM Consultant Northwest.
2010 Microsoft BI Conference
9/11/2018 5:53 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
MDOP: Advanced Group Policy Management 4.0
Tech Ed North America /13/ :13 AM Required Slide
Tech·Ed North America /14/2018 7:13 PM
Excel Services Deployment and Administration
Microsoft Visual Studio IDE Futures
Overview of Social Computing in Microsoft SharePoint 2010
Customer Experiences With Business Intelligence
Implementing RESTful Services Using the Microsoft .NET Framework
Windows PowerShell Remoting: Definitely NOT Just for Servers
Sysinternals Tutorials
T-SQL Power! The OVER Clause: Your Key to No-Sweat Problem Solving
What’s New In ASP.NET MVC 2
Advanced Dashboard Creation Using Microsoft SharePoint Server 2010
Reduce TCO Using Policy-Based Management and Windows PowerShell
Jason Zander Unplugged
Title of Presentation 12/2/2018 3:48 PM
High Availability: A Contrarian View
Business Intelligence Overview: Decisions, Decisions, Decisions
12/5/2018 3:24 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed North America /5/2018 6:43 PM
Windows 7 Deployment en Masse
Best Practices: Creating OData Services using WCF Data Services
Tech·Ed North America /7/2018 2:51 PM
Team Foundation Server 2010 for Everyone
12/27/ :01 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Authoring for Microsoft Silverlight 4 with Microsoft Expression Blend
Tech Ed North America /1/ :36 AM Required Slide
Tech Ed North America /1/2019 2:58 AM Required Slide
Intro to Workflow Services and Windows Server AppFabric
Tech·Ed North America /2/2019 4:47 PM
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Microsoft Visual Studio 2010 for Web Deployment
Tech·Ed North America /17/2019 1:47 AM
Microsoft SharePoint Conference 2009 Jon Flanders
2010 Microsoft BI Conference
Vittorio Bertocci Principal Technical Evangelist Microsoft
Building Silverlight Apps with RIA Services
Developing Advanced Applications with Windows Azure
Tech Ed North America /12/2019 6:45 AM Required Slide
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
A Lap Around Internet Explorer 9 For Developers
SharePoint 2013 Authentication with Azure – Part 1
2010 Microsoft BI Conference
Service Template Creation from the Ground Up
Tech·Ed North America /25/ :53 PM
Hack-proofing your Clients using Windows 7 Security!
Tech Ed North America /27/ :04 AM Required Slide
Service Template Creation from the Ground Up
Lap Around the Windows Azure Platform
Code First Development in Microsoft ADO.NET Entity Framework 4.1
Running Reporting Services in SharePoint Integrated Mode: How and Why
Building BI applications using PowerPivot for Excel
Title of Presentation 5/24/2019 1:26 PM
Tech·Ed North America /17/2019 4:14 PM
Tech Ed North America /6/2019 2:07 PM Required Slide
Tech·Ed North America /7/2019 2:30 PM
Presentation transcript:

Better Together: Secure SQL Server on Secure Windows Tech Ed North America 2010 12/4/2018 11:44 PM Required Slide SESSION CODE: DAT304 Better Together: Secure SQL Server on Secure Windows Al Comeau SQL Server Security Lead Microsoft Corporation © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Goals Investigate Security from a different perspective Intersection between SQL Server and Windows Cover some familiar ground, but look further “under the hood” Provide some hints and tips you can bring back with you and (hopefully) make use of

AGENDA Setup Install Service Configuration Access Control Authentication Auditing User Account Control (UAC) and Impact on SQL Server

SQL SERVER SETUP INSTALL Feature Selection Product File Installation Binaries are installed Log/Data files instantiated Registry Keys created and populated Service Configuration Service Account Startup Configuration Access Control Resources protected through strong ACL’s to: NT Administrators SQL Server Service Principals

SQL SERVER SERVICES CONFIGURATION SQL Server Service Accounts User Specified Service Account Some Services Default To Pre-determined Account Startup Configuration - Services are configured in the following modes: Automatic Manual Disabled Service SID New Service Principal in Windows Vista and above Access granted to Service SID to access OS and SQL resources

SQL SERVER and SERVICE SID New Service Principal introduced in Windows Vista, Windows Server 2008 and above Least privilege Principal to access and protect resources Provide Service Isolation and Defense in depth Reduce damage potential Windows Service Control Manager derives a SID from normalized service name E.g. NT Service\Service Name SCM adds service SID to process token S-1-5-80-XXXXX-YYYYY SQL Server usage of Service SID Service SID is enabled for SQL Server services at service configuration Privileges are granted to Service SID at service configuration

SQL SERVER SERVICES WITH per SERVICE SID

SQL SERVER ACCESS CONTROL Depending on deployment configuration, SQL Server uses NT service group or Service SID to access resources NT service group Created locally at setup install for each SQL Server service Group membership contains SQL Server service account or Service SID Service privileges granted to the service group Use as a indirection for access control Service SID Provide single consistent access control behavior Simplify service account configuration Simplify service account change SQL Server Engine and SQL Server Agent Service SID are provisioned as Login in the Sysadmin Server role

SQL SERVER ACCESS CONTROL SQL Server Service Account SQL SERVER ACCESS CONTROL SQL Server 2005 Domain Account Or Built In Accounts Local Windows Group SQL Server sysadmin role File System and Registry Permissions SQL Server 2008 Local Windows Group File System and Registry Permissions Domain Account Or Built In Accounts SQL Server sysadmin role Windows XP Windows Server 2003 Start/Stop and Off box permissions? Local Windows Group File System and Registry Permissions Domain Account Or Built In Accounts SQL Server sysadmin role Windows Vista Windows Server 2008 NT Service\Service Name

SQL SERVER ACCESS CONTROL BEHAVIOR   WinXP/Win2k3 Windows Vista/Windows Server 2008 Standalone Cluster Domain Controller Install Upgrade Service Group with Service Account ü Service Group with Service SID Service SID

SQL SERVER SERVICE PRINCIPAL PROVISIONING   WinXP/Win2k3 Windows Vista/Windows Server 2008 Standalone Cluster Domain Controller Install Upgrade Service Account ü Service SID  ü

SQL SERVER AUTHENTICATION Windows Authentication default OS and SQL resources accessed using Windows token Single sign on Simplified administration No password management Leverage Windows Password policy to enforce password compliance Complexity Expiration Lockout enforcement Protect conversations and credentials in transit Windows principal provisioned as login inside SQL Server Login token constructed from Windows

SQL SERVER LOGIN PROVISIONING Logins provisioned as SQL Administrators (Sysadmin): Principals with highly elevated privileges “SA” built-in login Disabled for Windows Authentication Mode Enabled for Mixed Authentication Mode Windows principal provisioned @Setup install Local System SQL Server Engine Service Account or Service SID SQL Server Agent Service Account or Service SID NT Admins are not provisioned inside SQL Server by default and thereby provides Separation and Isolation between NT Admin & SQL Admin

SQL SERVER IMPERSONATION Impersonate Windows user to access OS and SQL resources Windows user must have access to the resources explicitly – no Elevation of Privilege opportunity Impersonate SQL Service principal [context] where SQL Login is a highly privilege elevated login SQL Service principal must have access to the resources explicitly

SQL SERVER AUDITING Windows Event Log to record SQL Server events like Login Failure, SPN registration, Authentication details etc. Application Log Security Log Use Security Log for better separation and stronger repudiation

USER ACCOUNT CONTROL (UAC) AND SQL SERVER UAC is a new feature on Windows Vista and above UAC allow users to perform common tasks as non-administrators Running with least privilege helps protect the system UAC is ON by default UAC Impact on SQL Server 2005 SQL Connectivity SQL Server provision Built-In\Administrators group to Sysadmin server role When an NT admin makes a request to connect to SQL Server 2005 on Vista, the connection attempt fails The connection token does not include administrator privileges and so the SQL instance does not recognize it a valid login Solution  Do not rely on Built-In\Administrators login provisioning. Explicitly provision Windows principal as login

USER ACCOUNT CONTROL (UAC) AND SQL SERVER UAC Impact on SQL Server 2008 SQL Server 2008 setup install require NT admin to specify windows principal to provision to the Sysadmin server role When provisioned principal makes a request to connect to SQL Server 2008 on Vista, the connection succeeds SQL Server Applications SQL Server categorized its applications into two categories – Admin and Non-admin The applications that take admin action on the machine and there by required admin privileges are marked [manifested] to elevate on Vista and above The applications that do not take admin action on the machine are not marked to elevate

Questions?

Track Resources SQL Server 2008 R2 Books Online Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 12/4/2018 11:44 PM Track Resources SQL Server 2008 R2 Books Online SQL Server Security Portal SQL Server Security Forum SQL Server and User Account Control (UAC) © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Tech Ed North America 2010 12/4/2018 11:44 PM Related Content DAT302 - Achieving Compliance with Microsoft SQL Server 2008 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 12/4/2018 11:44 PM DAT Track Scratch 2 Win Find the DAT Track Surface Table in the Yellow Section of the TLC Try your luck to win a Zune HD Simply scratch the game pieces on the DAT Track Surface Table and Match 3 Zune HDs to win © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Resources Learning Required Slide www.microsoft.com/teched Tech Ed North America 2010 12/4/2018 11:44 PM Required Slide Resources Learning Sessions On-Demand & Community Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning Resources for IT Professionals Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Complete an evaluation on CommNet and enter to win! Tech Ed North America 2010 12/4/2018 11:44 PM Required Slide Complete an evaluation on CommNet and enter to win! © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration   You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year

Tech Ed North America 2010 12/4/2018 11:44 PM © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Required Slide Tech Ed North America 2010 12/4/2018 11:44 PM © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.