SlideShare une entreprise Scribd logo
1  sur  31
Protect Your Server
Dos and Don’ts of secure MySQL
Deployment.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.2
The following is intended to outline our general product direction. It is intended
for information purposes only, and may not be incorporated into any contract.
It is not a commitment to deliver any material, code, or functionality, and should
not be relied upon in making purchasing decisions. The development, release,
and timing of any features or functionality described for Oracle’s products
remains at the sole discretion of Oracle.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.3
Agenda
 The post-install situation
 How to harden it ?
 More security
 Security related changes in MySQL 5.7
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.4
• Former banking IT Manager
• Veteran software developer
• Leading the MySQL Server General
development team
• Been with MySQL since 2006
• Regular MySQL conference speaker
About Me
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.5
The Post-Install Situation :
MySQL Server security in
OpenSuse 13.1
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.6
The Good News
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.7
MySQL 5.6.12
The Good News
 Only 5 MRUs away from dev.mysql.com/downloads !
– New authentication method sha256_password
– Manual password expiration : ALTER USER EXPIRE
– Password strength verification plugin and API
– Login paths
– Support SSL CRLs and key files with pass phrases
– Use SSL library’s random generator
– Obfuscate passwords in logs
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.8
Installation Layout
 MySQL server service not on by default
 Separate mysql-community-server-test rpm
 Separate mysql-community-server-tools rpm
 No pre-packaged database
 No remote access by default
The Good News
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.9
The Not So Good News
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.10
MySQL 5.6.12
 3 CPUs and 24 CVE reported security bugs away from 5.6.15 (last
CVE)
 More than 500 other bugs away from 5.6.18 (current)
 Lacks the advanced AES function modes
The Not So Good News
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.11
Installation layout
 mysql_secure_installation not run
– Anybody can connect as root
– Anonymous access to the server allowed
– No password strength checks
– Empty passwords for the default accounts
– Anybody gets full access to the test database
 mysql_config_editor not in mysql-community-server-client
The Not So Good News
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.12
Installation layout. Continued.
 Federated plugin installed by default
 Archive plugin actually not needed (error on startup)
 Some testing only authentication plugins installed by mysql-
community-server
 No SSL certificates. Even self-signed ones
 secure_file_priv set to NULL
– grants SQL read and write access to the full OS file system
The Not So Good News
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.13
Installation layout. The Sequel.
 sha256_password plugin under-configured: no RSA keys
 No query logging: neither audit nor query log
 mysqld listens on all network interfaces
The Not So Good News
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.14
Random (Not So) Funny Story
Recognize the pattern ?
New
Code
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.15
WHAT YOU GET IS
A DEVELOPMENT
INSTALLATION !
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.16
How to Harden Your MySQL
installation ?
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.17
Post Server Installation
 Run mysql_secure_installation ! Now !
 Review and restrict the network interfaces that the server listens on
 Generate SSL keys and make sure the server can “talk” SSL
 Enable query logging. Create a log backup policy.
 Remove extra user accounts and privileges
 Remove unneeded files and packages
 Schedule regular backups !
Hardening your MySQL installation
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.18
Post Application(s) Installation
 Remove extra user accounts. Restrict the remaining ones
 Review and maximally restrict the grants
 Make sure the user accounts authenticate using a reliable method
 Clean up extra temp files
 Make sure backups are still on and cover the new objects
 Remove unneeded files and packages
 Audit the server configuration for changes. Revert the bogus ones
Hardening your MySQL installation
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.19
Daily MySQL Use
 Keep your installation up to date
 Monitor your server logs. Set alerts for “unusual” patterns.
 Monitor security related stats. Set alerts for “unusual” patterns.
 Monitor the server configuration.
 Monitor and verify the backups and their integrity
 Regularly probe your “defenses” by trying bad things on purpose
 Perform regular emergency drills
 Set procedures on maintaining your user account base
Hardening your MySQL installation
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.20
More Security
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.21
Harden your MySQL Server Instance
 Consider turning off TCP/IP if your setup allows it
 Use and enforce SSL if you need TCP/IP
– Even self-signed will do. Part of PKI is better
 Use SSL certificate requirements for users
– GRANT … TO …. REQUIRE [CIPHER | ISSUER | SUBJECT] …
 Be careful with your directories
– tmpdir, datadir, secure-file-priv, plugin-dir
Additional steps
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.22
Harden your MySQL Server Instance
 Monitor and keep the logs
– Consider using an auditing plugin
– put extra protection on sensitive tables: custom logging triggers etc
 Consider using external authentication
– PAM, LDAP, windows domain
 Harden your password policy
– MySQL has a plugin for that !
 Use login paths for your scripts
Even more steps
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.23
Harden your MySQL Server Instance
Parameter Recommended Value
secure_file_priv Designated directory
symbolic_links Boolean NO
default-storage-engine InnoDB
general-log Boolean ON
log-raw Default : OFF
skip-networking ON, if you can afford it.
ssl options Set to valid values
Useful parameters to set
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.24
Harden your MySQL Server Instance
Parameter Recommended Value
plugin-dir Designated read-only directory
chroot Designated directory, if you can afford it
core-file OFF
des-key-file File with DES keys
read_only ON for slaves !
sha256_password RSA key RSA public private keys if can’t use SSL
tmpdir Designated directory out of secure-file-priv
Useful parameters to set
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.25
New Security Features in
MySQL 5.7 DMRs
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.26
Security Features in 5.7 DMRs
 Audit log plugin works with Audit Vault
 Login paths and mysql_config_editor
 --syslog option to mysql
 Mark mysql_old_password (pre- 4.1 password format) as deprecated
5.7.1: 23 April 2013
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.27
Security Features in 5.7 DMRs
 Require explicit authentication plugin for all user accounts
 Rewrite mysql_secure_installation to C and harden it
– Enables password strength validation
– Generates random password for root and marks it as expired
– Restricts the root user so it can login only from localhost
 Deprecate ENCODE()/DECODE()
 --error-log-verbosity control
 Client side protocol tracing plugins in libmysql
5.7.2: 21 Sep 2013
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.28
Security Features in 5.7 DMRs
 Redefine the meaning of the –ssl option
– --ssl on the client enforces SSL now
– Other –ssl options enable ssl, but not enforce it
 Proper connection state reset : mysql_reset_connection()
5.7.3: 3 Dec 2013
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.29
Security Features in 5.7 DMRs
 RPM packages secure by default
– The effect of mysql_secure_installation by default
– Separate packages for non-essential tools and utilities
 Automatic timed password expiration
– Per site and per user
 AES_ENCRYPT()/AES_DECRYPT() now support block modes and
larger key sizes
 Strong crypto random SQL function added: RANDOM_BYTES()
5.7.4: 31 Mar 2014
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.30
Questions ? Suggestions ?
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.31

Contenu connexe

Tendances

Oracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOrgad Kimchi
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep diveMark Leith
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...ginniapps
 
UCS Automation through the use of API's and UCS PowerTool
UCS Automation through the use of API's and UCS PowerToolUCS Automation through the use of API's and UCS PowerTool
UCS Automation through the use of API's and UCS PowerToolCisco Canada
 
Presentation deploying oracle database 11g securely on oracle solaris
Presentation    deploying oracle database 11g securely on oracle solarisPresentation    deploying oracle database 11g securely on oracle solaris
Presentation deploying oracle database 11g securely on oracle solarisxKinAnx
 
Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure
Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure
Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure Orgad Kimchi
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep diveMark Leith
 
The MySQL SYS Schema
The MySQL SYS SchemaThe MySQL SYS Schema
The MySQL SYS SchemaMark Leith
 
MySQL Replication Performance in the Cloud
MySQL Replication Performance in the CloudMySQL Replication Performance in the Cloud
MySQL Replication Performance in the CloudVitor Oliveira
 
Dr3150012012202 1.getting started
Dr3150012012202 1.getting startedDr3150012012202 1.getting started
Dr3150012012202 1.getting startedNamgu Jeong
 
Oracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best PracticesOracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best PracticesRevelation Technologies
 
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...Mark Swarbrick
 
Oracle Failover Database Cluster with Grid Infrastructure 12c
Oracle Failover Database Cluster with Grid Infrastructure 12cOracle Failover Database Cluster with Grid Infrastructure 12c
Oracle Failover Database Cluster with Grid Infrastructure 12cTrivadis
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQLTed Wennmark
 
Performance schema and sys schema
Performance schema and sys schemaPerformance schema and sys schema
Performance schema and sys schemaMark Leith
 
New Not Your Father's Enterprise Manager
New Not Your Father's Enterprise ManagerNew Not Your Father's Enterprise Manager
New Not Your Father's Enterprise ManagerKellyn Pot'Vin-Gorman
 

Tendances (20)

Web Server Hardening
Web Server HardeningWeb Server Hardening
Web Server Hardening
 
Oracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOracle Solaris 11.1 New Features
Oracle Solaris 11.1 New Features
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
VMWare Lab For Training, Testing or Proof of Concept
VMWare Lab For Training, Testing or Proof of ConceptVMWare Lab For Training, Testing or Proof of Concept
VMWare Lab For Training, Testing or Proof of Concept
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
 
UCS Automation through the use of API's and UCS PowerTool
UCS Automation through the use of API's and UCS PowerToolUCS Automation through the use of API's and UCS PowerTool
UCS Automation through the use of API's and UCS PowerTool
 
Presentation deploying oracle database 11g securely on oracle solaris
Presentation    deploying oracle database 11g securely on oracle solarisPresentation    deploying oracle database 11g securely on oracle solaris
Presentation deploying oracle database 11g securely on oracle solaris
 
Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure
Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure
Oracle Solaris 11 platform for ECI Telecom private cloud infrastructure
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
The MySQL SYS Schema
The MySQL SYS SchemaThe MySQL SYS Schema
The MySQL SYS Schema
 
MySQL Replication Performance in the Cloud
MySQL Replication Performance in the CloudMySQL Replication Performance in the Cloud
MySQL Replication Performance in the Cloud
 
Dr3150012012202 1.getting started
Dr3150012012202 1.getting startedDr3150012012202 1.getting started
Dr3150012012202 1.getting started
 
Oracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best PracticesOracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best Practices
 
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
 
Oracle Failover Database Cluster with Grid Infrastructure 12c
Oracle Failover Database Cluster with Grid Infrastructure 12cOracle Failover Database Cluster with Grid Infrastructure 12c
Oracle Failover Database Cluster with Grid Infrastructure 12c
 
Cisco ASA Firewalls
Cisco ASA FirewallsCisco ASA Firewalls
Cisco ASA Firewalls
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
Performance schema and sys schema
Performance schema and sys schemaPerformance schema and sys schema
Performance schema and sys schema
 
New Not Your Father's Enterprise Manager
New Not Your Father's Enterprise ManagerNew Not Your Father's Enterprise Manager
New Not Your Father's Enterprise Manager
 

Similaire à 2014 OpenSuse Conf: Protect your MySQL Server

Mysql user-camp-march-11th-2016
Mysql user-camp-march-11th-2016Mysql user-camp-march-11th-2016
Mysql user-camp-march-11th-2016Harin Vadodaria
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAsMario Beck
 
MySQL Community and Commercial Edition
MySQL Community and Commercial EditionMySQL Community and Commercial Edition
MySQL Community and Commercial EditionMario Beck
 
Modern Data Security with MySQL
Modern Data Security with MySQLModern Data Security with MySQL
Modern Data Security with MySQLVittorio Cioe
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAsBen Krug
 
MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014Lars Thalmann
 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Courtney Llamas
 
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise MonitorNetherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise MonitorMark Swarbrick
 
MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15MySQL Brasil
 
Oracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLOracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLMario Beck
 
Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!Kellyn Pot'Vin-Gorman
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivanIvan Tu
 
Kscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise ManagerKscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise ManagerKellyn Pot'Vin-Gorman
 
Basic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsBasic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsSveta Smirnova
 
MySQL enterprise edition
MySQL enterprise edition MySQL enterprise edition
MySQL enterprise edition Mark Swarbrick
 
MySQL Web Reference Architecture
MySQL Web Reference Architecture MySQL Web Reference Architecture
MySQL Web Reference Architecture Ricky Setyawan
 
MySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMark Leith
 
Mysql repos testing.odp
Mysql repos testing.odpMysql repos testing.odp
Mysql repos testing.odpRamana Yeruva
 

Similaire à 2014 OpenSuse Conf: Protect your MySQL Server (20)

Mysql user-camp-march-11th-2016
Mysql user-camp-march-11th-2016Mysql user-camp-march-11th-2016
Mysql user-camp-march-11th-2016
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Community and Commercial Edition
MySQL Community and Commercial EditionMySQL Community and Commercial Edition
MySQL Community and Commercial Edition
 
Modern Data Security with MySQL
Modern Data Security with MySQLModern Data Security with MySQL
Modern Data Security with MySQL
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014
 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
 
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise MonitorNetherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
 
MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15
 
Oracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLOracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQL
 
Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan
 
Kscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise ManagerKscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise Manager
 
MySQL Quick Dive
MySQL Quick DiveMySQL Quick Dive
MySQL Quick Dive
 
Basic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsBasic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAs
 
Marcin Szałowicz - MySQL Workbench
Marcin Szałowicz - MySQL WorkbenchMarcin Szałowicz - MySQL Workbench
Marcin Szałowicz - MySQL Workbench
 
MySQL enterprise edition
MySQL enterprise edition MySQL enterprise edition
MySQL enterprise edition
 
MySQL Web Reference Architecture
MySQL Web Reference Architecture MySQL Web Reference Architecture
MySQL Web Reference Architecture
 
MySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema Improvements
 
Mysql repos testing.odp
Mysql repos testing.odpMysql repos testing.odp
Mysql repos testing.odp
 

Plus de Georgi Kodinov

2023 TurnovoConf MySQL Authentication.pptx
2023 TurnovoConf MySQL Authentication.pptx2023 TurnovoConf MySQL Authentication.pptx
2023 TurnovoConf MySQL Authentication.pptxGeorgi Kodinov
 
2022 TurnovoConf MySQL за начинаещи.pptx
2022 TurnovoConf MySQL за начинаещи.pptx2022 TurnovoConf MySQL за начинаещи.pptx
2022 TurnovoConf MySQL за начинаещи.pptxGeorgi Kodinov
 
OpenSUSE Conf 2020 MySQL Clone
OpenSUSE Conf 2020 MySQL CloneOpenSUSE Conf 2020 MySQL Clone
OpenSUSE Conf 2020 MySQL CloneGeorgi Kodinov
 
2020 pre fosdem mysql clone
2020 pre fosdem   mysql clone2020 pre fosdem   mysql clone
2020 pre fosdem mysql cloneGeorgi Kodinov
 
2019 BGOUG Autumn MySQL Clone
2019  BGOUG Autumn MySQL Clone2019  BGOUG Autumn MySQL Clone
2019 BGOUG Autumn MySQL CloneGeorgi Kodinov
 
2019 indit blackhat_honeypot your database server
2019 indit blackhat_honeypot your database server2019 indit blackhat_honeypot your database server
2019 indit blackhat_honeypot your database serverGeorgi Kodinov
 
PLe19 How To Instrument Your Code in performance_schema
PLe19 How To Instrument Your Code in performance_schemaPLe19 How To Instrument Your Code in performance_schema
PLe19 How To Instrument Your Code in performance_schemaGeorgi Kodinov
 
DevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 SecurityDevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 SecurityGeorgi Kodinov
 
DevTalks.ro 2019 MySQL Data Masking Talk
DevTalks.ro 2019 MySQL Data Masking TalkDevTalks.ro 2019 MySQL Data Masking Talk
DevTalks.ro 2019 MySQL Data Masking TalkGeorgi Kodinov
 
FOSDEM19 MySQL Component Infrastructure
FOSDEM19 MySQL Component InfrastructureFOSDEM19 MySQL Component Infrastructure
FOSDEM19 MySQL Component InfrastructureGeorgi Kodinov
 
MySQL Enterprise Data Masking
MySQL Enterprise Data MaskingMySQL Enterprise Data Masking
MySQL Enterprise Data MaskingGeorgi Kodinov
 
Percona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 SecurityPercona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 SecurityGeorgi Kodinov
 
How to add stuff to MySQL
How to add stuff to MySQLHow to add stuff to MySQL
How to add stuff to MySQLGeorgi Kodinov
 
BGOUG17: Cloudy with a chance of MySQL
BGOUG17: Cloudy with a chance of MySQLBGOUG17: Cloudy with a chance of MySQL
BGOUG17: Cloudy with a chance of MySQLGeorgi Kodinov
 
Pl17: MySQL 8.0: security
Pl17: MySQL 8.0: securityPl17: MySQL 8.0: security
Pl17: MySQL 8.0: securityGeorgi Kodinov
 
Fosdem17 honeypot your database server
Fosdem17 honeypot your database serverFosdem17 honeypot your database server
Fosdem17 honeypot your database serverGeorgi Kodinov
 
OUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source CodeOUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source CodeGeorgi Kodinov
 
OUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLOUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLGeorgi Kodinov
 
Openfest15 MySQL Plugin Development
Openfest15 MySQL Plugin DevelopmentOpenfest15 MySQL Plugin Development
Openfest15 MySQL Plugin DevelopmentGeorgi Kodinov
 

Plus de Georgi Kodinov (20)

2023 TurnovoConf MySQL Authentication.pptx
2023 TurnovoConf MySQL Authentication.pptx2023 TurnovoConf MySQL Authentication.pptx
2023 TurnovoConf MySQL Authentication.pptx
 
2022 TurnovoConf MySQL за начинаещи.pptx
2022 TurnovoConf MySQL за начинаещи.pptx2022 TurnovoConf MySQL за начинаещи.pptx
2022 TurnovoConf MySQL за начинаещи.pptx
 
OpenSUSE Conf 2020 MySQL Clone
OpenSUSE Conf 2020 MySQL CloneOpenSUSE Conf 2020 MySQL Clone
OpenSUSE Conf 2020 MySQL Clone
 
2020 pre fosdem mysql clone
2020 pre fosdem   mysql clone2020 pre fosdem   mysql clone
2020 pre fosdem mysql clone
 
2019 BGOUG Autumn MySQL Clone
2019  BGOUG Autumn MySQL Clone2019  BGOUG Autumn MySQL Clone
2019 BGOUG Autumn MySQL Clone
 
2019 indit blackhat_honeypot your database server
2019 indit blackhat_honeypot your database server2019 indit blackhat_honeypot your database server
2019 indit blackhat_honeypot your database server
 
PLe19 How To Instrument Your Code in performance_schema
PLe19 How To Instrument Your Code in performance_schemaPLe19 How To Instrument Your Code in performance_schema
PLe19 How To Instrument Your Code in performance_schema
 
DevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 SecurityDevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 Security
 
DevTalks.ro 2019 MySQL Data Masking Talk
DevTalks.ro 2019 MySQL Data Masking TalkDevTalks.ro 2019 MySQL Data Masking Talk
DevTalks.ro 2019 MySQL Data Masking Talk
 
FOSDEM19 MySQL Component Infrastructure
FOSDEM19 MySQL Component InfrastructureFOSDEM19 MySQL Component Infrastructure
FOSDEM19 MySQL Component Infrastructure
 
MySQL Enterprise Data Masking
MySQL Enterprise Data MaskingMySQL Enterprise Data Masking
MySQL Enterprise Data Masking
 
Percona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 SecurityPercona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 Security
 
How to add stuff to MySQL
How to add stuff to MySQLHow to add stuff to MySQL
How to add stuff to MySQL
 
Pl18 saving bandwidth
Pl18 saving bandwidthPl18 saving bandwidth
Pl18 saving bandwidth
 
BGOUG17: Cloudy with a chance of MySQL
BGOUG17: Cloudy with a chance of MySQLBGOUG17: Cloudy with a chance of MySQL
BGOUG17: Cloudy with a chance of MySQL
 
Pl17: MySQL 8.0: security
Pl17: MySQL 8.0: securityPl17: MySQL 8.0: security
Pl17: MySQL 8.0: security
 
Fosdem17 honeypot your database server
Fosdem17 honeypot your database serverFosdem17 honeypot your database server
Fosdem17 honeypot your database server
 
OUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source CodeOUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source Code
 
OUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLOUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQL
 
Openfest15 MySQL Plugin Development
Openfest15 MySQL Plugin DevelopmentOpenfest15 MySQL Plugin Development
Openfest15 MySQL Plugin Development
 

Dernier

Lecture # 8 software design and architecture (SDA).ppt
Lecture # 8 software design and architecture (SDA).pptLecture # 8 software design and architecture (SDA).ppt
Lecture # 8 software design and architecture (SDA).pptesrabilgic2
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLionel Briand
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecturerahul_net
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 

Dernier (20)

Lecture # 8 software design and architecture (SDA).ppt
Lecture # 8 software design and architecture (SDA).pptLecture # 8 software design and architecture (SDA).ppt
Lecture # 8 software design and architecture (SDA).ppt
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecture
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 

2014 OpenSuse Conf: Protect your MySQL Server

  • 1. Protect Your Server Dos and Don’ts of secure MySQL Deployment.
  • 2. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.2 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 3. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.3 Agenda  The post-install situation  How to harden it ?  More security  Security related changes in MySQL 5.7
  • 4. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.4 • Former banking IT Manager • Veteran software developer • Leading the MySQL Server General development team • Been with MySQL since 2006 • Regular MySQL conference speaker About Me
  • 5. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.5 The Post-Install Situation : MySQL Server security in OpenSuse 13.1
  • 6. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.6 The Good News
  • 7. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.7 MySQL 5.6.12 The Good News  Only 5 MRUs away from dev.mysql.com/downloads ! – New authentication method sha256_password – Manual password expiration : ALTER USER EXPIRE – Password strength verification plugin and API – Login paths – Support SSL CRLs and key files with pass phrases – Use SSL library’s random generator – Obfuscate passwords in logs
  • 8. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.8 Installation Layout  MySQL server service not on by default  Separate mysql-community-server-test rpm  Separate mysql-community-server-tools rpm  No pre-packaged database  No remote access by default The Good News
  • 9. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.9 The Not So Good News
  • 10. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.10 MySQL 5.6.12  3 CPUs and 24 CVE reported security bugs away from 5.6.15 (last CVE)  More than 500 other bugs away from 5.6.18 (current)  Lacks the advanced AES function modes The Not So Good News
  • 11. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.11 Installation layout  mysql_secure_installation not run – Anybody can connect as root – Anonymous access to the server allowed – No password strength checks – Empty passwords for the default accounts – Anybody gets full access to the test database  mysql_config_editor not in mysql-community-server-client The Not So Good News
  • 12. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.12 Installation layout. Continued.  Federated plugin installed by default  Archive plugin actually not needed (error on startup)  Some testing only authentication plugins installed by mysql- community-server  No SSL certificates. Even self-signed ones  secure_file_priv set to NULL – grants SQL read and write access to the full OS file system The Not So Good News
  • 13. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.13 Installation layout. The Sequel.  sha256_password plugin under-configured: no RSA keys  No query logging: neither audit nor query log  mysqld listens on all network interfaces The Not So Good News
  • 14. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.14 Random (Not So) Funny Story Recognize the pattern ? New Code
  • 15. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.15 WHAT YOU GET IS A DEVELOPMENT INSTALLATION !
  • 16. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.16 How to Harden Your MySQL installation ?
  • 17. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.17 Post Server Installation  Run mysql_secure_installation ! Now !  Review and restrict the network interfaces that the server listens on  Generate SSL keys and make sure the server can “talk” SSL  Enable query logging. Create a log backup policy.  Remove extra user accounts and privileges  Remove unneeded files and packages  Schedule regular backups ! Hardening your MySQL installation
  • 18. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.18 Post Application(s) Installation  Remove extra user accounts. Restrict the remaining ones  Review and maximally restrict the grants  Make sure the user accounts authenticate using a reliable method  Clean up extra temp files  Make sure backups are still on and cover the new objects  Remove unneeded files and packages  Audit the server configuration for changes. Revert the bogus ones Hardening your MySQL installation
  • 19. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.19 Daily MySQL Use  Keep your installation up to date  Monitor your server logs. Set alerts for “unusual” patterns.  Monitor security related stats. Set alerts for “unusual” patterns.  Monitor the server configuration.  Monitor and verify the backups and their integrity  Regularly probe your “defenses” by trying bad things on purpose  Perform regular emergency drills  Set procedures on maintaining your user account base Hardening your MySQL installation
  • 20. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.20 More Security
  • 21. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.21 Harden your MySQL Server Instance  Consider turning off TCP/IP if your setup allows it  Use and enforce SSL if you need TCP/IP – Even self-signed will do. Part of PKI is better  Use SSL certificate requirements for users – GRANT … TO …. REQUIRE [CIPHER | ISSUER | SUBJECT] …  Be careful with your directories – tmpdir, datadir, secure-file-priv, plugin-dir Additional steps
  • 22. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.22 Harden your MySQL Server Instance  Monitor and keep the logs – Consider using an auditing plugin – put extra protection on sensitive tables: custom logging triggers etc  Consider using external authentication – PAM, LDAP, windows domain  Harden your password policy – MySQL has a plugin for that !  Use login paths for your scripts Even more steps
  • 23. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.23 Harden your MySQL Server Instance Parameter Recommended Value secure_file_priv Designated directory symbolic_links Boolean NO default-storage-engine InnoDB general-log Boolean ON log-raw Default : OFF skip-networking ON, if you can afford it. ssl options Set to valid values Useful parameters to set
  • 24. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.24 Harden your MySQL Server Instance Parameter Recommended Value plugin-dir Designated read-only directory chroot Designated directory, if you can afford it core-file OFF des-key-file File with DES keys read_only ON for slaves ! sha256_password RSA key RSA public private keys if can’t use SSL tmpdir Designated directory out of secure-file-priv Useful parameters to set
  • 25. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.25 New Security Features in MySQL 5.7 DMRs
  • 26. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.26 Security Features in 5.7 DMRs  Audit log plugin works with Audit Vault  Login paths and mysql_config_editor  --syslog option to mysql  Mark mysql_old_password (pre- 4.1 password format) as deprecated 5.7.1: 23 April 2013
  • 27. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.27 Security Features in 5.7 DMRs  Require explicit authentication plugin for all user accounts  Rewrite mysql_secure_installation to C and harden it – Enables password strength validation – Generates random password for root and marks it as expired – Restricts the root user so it can login only from localhost  Deprecate ENCODE()/DECODE()  --error-log-verbosity control  Client side protocol tracing plugins in libmysql 5.7.2: 21 Sep 2013
  • 28. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.28 Security Features in 5.7 DMRs  Redefine the meaning of the –ssl option – --ssl on the client enforces SSL now – Other –ssl options enable ssl, but not enforce it  Proper connection state reset : mysql_reset_connection() 5.7.3: 3 Dec 2013
  • 29. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.29 Security Features in 5.7 DMRs  RPM packages secure by default – The effect of mysql_secure_installation by default – Separate packages for non-essential tools and utilities  Automatic timed password expiration – Per site and per user  AES_ENCRYPT()/AES_DECRYPT() now support block modes and larger key sizes  Strong crypto random SQL function added: RANDOM_BYTES() 5.7.4: 31 Mar 2014
  • 30. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.30 Questions ? Suggestions ?
  • 31. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.31