SlideShare a Scribd company logo
Building Security Audits
with Extended Events
Jason
Strate
e: jstrate@pragmaticworks.com
e: jasonstrate@gmail.com
b: www.jasonstrate.com
t: StrateSQL
Resources jasonstrate.com/go/xevents
Introduction
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
• Founded 2008 by MSFT MVP Brian Knight
• Focused on the MSFT SQL Server Platform
• Provides services, training and software
• MSFT/HP “go to” partner:
• Gold Certified:
o BI
o Data Management
o SQL Performance
• Team led by multiple MVP’s
• Offices throughout the US with Corporate
HQ in Jacksonville, FL
Pragmatic Works Company History
It’s 12 o’clock…
Do you know where your data is?
Do you know who is accessing your data?
BuildingSecurity Audits with Extended Events
> ACCESS GRANTED!
Agenda
Why
Security
Audits?
Security
Audit
Components
Building a
Login Audit
Building a
Query Audit
Agenda
Why
Security
Audits?
Security
Audit
Components
Building a
Login Audit
Building a
Query Audit
Why Do We Need Security Audits?
Regulations
Corporate Policy
Responsibilities
Most Important Reason
Everyone Lies!
Even Unicorns,
While They Are
Doing Their Jobs
Validate Security
DataUsers
Types of Audits
Common Criteria Compliance
C2 Audit Tracing
SQL Audit
Extended Events
Types of Audits
Common Criteria Compliance
C2 Audit Tracing
SQL Audit
Extended Events
CCC and C2 Concerns
• Difficult to manage
• Too much data
• Too little control
• Behavior changes in SQL
Server
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
SQL Audit
• Two audit levels
– Server (Instance)
– Database
• Captures preset data
• Sync or async targets
– File
– Security log
– Application log
• Standard and Enterprise
– SQL Server 2012
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
SQL Audit
• No control on columns
– Maybe too much data
• Limited output formats
– Maybe need in-flight
aggregation
• Need something less?
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Perfect for tracking permissions
changes, login creation, DBCC
activity, backups and restores, etc.
Do you know
SQL Audit?
SQL AUDIT
Demo
“Lower” Solution
• Less invasive
• Temporary need
• Scenarios…
– What about Bob, the New
DBA?
– How often is Sally accessing
the database?
– What is the application
logon/logout frequency?
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Agenda
Why
Security
Audits?
Security
Audit
Components
Building a
Login Audit
Building a
Query Audit
Components
Events Actions
Predicates Targets
Packages
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Packages
Events Actions
Predicates Targets
Packages • sqlserver
• SecAudit
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Events
Events Actions
Predicates Targets
Packages
• Logon
• Logout
• SQL Statement
Starting
• RPC Starting
• Module Start
• SQL Batch
Starting
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Actions
Events Actions
Predicates Targets
Packages
• User Name
• Client App
Name
• Client
Hostname
• Database Id
• Database Name
• NT Username
• Server Instance
Name
• Server Principal
Name
• SQL Text
• User Name
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
PREDICATES
Events Actions
Predicates Targets
Packages
WHERE
• Equal
• Greater Than
• Less Than
• Not Equal
• LIKE
FILTERS
• AND
• OR
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Targets
Events Actions
Predicates Targets
Packages
• File Target
• Ring Buffer
• Event Stream
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Agenda
Why
Security
Audits?
Security
Audit
Components
Building a
Login Audit
Building a
Query Audit
Login Scenario
• How often is a login being used?
• When are logins occurring?
• What applications are using a login?
• What host has the most logins?
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Login Audits
• Connection Tracking template
– Login
– Logout
– Connectivity Ring Buffer Recorded
• Targets
– File target for long term analysis
– Ring buffer for shorty term activity
– Event stream for real-time analysis
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
LOGIN AUDITS
Demo
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Agenda
Why
Security
Audits?
Security
Audit
Components
Building a
Permissions
Audit
Building a
Query Audit
Query Audit
• What queries did the new DBA run?
• What is being run against XYZ database?
• What is the developer doing that keeps
causing SEVERITY 20 errors?
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Query Audit
• Query level auditing
– RPC Starting
– Module Start
– SP Statement Starting
– SQL Batch Starting
– SQL Statement Starting
• Targets
– Same as Login Audit
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
QUERY AUDIT
Demo
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Any Questions?
Learn More About Extended Events
MAKING BUSINESS INTELLIGENT
www.pragmaticworks.com
Services
Speed development through training, and
rapid development services from
Pragmatic Works.
Products
BI products to covert to a Microsoft BI
platform and simplify development on
the platform.
Foundation
Helping those who do not have the
means to get into information technology
achieve their dreams.
For more information…
Name: Jason Strate
Email: jstrate@pragmaticworks.com
Blog: www.jasonstrate.com
Resource: jasonstrate.com/go/xevents

More Related Content

PDF
Implementing Auditing in SQL Server
PDF
5 Amazing Reasons DBAs Need to Love Extended Events
PPTX
Icinga Camp Bangalore - Enterprise exceptions
PPTX
Icinga Camp Bangalore - Icinga and Icinga Director
PDF
10 Tips to Pump Up Your Atlassian Performance
PDF
Presto: Fast SQL on Everything
PDF
Redash: Open Source SQL Analytics on Data Lakes
PPTX
SPSVienna Office 365 Tenant to Tenant Migration - a complete Survial Guide
Implementing Auditing in SQL Server
5 Amazing Reasons DBAs Need to Love Extended Events
Icinga Camp Bangalore - Enterprise exceptions
Icinga Camp Bangalore - Icinga and Icinga Director
10 Tips to Pump Up Your Atlassian Performance
Presto: Fast SQL on Everything
Redash: Open Source SQL Analytics on Data Lakes
SPSVienna Office 365 Tenant to Tenant Migration - a complete Survial Guide

What's hot (20)

PDF
Community and Java EE @ DevConf.CZ
PPTX
Introduction to Event Sourcing
PDF
The (not so) Dark Art of Atlassian Performance Tuning
PDF
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
PDF
Docker in the Enterprise
PPTX
Introduction à Application Insights
PDF
Hexagonal Architecture using Grails
PPTX
Intro to Node.js (German)
PPTX
What is Nagios XI and how is it different from Nagios Core
PDF
Achieving cyber mission assurance with near real-time impact
PPTX
Database projects within visual studio
PDF
Jeremy Engle's slides from Redshift / Big Data meetup on July 13, 2017
PPTX
Monitoring as Code - Ignite
PDF
The Modern Data Team for the Modern Data Stack: dbt and the Role of the Analy...
PDF
I2 - SharePoint Hybrid Search Start to Finish - Thomas Vochten
PPTX
SSIS Monitoring Deep Dive
PPTX
Anypoint platform for api
PPTX
TechDays NL 2016 - Building your scalable secure IoT Solution on Azure
PDF
20160317 lagom sf scala
PDF
Better Search and Business Analytics at Southern Glazer’s Wine & Spirits
Community and Java EE @ DevConf.CZ
Introduction to Event Sourcing
The (not so) Dark Art of Atlassian Performance Tuning
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
Docker in the Enterprise
Introduction à Application Insights
Hexagonal Architecture using Grails
Intro to Node.js (German)
What is Nagios XI and how is it different from Nagios Core
Achieving cyber mission assurance with near real-time impact
Database projects within visual studio
Jeremy Engle's slides from Redshift / Big Data meetup on July 13, 2017
Monitoring as Code - Ignite
The Modern Data Team for the Modern Data Stack: dbt and the Role of the Analy...
I2 - SharePoint Hybrid Search Start to Finish - Thomas Vochten
SSIS Monitoring Deep Dive
Anypoint platform for api
TechDays NL 2016 - Building your scalable secure IoT Solution on Azure
20160317 lagom sf scala
Better Search and Business Analytics at Southern Glazer’s Wine & Spirits
Ad

Similar to BuildingSecurity Audits with Extended Events (20)

PDF
Introduction to SQL Server Security
PPTX
Hackers, Cyber Crime and Espionage
PDF
Xerox: Improving Data & App Security
PPT
Aplication data security compliances
PPT
Guardium Presentation
PPT
Database auditing essentials
PPTX
Top 5 critical changes to audit for active directory
PDF
Database monitoring - First and Last Line of Defense
PDF
More Databases. More Hackers. More Audits.
PDF
Geek Sync: Database Auditing Essentials: Tracking Who Did What to Which Data ...
PPTX
Data Protection Webinar
PPT
Security audit
PDF
SQL Server
PDF
The MITRE ATT&CK "Collection" Tactic is Missing Very Important Techniques: D...
PPTX
Cutting-Edge Network Behavior Audit Technology from BMST
PPT
SQL Server 2008 Security Overview
PDF
Idera live 2021: Database Auditing - on-Premises and in the Cloud by Craig M...
PPTX
Ved du, hvor dine data er - og hvem, der har adgang til dem? Ron Ben Natan, I...
PDF
5 ways to improve performance through indexing
PDF
Admin Tech Ed Presentation Hardening Sql Server
Introduction to SQL Server Security
Hackers, Cyber Crime and Espionage
Xerox: Improving Data & App Security
Aplication data security compliances
Guardium Presentation
Database auditing essentials
Top 5 critical changes to audit for active directory
Database monitoring - First and Last Line of Defense
More Databases. More Hackers. More Audits.
Geek Sync: Database Auditing Essentials: Tracking Who Did What to Which Data ...
Data Protection Webinar
Security audit
SQL Server
The MITRE ATT&CK "Collection" Tactic is Missing Very Important Techniques: D...
Cutting-Edge Network Behavior Audit Technology from BMST
SQL Server 2008 Security Overview
Idera live 2021: Database Auditing - on-Premises and in the Cloud by Craig M...
Ved du, hvor dine data er - og hvem, der har adgang til dem? Ron Ben Natan, I...
5 ways to improve performance through indexing
Admin Tech Ed Presentation Hardening Sql Server
Ad

More from Jason Strate (19)

PPTX
Accelerating Business Intelligence Solutions with Microsoft Azure pass
PPTX
The Plan Cache Whisperer - Performance Tuning SQL Server
PDF
Strategies for SQL Server Index Analysis
PDF
Leveraging Cloud for the Modern SQL Developer
PDF
Getting Started with Windows Azure and SQL Databases
PDF
5 SQL Server Indexing Myths
PDF
Introduction to Columnstore Indexes
PDF
Introduction to Clustered Indexes and Heaps
PDF
The Flavors of Non-Clustered Indexes
PDF
Necessary Evils, Building Optimized CRUD Procedures
PDF
How Do Non-Clustered Indexes Improve Performance?
PDF
Choosing Your Clustered Index
PPTX
The Side Effect of NOLOCK
PDF
Discovering the plan cache (sql sat175)
PDF
What are you waiting for? (#SQLSat211)
PDF
Discovering the plan cache (#SQLSat211)
PDF
Discovering the Plan Cache (#SQLSat 206)
PDF
A Function by Any Other Name is a Function
PDF
What are you waiting for
Accelerating Business Intelligence Solutions with Microsoft Azure pass
The Plan Cache Whisperer - Performance Tuning SQL Server
Strategies for SQL Server Index Analysis
Leveraging Cloud for the Modern SQL Developer
Getting Started with Windows Azure and SQL Databases
5 SQL Server Indexing Myths
Introduction to Columnstore Indexes
Introduction to Clustered Indexes and Heaps
The Flavors of Non-Clustered Indexes
Necessary Evils, Building Optimized CRUD Procedures
How Do Non-Clustered Indexes Improve Performance?
Choosing Your Clustered Index
The Side Effect of NOLOCK
Discovering the plan cache (sql sat175)
What are you waiting for? (#SQLSat211)
Discovering the plan cache (#SQLSat211)
Discovering the Plan Cache (#SQLSat 206)
A Function by Any Other Name is a Function
What are you waiting for

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Approach and Philosophy of On baking technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation theory and applications.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
KodekX | Application Modernization Development
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Machine learning based COVID-19 study performance prediction
Digital-Transformation-Roadmap-for-Companies.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Approach and Philosophy of On baking technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Unlocking AI with Model Context Protocol (MCP)
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation theory and applications.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

BuildingSecurity Audits with Extended Events