Securing Your Data With SQL 2016 (An overview of Always Encrypted)

Slides:



Advertisements
Similar presentations
Toolbox Mirror -Overview Effective Distributed Learning.
Advertisements

Overview and Roadmap for Microsoft SQL Server Security
Securing Data Storage Protecting Data at Rest Advanced Systems Group Dell Computer Asia Ltd.
Manage & Configure SQL Database on the Cloud Haishi Bai Technical Evangelist Microsoft.
Jim McLeod MyDBA  SQL Server Performance Tuning Consultant with MyDBA  Microsoft Certified Trainer with SQLskills Australia 
Cao Tiến Đức. Outline What is TDE How TDE works Basic TDE operations Tablespace encryption HSM Reference.
WS-Security: SOAP Message Security Web-enhanced Information Management (WHIM) Justin R. Wang Professor Kaiser.
SEC835 Practical aspects of security implementation Part 1.
1 SQL Server 2000 Administration Kashef Mughal MSB.
Additional Security Tools Lesson 15. Skills Matrix.
Module 7 Planning and Deploying Messaging Compliance.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
Database Security Cmpe 226 Fall 2015 By Akanksha Jain Jerry Mengyuan Zheng.
Martin Cairney Hybrid data platform – making the most of Azure plus your on- prem kit DAT341 B.
Kristina Rumpff Securing Data on your Terms DAT33 1.
C Copyright © 2007, Oracle. All rights reserved. Security New Features.
#SQLSAT454 SQL Server 2016 New Security Features Gianluca
SQL SATURDAY #444 – Kansas City, MO. A LOOK AT ALWAYS ENCRYPTED SQL SATURDAY #444 – KANSAS CITY, MO DAVE WALDEN PRINCIPAL SOLUTIONS ARCHITECT DB BEST.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 19/09/2015David Postlethwaite.
Secure SQL Database with TDE Thomas Chan SQL Saturday Raleigh.
End to End Always Encrypted in SQL Server 2016 Steve Jones SQLServerCentral Redgate Software.
Security Policy and Key Management Centrally Manage Encryption Keys - Oracle TDE, SQL Server TDE and Vormetric. Tina Stewart, Vice President.
SQL Server 2016 Security Features Marek Chmel Microsoft MVP: Data Platform Microsoft MCT: Regional Lead MCSE: Data Platform Certified Ethical Hacker.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 18/06/2016David Postlethwaite.
Database Design: Solving Problems Before they Start! Ed Pollack Database Administrator CommerceHub.
ORACLE's Approach ORALCE uses a proprietary mechanism for security. They user OLS.... ORACLE Labeling Security. They do data confidentiality They do adjudication.
Customer pulse Why Stretch? How Stretch works? Core Stretch scenarios Demo QA.
Comprehensive Flexible Global Storage and Search Responsive Available Secure Manageable Federation Coordination Consolidation Transformation Synchronization.
Clouding with Microsoft Azure
Azure SQL Database Updates
With Temporal Tables and More
Module 1: SQL Server Overview
How to tune your applications before moving your database to Microsoft Azure SQL Database (MASD) OK, you've jumped into your Azure journey by creating.
Recommended Practices & Fundamentals
Dell Compellent and SafeNet KeySecure
SQL Server 2016 Security and Privacy Features
Hiding Data from Prying eyes: Using SQL Server 2016 Always Encrypted
Security Outline Encryption Algorithms Authentication Protocols
Securing Data with SQL Server 2016
Securing SQL Server 2016 Databases
What’s New in SQL Server 2016 Master Data Services
Planning an Effective Upgrade from SQL Server 2008
Always Encrypted overview
Mike Furgal Director – DB and Pro2 Services March 20th, 2017
Radius, LDAP, Radius used in Authenticating Users
Always Encrypted, Data Masking, Row Level Security
IBM Certified WAS 8.5 Administrator
Using cryptography in databases and web applications
SQL Server 2016 Security Features
Protecting our members, our company, and our selves
Always Encrypted in the Real World
Microsoft Braindumps Braindumps Dumps4Download.us
Security enhancements in SQL Server 2016
Encrypting Data within SQL Server
Transparent Data Encryption (TDE)
Migrating a Disk-based Table to a Memory-optimized one in SQL Server
Beginners 101 Guide To Always Encrypted
Migrating your SQL Server Instance
Security Enhancements in SQL Server 2016
End to End Security and Encryption in SQL Server
Analysis models and design models
Stretch Database - Historical data storage in SQL Server 2016
Unleashing Stretched Databases
Secure/Encrypt SQL Server Database With TDE
SQL Server 2016 Security Features
Erin Dempster SQL Server 2019 Sneak Peek.
Fast-Track UiPath Developer Module 10: Sensitive Data Handling
Stefano Tempesta Secure Machine Learning with SQL Server Always Encrypted with Secure Enclaves.
We Need To Talk Security
Presentation transcript:

Securing Your Data With SQL 2016 (An overview of Always Encrypted) Md. Sultan-E-Alam Khan, PMP®, SMC™, OCP, MCSD | Head of Application, Lanka Bangla SQLSaturday #533 - Bangladesh 2016

Topics of Discussion Securing Your Database History of Database Encryption Always Encryption Performance Benchmarking Limitations References SQLSaturday #533 – Bangladesh 2016

Securing Your Database

Protecting your legal assets from the illegal access Security Protecting your legal assets from the illegal access SQLSaturday #533 – Bangladesh 2016

Security SQLSaturday #533 – Bangladesh 2016

Security SQLSaturday #533 – Bangladesh 2016

Security SQLSaturday #533 – Bangladesh 2016

Security In 2015, 60 percent of all attacks were carried out by insiders, either ones with malicious intent (44.5%) or those who served as inadvertent actors (15.5%). In other words, they were instigated by people you’d be likely to trust. And they can result in substantial financial and reputational losses. -- IBM 2016 Cyber Security Intelligence Report SQLSaturday #533 – Bangladesh 2016

Security As a DBA have you feel yourself insecure because of your super power? Any mess happen you are the first guy to say goodbye. SQLSaturday #533 – Bangladesh 2016

Security Have you ever get those messages at your cell phone providing attractive offers that you never thought for !!! SQLSaturday #533 – Bangladesh 2016

Security Are you getting tired to find a good DBA either for competency or for money. SQLSaturday #533 – Bangladesh 2016

Have you started thinking to move to Azure at near future? Security Have you started thinking to move to Azure at near future? SQLSaturday #533 – Bangladesh 2016

Why Encrypting the Database Protecting sensitive data e.g. Credit Card Number, National ID, Mobile Number Running database and/or application in the cloud Delegation of DBA role Prevent high-privileged users from having access to sensitive data Separation of role between who own data and who manage data Regulatory Compliance and Audits SQLSaturday #533 – Bangladesh 2016

History of Database Encryption

History of Database Encryption SQL Server Version Type of Encryption 2000 & Before No native tools Data at Rest could be encrypted by third party tools or by encrypting the entire drive 2005 Call level encryption 2008, 2012, 2014 TDE (Transparent Data Encryptions) Certificate base transport encryption 2016 Always Encryption SQLSaturday #533 – Bangladesh 2016

Always Encryption

Solution to the issues with earlier encryption A transparent end to end solution for sensitive columns All encryption and decryption is handled transparently by the driver library on the client Allows clients to encrypt sensitive data inside client applications and never reveal the encryption keys to SQL Server Data is never in plain text while being stored or accessed while on SQL Server (including while in memory) SQLSaturday #533 – Bangladesh 2016

1. Generate CEKs and Master Key Column Encryption Key (CEK) Column Master Key (CMK) 2. Encrypt CEK Encrypted CEK CMK Store: Certificate Store HSM Azure Key Vault … 3. Store Master Key Securely CMK Security Officer 4. Upload Encrypted CEK to DB Encrypted CEK Database SQLSaturday #533 – Bangladesh 2016

Type of Keys Column Master Keys (CMK) To encrypt column encryption keys Encrypted values of the keys along with their location are stored on system catalog view SQL Server does not contain the keys needed to decrypt data Must be stored in a trusted key store Column Master Keys must be deployed on each client machine that needs access to the unencrypted data SQLSaturday #533 – Bangladesh 2016

Type of Keys (Cont.) Column Encryption Keys (CEK) To encrypt sensitive data stored in database column A single key can encrypt all values in a column/ table Encrypted values of the keys are stored on system catalog view Store this key in a secured/ trusted location for backup Each CEK can have 2 encrypted values from 2 CMKs to allow master key rotation SQLSaturday #533 – Bangladesh 2016

Type of Encryption Deterministic Generate same encrypted value for a given text Allows grouping, filtering and joining Better chance of data decryption by unauthorized user by examining the pattern especially when applied to a smaller set of data SQLSaturday #533 – Bangladesh 2016

Type of Encryption (Cont.) Randomized Encrypting data in a less predictable manner More secure because different set of data is generated for same plain text Prevents equality searches, grouping, indexing and joining SQLSaturday #533 – Bangladesh 2016

Type of Encryption (Cont.) Deterministic vs. Randomized Column that are part of indices (either clustered or non clustered) can’t be encrypted with randomized option Column referenced by unique constraint can be encrypted with deterministic option Primary Key columns can use only deterministic option SQLSaturday #533 – Bangladesh 2016

SQL Server or SQL Database Encrypted sensitive data and corresponding keys are never seen in plaintext in SQL Server SQL Server or SQL Database trust boundary Client "SELECT EmpName,EmpSalary FROM Customers WHERE EmpNID = @NID", “NID_Sultan_1" "SELECT EmpName,EmpSalary FROM Employee WHERE EmpNID = @NID", 0x7ff654ae6d Cipher text ADO .NET Result Set Result Set Name Sultan EmpSalary $100,000 EmpSalary 0x7ddfddae6 dbo.Employee Column Encryption Setting = enabled EmpName EmpNID EmpSalary Sultan 0x7ff654ae6d 0x7ddfddae6 Cipher text SQLSaturday #533 – Bangladesh 2016

Key Rotation Ensure Compliance Requirement Ensure Better Security Rotating of CMK Provision a new CMK Encrypt CEK with new CMK (Rotate CMK) Configure Client Cleaning Up & Archiving (Clean CMK) SQLSaturday #533 – Bangladesh 2016

Performance Benchmarking https://sqlperformance.com/2015/08/sql-server-2016/always-encrypted-performance-follow-up

SQLSaturday #533 – Bangladesh 2016

SQLSaturday #533 – Bangladesh 2016

SQLSaturday #533 – Bangladesh 2016

Limitations

Data Type XML timestamp/ rowversion image ntext/ text sql_variant geography/ geometry User defined type Non Binary2 Collation string data type Alias Sparse column set SQLSaturday #533 – Bangladesh 2016

Column Partitioning columns Columns with default constraints/ check constraints Referencing column can’t be encrypted with randomized option (for deterministic option the CEK must be the same) Columns that are keys of fulltext indices Columns referenced by computed columns when the expression does unsupported operations Columns referenced by statistics Table variable columns SQLSaturday #533 – Bangladesh 2016

Clause FOR XML FOR JSON PATH SQLSaturday #533 – Bangladesh 2016

Transactional or Merge Replication Features Transactional or Merge Replication Distributed Queries (linked servers) SQLSaturday #533 – Bangladesh 2016

References

Always Encrypted (Database Engine) https://msdn.microsoft.com/en-us/library/mt163865.aspx https://channel9.msdn.com/events/datadriven/sqlserver2016/alwaysencrypted Always Encrypted (Client Development) https://msdn.microsoft.com/en-us/library/mt147923.aspx https://blogs.msdn.microsoft.com/sqlsecurity/2015/08/27/using-always-encrypted-with-entity-framework-6 Column Master Key Rotation and Cleanup with Always Encrypted https://msdn.microsoft.com/en-us/library/mt607048.aspx Import/Export Windows Cert http://windows.microsoft.com/en-us/windows/import-export-certificates-private-keys#1TC=windows-7 SQLSaturday #533 – Bangladesh 2016

Thank You & Happy Encrypting !!! Md. Sultan-E-Alam Khan, PMP®, SMC™, OCP, MCSD | Head of Application, Lanka Bangla SQLSaturday #533 – Bangladesh 2016