SlideShare a Scribd company logo
1 of 41
Download to read offline
GETTING STARTED WITH DATABASE
SECURITY ASSESSMENT TOOL
(DBSAT)
(Finding your Open Gates)
Capgemini
Presentation Title | Author | Date Company Confidential © Capgemini 2022. All rights reserved | 2
AGENDA
• What’s The Problem!?
• An example from history
• What is DBSAT and why you
would want to use it
• Components of DBSAT
(Collector, Analyzer and
Discoverer)
• Sample Output
• How to run DBSAT
How secure is your data (What do you know)?
Access controls? Encryption?
Known Exploits and
routes in? ( “Create
any Trigger” anyone?)
Known default logins?
Known configuration
issues?
Auditing?
Patching?
Capgemini 2022 3
Attackers don’t
attack your city
walls
• Attackers don’t attack your strengths, they attack your weaknesses.
• Knowing that your defensive strengths – encryption/audits etc are in
place is half the battle. Constantinople 1453 taken by the Ottoman
Empire.
Capgemini 2022 4
Where are
the
unlocked
gates?
You don’t know what don’t you know!?!?
Are your walls still in place?
Are your gates still closed?
Capgemini 2022 5
What DBSAT
does
• Scans your databases, listeners & ORACLE_HOME
for known exploits, vulnerabilities and “suboptimal
configuration”.
• Grades vulnerabilities against a set of known issues,
matching them to GDPR, DP, PCI-DSS, Oracle STIG,
CIS Benchmarks etc
• Makes recommendations for remediation.
• ALSO tells you where configuration is good!
• Scans the database to identify sensitive data
(financial, personal, health etc) using customizable
regular expression patterns.
Capgemini 2022 6
“ A Grand
Don’t Come
For Free”
• …But DBSAT is! (Kinda).
• DBSAT was once part of the Database Vault Option
but separated out in 2018. Freely available for
anyone with a current Oracle RDBMS license.
• Downloadable from MOS, Oracle Database
Security Assessment Tool (DBSAT) (Doc ID
2138254.1)
Capgemini 2022 7
DBSAT –
Benefits?
• Quickly and easily assess your current security
status.
• Can be used as part of a comprehensive security
strategy for frequent confirmation of your security
status.
• Promote Security Best practices.
• Reduce risk to your estate and data.
• Comply with GDPR, PCI, CIS with reports.
• Check for a changing security position using DBSAT
“diff” tools.
• Supplied and maintained by Oracle themselves.
Use as part of a wider security
checking/confimation service perhaps?
Capgemini 2022 8
What DBSAT is
• Oracle provided and maintained set of shell, SQL, Python and Java scripts wrapped
into command line executable (dbsat ).
• Can be run from Windows, Linux, Solaris and HPUX
• Downloaded from My Oracle Support (DocID 2138254.1). Latest version 2.2.2, June
2021
• Runs vs 10.2.0.5 to 21c
• Check databases on-prem and in cloud (OCI autonomous databases, RDS in AWS).
• Check single instance and RAC databases
• Doesn’t change anything in the database.
• ONLY looks at metadata/data dictionary and doesn’t query the actual data.
Capgemini 2022 9
What it
actually
checks
• User accounts, privileges, role grants , separation
of duties
• Database Configuration
• Listener and Network (TNS) Configuration
• Operating System Configuration, file permissions
• Fine-Grained Access Control
• Auditing policies
• Encryption
• Patching
Capgemini 2022 10
What it
doesn’t do
• It doesn’t do your job for you;- It doesn't itself
close any vulnerabilities, lock accounts, patch your
database or implement auditing, encryption
• Instead it tells you what is or could be an issue and
makes suggestions for remediating them.
Capgemini 2022 11
Using
DBSAT
Two Uses, 3 Modes
• Collector & Reporter –
Collects and analyses the
security information
• Discovery Mode- Uses
pattern matching against
data metadata to look for
sensitive and PII data.
Capgemini 2022 12
Using
DBSAT;-
Collector
• Is a set of SQL queries and OS commands/bat/shell
scripts.
• The Collector gets raw data from the target database,
primarily by querying data dictionary views. Doesn’t
look at the actual data - only metadata.
• Output is a JSON file which is encrypted by default.
• To get the full output it must be run on the database
server. (otherwise misses patch info/server config info)
by a user that can read ORACLE_HOME files.
• It can be run from anywhere that can connect to the
database.
• Used to get an errors if running on a server that’s not
the database server (ORA-20002: Complete without OS
Commands.) but coded to skip in latest version (2.2.2)
(bug 19c)
Capgemini 2022 13
Using
DBSAT:-
Reporter
• Is actually a Python Program
• The Reporter reads the collected data in the JSON
file, analyses it and produces reports with the
findings.
• The Reporter outputs four reports in all of
HTML, XLS, JSON and Text formats.
• Grades vulnerabilities as Pass, Low Risk, Medium
Risk, High Risk or Advisory.
• Output includes both what issues you have
covered off, and what issues need attention.
• Can run on any machine (doesn’t have to be the
collector machine)
• Output encrypted by default but can skip (don’t).
Capgemini 2022 14
Using
DBSAT:-
Discoverer
• Java program JRE 1.8.
• User customisable pattern matching;- For if you
know of additional patterns specific to your
datasets.
• Various language files so pattern matching is
language specific.
• Looks for names, addresses, job & role, salary,
health, disability, card, payments, employment, NI,
email, telephone.
• Queries database dictionary views to discover
sensitive data, it doesn’t query the actual data.
• Outputs both a html and csv file, encrypted by
default.
• From experience it can give rafts of false-positives
so takes a lot of time to review.
Capgemini 2022 15
DBSAT
Security
Considerations
Findings are extremely sensitive…
• Encrypt the output. Only share in encrypted form.
Output is encrypted (zip password) by default.
• Delete the files as soon as not needed.
• Use a specific DB account with minimum
permissions, and audit it.
• Only Grant permissions to the Oracle DBSAT DB
user, while needed and revoke when done. Or lock
and change password. Or drop after use.
• Ensure that the directories holding output files are
secured with the appropriate permissions.
Capgemini 2022 16
Output -
Discoverer
Big Warning!
Sensitive Information!
Password Protect the output!
Capgemini 2022 17
Reporter -
Output
• Header info and then Findings
• Findings categorised as Pass, Low Risk, Medium
Risk, High Risk, Advisory
• Finding anatomy ;- Summary, Remarks, Details, and
a References section.
Capgemini 2022 18
Reporter Output
-Header &
Summary
Capgemini 2022 19
Reporter - Output
• Basic
Capgemini 2022 20
Output –
Reporter
Example
Findings
Capgemini 2022 21
Output –
Reporter
Example
Findings
Capgemini 2022 22
Output –
Reporter
Example
Findings
Capgemini 2022 23
Output – Reporter Example Findings
Capgemini 2022 24
Output –
Discoverer
Heading
Capgemini 2022 25
Output –
Discoverer
Example
Findings
Capgemini 2022 26
Output – Discoverer Example Findings
(by table)
Capgemini 2022 27
Output – Discoverer Example Findings
(by schema and column)
Capgemini 2022 28
Output – Discoverer Real-World Findings
Capgemini 2022 29
Running the Collector
dbsat collect [ -n ] <database_connect_string> <output_file>
Options:
-n No encryption for output
<output_file> - no file extension
Capgemini 2022 30
Running the
Collector
Capgemini 2022 31
Running the Reporter
dbsat report [ -a ] [ -n ] [ -g ] [ -x <section> ] <input_file>
Options:
-a Report about all user accounts, including locked,
Oracle-supplied users
-n No encryption for output
-g Show all Grants including Common grants in a PDB
-x Specify sections to exclude from report
Prompted for the password to decrypt input and again to encrypt the output.
Capgemini 2022 32
Running the
Reporter
Capgemini 2022 33
Running the Discoverer
dbsat discover [ -n ] [ -c ] <config_file> <output_file>
Options:
-n No encryption for output
-c Configuration file for discoverer
• Configuration file stores Host/Port/Service name of target and wallet location is using SSL
etc.
• Sample config file in Discoverer/conf/sample_dbsat.config
• Prompted for database username and password.
Capgemini 2022 34
Running the
Discoverer
Capgemini 2022 35
DBSAT “Companion Utilities”
• dbsat_extract enables you to extract findings by their identifiers.
• dbsat_diff enables you to compare two reports and find the differences.
Capgemini 2022 36
Collector
Pre-reqs
Collector Prerequisites
• ZIP/UNZIP in path
• Oracle Client Install
Account with the following (SYSTEM works just
fine.. but create a separate account)
• CREATE SESSION
• READ or SELECT on SYS.REGISTRY$HISTORY
• Role SELECT_CATALOG_ROLE
• Role AUDIT_VIEWER (12c and later)
• Role CAPTURE_ADMIN (12c and later)
• SELECT on SYS.DBA_USERS_WITH_DEFPWD
(11g and later)
Capgemini 2022 37
Reporter & Discoverer Pre-reqs
Reporter Pre Requisites
• Is a platform independent Python program; Python 2.6 needed
Python –V shows version
Discoverer Prerequisites
• Java Runtime Environment (JRE) 1.8
• Relies on Stats in the database – DBMS_STATS should be run if necessary.
• There is a configuration file (.conf) to edit in the discoverer/conf directory;- add in the
host/port/service_name for the database
Capgemini 2022 38
But…..
• Maintained by Oracle – a bit of a black box
• How much of the various standards can it/does it
check (GDPR, DP, PCI-DSS, Oracle STIG, CIS
Benchmarks ) ?
• Cant tell us whether a particular user is supposed
to have access to a table or a certain permission.
• DBSAT is a good starting point to your approach
to security – its NOT the whole story.
Capgemini 2022 39
Constantinople falls
to the Ottomans
• https://www.ancient.eu/article/
1180/1453-the-fall-of-
constantinople/
References
Capgemini 2022 40
This presentation contains information that may be privileged or confidential and
is the property of the Capgemini Group.
Copyright © 2022 Capgemini. All rights reserved.
About Capgemini
Capgemini is a global leader in partnering with companies to transform and manage
their business by harnessing the power of technology. The Group is guided everyday by
its purpose of unleashing human energy through technology for an inclusive and
sustainable future. It is a responsible and diverse organization of over 325,000 team
members more than 50 countries. With its strong 55-year heritage and deep industry
expertise, Capgemini is trusted by its clients to address the entire breadth of their
business needs, from strategy and design to operations, fueled by the fast evolving and
innovative world of cloud, data, AI, connectivity, software, digital engineering and
platforms. The Group reported in 2021 global revenues of €18 billion.
Get The Future You Want | www.capgemini.com

More Related Content

Similar to GETTING STARTED WITH DATABASE SECURITY ASSESSMENT TOOL

Blackhat USA 2016 - What's the DFIRence for ICS?
Blackhat USA 2016 - What's the DFIRence for ICS?Blackhat USA 2016 - What's the DFIRence for ICS?
Blackhat USA 2016 - What's the DFIRence for ICS?Chris Sistrunk
 
[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...
[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...
[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...Hackito Ergo Sum
 
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)Spark Summit
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceAnil Nair
 
Groovy In the Cloud
Groovy In the CloudGroovy In the Cloud
Groovy In the CloudJim Driscoll
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureSinanPetrusToma
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesAlfredo Abate
 
Operational Visibiliy and Analytics - BU Seminar
Operational Visibiliy and Analytics - BU SeminarOperational Visibiliy and Analytics - BU Seminar
Operational Visibiliy and Analytics - BU SeminarCanturk Isci
 
Bsides Puerto Rico-2017
Bsides Puerto Rico-2017Bsides Puerto Rico-2017
Bsides Puerto Rico-2017Price McDonald
 
DBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseDBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseSinanPetrusToma
 
Codemotion 2015 Infinispan Tech lab
Codemotion 2015 Infinispan Tech labCodemotion 2015 Infinispan Tech lab
Codemotion 2015 Infinispan Tech labUgo Landini
 
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - Sydney
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - SydneySimplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - Sydney
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - SydneyAbhinav Gupta
 
Využijte svou Oracle databázi na maximum!
Využijte svou Oracle databázi na maximum!Využijte svou Oracle databázi na maximum!
Využijte svou Oracle databázi na maximum!MarketingArrowECS_CZ
 
SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...
SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...
SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...South Tyrol Free Software Conference
 
BSides Indy 2017 - Hardware Hacking - Abusing the Things
BSides Indy 2017 - Hardware Hacking - Abusing the ThingsBSides Indy 2017 - Hardware Hacking - Abusing the Things
BSides Indy 2017 - Hardware Hacking - Abusing the ThingsPrice McDonald
 
Enterprise Cloud Security
Enterprise Cloud SecurityEnterprise Cloud Security
Enterprise Cloud SecurityMongoDB
 
You Can't Correlate what you don't have - ArcSight Protect 2011
You Can't Correlate what you don't have - ArcSight Protect 2011You Can't Correlate what you don't have - ArcSight Protect 2011
You Can't Correlate what you don't have - ArcSight Protect 2011Scott Carlson
 
Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...
Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...
Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...mfrancis
 
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...Marcus Vinicius Miguel Pedro
 

Similar to GETTING STARTED WITH DATABASE SECURITY ASSESSMENT TOOL (20)

Blackhat USA 2016 - What's the DFIRence for ICS?
Blackhat USA 2016 - What's the DFIRence for ICS?Blackhat USA 2016 - What's the DFIRence for ICS?
Blackhat USA 2016 - What's the DFIRence for ICS?
 
[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...
[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...
[HES2013] Virtually secure, analysis to remote root 0day on an industry leadi...
 
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
Groovy In the Cloud
Groovy In the CloudGroovy In the Cloud
Groovy In the Cloud
 
Malware for Red Team
Malware for Red TeamMalware for Red Team
Malware for Red Team
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
Operational Visibiliy and Analytics - BU Seminar
Operational Visibiliy and Analytics - BU SeminarOperational Visibiliy and Analytics - BU Seminar
Operational Visibiliy and Analytics - BU Seminar
 
Bsides Puerto Rico-2017
Bsides Puerto Rico-2017Bsides Puerto Rico-2017
Bsides Puerto Rico-2017
 
DBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseDBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous Database
 
Codemotion 2015 Infinispan Tech lab
Codemotion 2015 Infinispan Tech labCodemotion 2015 Infinispan Tech lab
Codemotion 2015 Infinispan Tech lab
 
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - Sydney
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - SydneySimplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - Sydney
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - Sydney
 
Využijte svou Oracle databázi na maximum!
Využijte svou Oracle databázi na maximum!Využijte svou Oracle databázi na maximum!
Využijte svou Oracle databázi na maximum!
 
SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...
SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...
SFSCON23 - Jorge Melegati Moritz Mock Barbara Russo - Recommending security f...
 
BSides Indy 2017 - Hardware Hacking - Abusing the Things
BSides Indy 2017 - Hardware Hacking - Abusing the ThingsBSides Indy 2017 - Hardware Hacking - Abusing the Things
BSides Indy 2017 - Hardware Hacking - Abusing the Things
 
Enterprise Cloud Security
Enterprise Cloud SecurityEnterprise Cloud Security
Enterprise Cloud Security
 
You Can't Correlate what you don't have - ArcSight Protect 2011
You Can't Correlate what you don't have - ArcSight Protect 2011You Can't Correlate what you don't have - ArcSight Protect 2011
You Can't Correlate what you don't have - ArcSight Protect 2011
 
Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...
Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...
Do not disturb my circles! Secure Application Isolation with OSGi - Mirko Jah...
 
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
 

Recently uploaded

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 

Recently uploaded (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 

GETTING STARTED WITH DATABASE SECURITY ASSESSMENT TOOL

  • 1. GETTING STARTED WITH DATABASE SECURITY ASSESSMENT TOOL (DBSAT) (Finding your Open Gates) Capgemini
  • 2. Presentation Title | Author | Date Company Confidential © Capgemini 2022. All rights reserved | 2 AGENDA • What’s The Problem!? • An example from history • What is DBSAT and why you would want to use it • Components of DBSAT (Collector, Analyzer and Discoverer) • Sample Output • How to run DBSAT
  • 3. How secure is your data (What do you know)? Access controls? Encryption? Known Exploits and routes in? ( “Create any Trigger” anyone?) Known default logins? Known configuration issues? Auditing? Patching? Capgemini 2022 3
  • 4. Attackers don’t attack your city walls • Attackers don’t attack your strengths, they attack your weaknesses. • Knowing that your defensive strengths – encryption/audits etc are in place is half the battle. Constantinople 1453 taken by the Ottoman Empire. Capgemini 2022 4
  • 5. Where are the unlocked gates? You don’t know what don’t you know!?!? Are your walls still in place? Are your gates still closed? Capgemini 2022 5
  • 6. What DBSAT does • Scans your databases, listeners & ORACLE_HOME for known exploits, vulnerabilities and “suboptimal configuration”. • Grades vulnerabilities against a set of known issues, matching them to GDPR, DP, PCI-DSS, Oracle STIG, CIS Benchmarks etc • Makes recommendations for remediation. • ALSO tells you where configuration is good! • Scans the database to identify sensitive data (financial, personal, health etc) using customizable regular expression patterns. Capgemini 2022 6
  • 7. “ A Grand Don’t Come For Free” • …But DBSAT is! (Kinda). • DBSAT was once part of the Database Vault Option but separated out in 2018. Freely available for anyone with a current Oracle RDBMS license. • Downloadable from MOS, Oracle Database Security Assessment Tool (DBSAT) (Doc ID 2138254.1) Capgemini 2022 7
  • 8. DBSAT – Benefits? • Quickly and easily assess your current security status. • Can be used as part of a comprehensive security strategy for frequent confirmation of your security status. • Promote Security Best practices. • Reduce risk to your estate and data. • Comply with GDPR, PCI, CIS with reports. • Check for a changing security position using DBSAT “diff” tools. • Supplied and maintained by Oracle themselves. Use as part of a wider security checking/confimation service perhaps? Capgemini 2022 8
  • 9. What DBSAT is • Oracle provided and maintained set of shell, SQL, Python and Java scripts wrapped into command line executable (dbsat ). • Can be run from Windows, Linux, Solaris and HPUX • Downloaded from My Oracle Support (DocID 2138254.1). Latest version 2.2.2, June 2021 • Runs vs 10.2.0.5 to 21c • Check databases on-prem and in cloud (OCI autonomous databases, RDS in AWS). • Check single instance and RAC databases • Doesn’t change anything in the database. • ONLY looks at metadata/data dictionary and doesn’t query the actual data. Capgemini 2022 9
  • 10. What it actually checks • User accounts, privileges, role grants , separation of duties • Database Configuration • Listener and Network (TNS) Configuration • Operating System Configuration, file permissions • Fine-Grained Access Control • Auditing policies • Encryption • Patching Capgemini 2022 10
  • 11. What it doesn’t do • It doesn’t do your job for you;- It doesn't itself close any vulnerabilities, lock accounts, patch your database or implement auditing, encryption • Instead it tells you what is or could be an issue and makes suggestions for remediating them. Capgemini 2022 11
  • 12. Using DBSAT Two Uses, 3 Modes • Collector & Reporter – Collects and analyses the security information • Discovery Mode- Uses pattern matching against data metadata to look for sensitive and PII data. Capgemini 2022 12
  • 13. Using DBSAT;- Collector • Is a set of SQL queries and OS commands/bat/shell scripts. • The Collector gets raw data from the target database, primarily by querying data dictionary views. Doesn’t look at the actual data - only metadata. • Output is a JSON file which is encrypted by default. • To get the full output it must be run on the database server. (otherwise misses patch info/server config info) by a user that can read ORACLE_HOME files. • It can be run from anywhere that can connect to the database. • Used to get an errors if running on a server that’s not the database server (ORA-20002: Complete without OS Commands.) but coded to skip in latest version (2.2.2) (bug 19c) Capgemini 2022 13
  • 14. Using DBSAT:- Reporter • Is actually a Python Program • The Reporter reads the collected data in the JSON file, analyses it and produces reports with the findings. • The Reporter outputs four reports in all of HTML, XLS, JSON and Text formats. • Grades vulnerabilities as Pass, Low Risk, Medium Risk, High Risk or Advisory. • Output includes both what issues you have covered off, and what issues need attention. • Can run on any machine (doesn’t have to be the collector machine) • Output encrypted by default but can skip (don’t). Capgemini 2022 14
  • 15. Using DBSAT:- Discoverer • Java program JRE 1.8. • User customisable pattern matching;- For if you know of additional patterns specific to your datasets. • Various language files so pattern matching is language specific. • Looks for names, addresses, job & role, salary, health, disability, card, payments, employment, NI, email, telephone. • Queries database dictionary views to discover sensitive data, it doesn’t query the actual data. • Outputs both a html and csv file, encrypted by default. • From experience it can give rafts of false-positives so takes a lot of time to review. Capgemini 2022 15
  • 16. DBSAT Security Considerations Findings are extremely sensitive… • Encrypt the output. Only share in encrypted form. Output is encrypted (zip password) by default. • Delete the files as soon as not needed. • Use a specific DB account with minimum permissions, and audit it. • Only Grant permissions to the Oracle DBSAT DB user, while needed and revoke when done. Or lock and change password. Or drop after use. • Ensure that the directories holding output files are secured with the appropriate permissions. Capgemini 2022 16
  • 17. Output - Discoverer Big Warning! Sensitive Information! Password Protect the output! Capgemini 2022 17
  • 18. Reporter - Output • Header info and then Findings • Findings categorised as Pass, Low Risk, Medium Risk, High Risk, Advisory • Finding anatomy ;- Summary, Remarks, Details, and a References section. Capgemini 2022 18
  • 20. Reporter - Output • Basic Capgemini 2022 20
  • 24. Output – Reporter Example Findings Capgemini 2022 24
  • 27. Output – Discoverer Example Findings (by table) Capgemini 2022 27
  • 28. Output – Discoverer Example Findings (by schema and column) Capgemini 2022 28
  • 29. Output – Discoverer Real-World Findings Capgemini 2022 29
  • 30. Running the Collector dbsat collect [ -n ] <database_connect_string> <output_file> Options: -n No encryption for output <output_file> - no file extension Capgemini 2022 30
  • 32. Running the Reporter dbsat report [ -a ] [ -n ] [ -g ] [ -x <section> ] <input_file> Options: -a Report about all user accounts, including locked, Oracle-supplied users -n No encryption for output -g Show all Grants including Common grants in a PDB -x Specify sections to exclude from report Prompted for the password to decrypt input and again to encrypt the output. Capgemini 2022 32
  • 34. Running the Discoverer dbsat discover [ -n ] [ -c ] <config_file> <output_file> Options: -n No encryption for output -c Configuration file for discoverer • Configuration file stores Host/Port/Service name of target and wallet location is using SSL etc. • Sample config file in Discoverer/conf/sample_dbsat.config • Prompted for database username and password. Capgemini 2022 34
  • 36. DBSAT “Companion Utilities” • dbsat_extract enables you to extract findings by their identifiers. • dbsat_diff enables you to compare two reports and find the differences. Capgemini 2022 36
  • 37. Collector Pre-reqs Collector Prerequisites • ZIP/UNZIP in path • Oracle Client Install Account with the following (SYSTEM works just fine.. but create a separate account) • CREATE SESSION • READ or SELECT on SYS.REGISTRY$HISTORY • Role SELECT_CATALOG_ROLE • Role AUDIT_VIEWER (12c and later) • Role CAPTURE_ADMIN (12c and later) • SELECT on SYS.DBA_USERS_WITH_DEFPWD (11g and later) Capgemini 2022 37
  • 38. Reporter & Discoverer Pre-reqs Reporter Pre Requisites • Is a platform independent Python program; Python 2.6 needed Python –V shows version Discoverer Prerequisites • Java Runtime Environment (JRE) 1.8 • Relies on Stats in the database – DBMS_STATS should be run if necessary. • There is a configuration file (.conf) to edit in the discoverer/conf directory;- add in the host/port/service_name for the database Capgemini 2022 38
  • 39. But….. • Maintained by Oracle – a bit of a black box • How much of the various standards can it/does it check (GDPR, DP, PCI-DSS, Oracle STIG, CIS Benchmarks ) ? • Cant tell us whether a particular user is supposed to have access to a table or a certain permission. • DBSAT is a good starting point to your approach to security – its NOT the whole story. Capgemini 2022 39
  • 40. Constantinople falls to the Ottomans • https://www.ancient.eu/article/ 1180/1453-the-fall-of- constantinople/ References Capgemini 2022 40
  • 41. This presentation contains information that may be privileged or confidential and is the property of the Capgemini Group. Copyright © 2022 Capgemini. All rights reserved. About Capgemini Capgemini is a global leader in partnering with companies to transform and manage their business by harnessing the power of technology. The Group is guided everyday by its purpose of unleashing human energy through technology for an inclusive and sustainable future. It is a responsible and diverse organization of over 325,000 team members more than 50 countries. With its strong 55-year heritage and deep industry expertise, Capgemini is trusted by its clients to address the entire breadth of their business needs, from strategy and design to operations, fueled by the fast evolving and innovative world of cloud, data, AI, connectivity, software, digital engineering and platforms. The Group reported in 2021 global revenues of €18 billion. Get The Future You Want | www.capgemini.com