付費下載
下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、Module 10Auditing Data Access and Encrypting DataModule OverviewAuditing Data Access in SQL ServerImplementing SQL Server AuditEncrypting DatabasesLesson 1: Auditing Data Access in SQL ServerDiscussion: Auditing Data AccessCommon Criteria AuditingSQL TraceDML TriggersDemonstration: Using DML Trigger
2、s for AuditingSQL Server AuditDiscussion: Auditing Data AccessWhy is auditing required?What methods have you used for auditing?What are the limitations of the methods you have used?Which standards that require auditing does your organization need to comply with?Common Criteria AuditingCommon Criteri
3、a Compliance:Ratified as an international standard in 1999Supersedes C2 ratingISO standard 15408Enable common criteria compliance enabled configuration option by using sp_configure:Residual Information Protection (RIP)Ability to view login statisticsColumn GRANT does not override table DENYSQL Trace
4、SQL Server Profiler is used to trace commands sent to the server and errors returned:Can be heavy on resourcesIs run interactivelyCan trace command executionsSQL Trace:A set of system stored procedures that enable you to create tracesCan be used from within applicationsRelatively lightweight when we
5、ll-filteredDML TriggersTriggers can provide part of an auditing solution:DML triggers for data modificationLogon triggers for tracking logonsLimitations:Performance impactAbility to disable triggersLack of SELECT triggersTrigger nesting issuesComplexities around trigger firing orderDemonstration: Us
6、ing DML Triggers for AuditingIn this demonstration, you will see how to:Create a DML trigger for auditingSQL Server AuditEvent tracking and logging system based on Extended EventsComprised of:AuditsAudit specificationsActions and action groupsTargetsLesson 2: Implementing SQL Server AuditSQL Server
7、Audit OverviewCreating an AuditCreating a Server Audit SpecificationCreating Database Audit SpecificationsUser-Defined Audit ActionsReading Audited EventsManaging SQL Server AuditDemonstration: Using SQL Server AuditSQL Server Audit OverviewAudit: Where and how events are loggedAudit Specification:
8、A set of events to be logged in an auditActions and Action Groups: Events that can be included in an audit specificationAction Groups/ ActionsAudit SpecificationAuditCreating an AuditSpecify:TargetQueue delayAction on failureSet STATE = ON to enableCREATE SERVER AUDIT SecurityAuditTO FILE (FILEPATH
9、= MIA-SQLAuditFiles ,MAXSIZE = 0 MB ,MAX_ROLLOVER_FILES = 2147483647 ,RESERVE_DISK_SPACE = OFF)WITH(QUEUE_DELAY = 1000 ,ON_FAILURE = FAIL_OPERATION);GOALTER SERVER AUDIT SecurityAuditWITH (STATE = ON);Creating a Server Audit SpecificationSpecify:AuditAction groups to be includedStateCREATE SERVER AU
10、DIT SPECIFICATION AuditLoginsFOR SERVER AUDIT SecurityAuditADD (FAILED_LOGIN_GROUP),ADD (SUCCESSFUL_LOGIN_GROUP)WITH (STATE = ON);Creating Database Audit SpecificationsSpecify:AuditAction GroupsActions on specific securable by specific principalsStateUSE AdventureWorks;CREATE DATABASE AUDIT SPECIFIC
11、ATION AdventureWorks_DBSecurityFOR SERVER AUDIT SecurityAuditADD (DATABASE_PRINCIPAL_CHANGE_GROUP),ADD (SELECT ON SCHEMA:HumanResources BY db_datareader)WITH (STATE = ON);User-Defined Audit ActionsEnable you to audit custom events:Add USER_DEFINED_AUDIT_GROUP to an audit specificationCall sp_audit_w
12、rite from a stored procedure or triggerCREATE TRIGGER HR.BonusChecker ON HR.EmployeeBonusAFTER INSERTASDECLARE bonus money, empid integer, msg nvarchar(4000) select bonus = i.Bonus, empid = i.EmployeeIDfrom inserted i IF bonus 1000BEGIN SET msg = Employee + CAST(empid as varchar(50) + bonus is over
13、$1000 EXEC sp_audit_write user_defined_event_id = 12, succeeded = 1, user_defined_information = msg;ENDReading Audited EventsUse Event Viewer to view Windows event logsRetrieve file-based audits by using the sys.fn_get_audit_file functionSELECT event_time, object_id, server_principal_name, database_
14、name, schema_name, object_name, statement FROMsys.fn_get_audit_file(MIA-SQLAuditFiles*, default, default);Managing SQL Server AuditEnable or disable audits by setting STATEView audit configuration details in DMVsAudit considerations include:Restoring or attaching a database may result in a mismatche
15、d GUIDAttaching a database to a different edition of SQL Server may result in the audit not runningMirrored servers may result in mismatched GUIDsAuditing a large number of events can cause performance issuesFailure during audit can cause SQL Server to fail to startDemonstration: Using SQL Server Au
16、ditIn this demonstration, you will see how to:Create an auditCreate a server audit specificationCreate a database audit specificationView audited eventsLesson 3: Encrypting DatabasesTransparent Data Encryption OverviewConfiguring Transparent Data EncryptionMoving Encrypted DatabasesDemonstration: Im
17、plementing Transparent Data EncryptionExtensible Key ManagementTransparent Data Encryption OverviewService Master Key (SMK)Created during SQL Server installationEncrypted by Windows DPAPIDatabase Master Key (DMK)Created in master databaseEncrypted by SMKServer CertificateCreated in master databaseEn
18、crypted by DMKDatabase Encryption Key (DEK)Created in user databaseEncrypted by server certificateDPAPI (Windows)masterUser DBSMKmaster DMKServercertificateDEKConfiguring Transparent Data EncryptionCreate a DMK in master databaseCREATE MASTER KEY ENCRYPTION BY PASSWORD = Pa$w0rd;Create a Server Cert
19、ificate in master databaseCREATE CERTIFICATE Security_CertificateWITH SUBJECT = DEK_Certificate;Create a DEK in the user databaseCREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_128ENCRYPTION BY SERVER CERTIFICATE Security_Certificate;Enable encryption for the user databaseALTER DATABASE Adventur
20、eWorks SET ENCRYPTION ON;Moving Encrypted DatabasesDetach the source databaseCopy/move the database filesCreate new DMK in the master databaseGenerate a new server certificate from a backup of the original server certificate and its private keyAttach the databaseDemonstration: Implementing Transpare
21、nt Data EncryptionIn this demonstration, you will see how to:Create a database master keyCreate a server certificateCreate a database encryption keyEnable database encryptionExtensible Key ManagementEKM enables encryption keys to be stored securely in third-party hardware security modules (HSMs)Requires additional SQL Server configuration:The EKM provider enabled option must be onCredentials must be created to enable SQL Server to access keys in the HSMLab: Auditing D
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026廣東佛山市均安城市建設有限公司管理人員招聘備考題庫及答案詳解(典優(yōu))
- 2026嵐圖汽車制造領域招聘備考題庫帶答案詳解(考試直接用)
- 2026上半年安徽事業(yè)單位聯(lián)考六安市舒城縣招聘18人備考題庫含答案詳解(模擬題)
- 2026山東濰坊理工學院“雙師型”教師招聘42人備考題庫含答案詳解(典型題)
- 2026廣西崇左憑祥市退役軍人服務中心見習人員招聘1人備考題庫附參考答案詳解(培優(yōu))
- 2026云南雙江興順和投資運營集團有限責任公司招聘8人備考題庫帶答案詳解(輕巧奪冠)
- 2026上海市閔行區(qū)田園外國語中學第二批教師招聘備考題庫附答案詳解
- 2026年海洋能發(fā)電公司客戶滿意度調(diào)查制度
- 口腔和眼部真菌感染的治療效果-洞察與解讀
- 多觸點交互體驗優(yōu)化策略-洞察與解讀
- DB21-T 4279-2025 黑果腺肋花楸農(nóng)業(yè)氣象服務技術規(guī)程
- 2026廣東廣州市海珠區(qū)住房和建設局招聘雇員7人考試參考試題及答案解析
- 2026新疆伊犁州新源縣總工會面向社會招聘工會社會工作者3人考試備考題庫及答案解析
- 廣東省汕頭市2025-2026學年高三上學期期末語文試題(含答案)(含解析)
- 110接處警課件培訓
- DB15∕T 385-2025 行業(yè)用水定額
- 火箭軍教學課件
- 新媒體運營專員筆試考試題集含答案
- 護理不良事件之血標本采集錯誤分析與防控
- 數(shù)字孿生技術服務協(xié)議2025
- 心臟電生理檢查操作標準流程
評論
0/150
提交評論