WORDPRESS SECURITY
–
BATTENING DOWN THE
HATCHES
@brechtryckaer
t
@BRECHTRYCKAERT
- WordPress Specialist bij
Combell.com
- Auteur van WordPress Security
101 ebook (Kindle, Kobo, iBooks,
Gumroad)
WIE WERD AL EENS
SLACHTOFFER VAN
HACKING?
SOORTEN HACKS
Backdoors & Shells
Pharma hack
Drive By Downloads
Malafide redirects
HOE GERAKEN HACKERS BINNEN?
Oorzaken van hacking
Lekken in thema's en
plugins
Verouderde versies
Wordpress
Server config & andere
oorzaken
HOE KUNNEN WE DE BEVEILIGING
VERSCHERPEN?
Waar aanpakken?
SERVER WORDPRESS
SECURITY BINNEN WORDPRESS
De basics:
Security plugin (iThemes, Wordfence,
Sucuri, ...)
Sterke wachtwoorden
“admin” gebruiker uit den boze
SECURITY BINNEN WORDPRESS
Maar ook:
2-factor authentication (bvb Clef)
Inactieve plugins en thema’s verwijderen
UPDATES! UPDATES! UPDATES!
Geen core-file tweaken!
SECURITY OP SERVER-NIVEAU
Verschillende tweaks aan de wp-config.php
Aanpassingen aan .htaccess
Mappen 755-rechten, files 644.
Robots.txt
SECURITY OP SERVER-NIVEAU:
WP-CONFIG.PHP
define( 'DISALLOW_FILE_EDIT', true );
=> uitschakelen thema & plugin editor
define('WP_AUTO_UPDATE_CORE', true);
add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );
=> forceert automatische updates van WordPress (alle
releases) alsook plugins en thema’s.
SECURITY OP SERVER-NIVEAU:
.HTACCESS
Blokkeer de includes
# Block the include-only files.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-admin/includes/ - [F,L]
RewriteRule !^wp-includes/ - [S=3]
RewriteRule ^wp-includes/[^/]+.php$ - [F,L]
RewriteRule ^wp-
includes/js/tinymce/langs/.+.php - [F,L]
RewriteRule ^wp-includes/theme-compat/ -
[F,L]
SECURITY OP SERVER-NIVEAU:
.HTACCESS
Beperk backend access
Afzonderlijke .htaccess voor in /wp-
admin
# Limit backend acces.
order deny,allow
deny from all
allow from xx.xx.xx.xx
SECURITY OP SERVER-NIVEAU:
.HTACCESS
Blokkeer Track & Trace en vermijd XSS
attack
#Block track & trace
RewriteEngine On
RewriteCond %{REQUEST_METHOD}
^TRACE
RewriteRule .* - [F]
SECURITY OP SERVER-NIVEAU:
.HTACCESS
Afzonderlijke .htaccess in /wp-
content/uploads/
#Block PHP execution
<Files *.php>
deny from all
</Files>
SECURITY OP SERVER-NIVEAU:
FILE PERMISSIONS
 Mappen 755
 Bestanden 644
Geen 777!!!
SECURITY OP SERVER-NIVEAU:
ROBOTS.TXT
Vermijd dat bots kritieke locaties kunnen crawlen
Voeg volgende toe als robots.txt:
User-agent: *
Disallow: /feed/
Disallow: /trackback/
Disallow: /wp-admin/
Disallow: /wp-content/
Disallow: /wp-includes/
Disallow: /xmlrpc.php
Disallow: /wp-
SECURITY: USER & EXTERN
Security op de pc’s/mac’s van eindgebruiker
Illegale/”gevonden” software
UPDATES UPDATES UPDATES!!!
Komt meestal neer op het heropvoeden van de
gebruiker
SECURITY: USER & EXTERN
CDN, bijvoorbeeld CloudFlare
PENETRATION TESTING!
WPScan (http://www.wpscan.org)
Sucuri Sitecheck
(https://sitecheck.sucuri.net/)
VRAGEN???
Contacteer me!
Twitter: @brechtryckaert
Blog: http://brechtryckaert.be
50% korting op mijn e-book:
https://gum.co/WPS101/WCNL2015

More Related Content

PPTX
GO Snelkooksessie 'Websites bouwen in WordPress'
PPT
Start Een Blog Op Wordpress.Com
PPT
Start Een Blog Op Wordpress.Com 2008
PPTX
How User Support Can Increase Your Revenue
PDF
Nürnberg WooCommerce Talk - 11/24/16
PDF
Jak na SEO ve WordPressu (Pavel Ungr)
PDF
Wordpress: pagine vs articoli - categorie vs tag
PDF
WordCamp Santander 2016 : eCommerce y WordPress
GO Snelkooksessie 'Websites bouwen in WordPress'
Start Een Blog Op Wordpress.Com
Start Een Blog Op Wordpress.Com 2008
How User Support Can Increase Your Revenue
Nürnberg WooCommerce Talk - 11/24/16
Jak na SEO ve WordPressu (Pavel Ungr)
Wordpress: pagine vs articoli - categorie vs tag
WordCamp Santander 2016 : eCommerce y WordPress

Viewers also liked (17)

PDF
Профилирование кода в WordPress
PDF
WordCamp Gdynia 2016
PPTX
Sécurité: Ne soyez pas à risque
PPTX
Communautés Drupal et WordPress : le choc des titans ?
PDF
La base de datos de WordPress
PDF
Risorse e metodi per imparare a usare WordPress
PDF
Design theory - Wordcamp Nepal 2014
PPTX
Gestión de información con WordPress para no programadores - WordCamp Santa...
PDF
Word Camp Cologne 2016: Session The WordPress 1%
PPTX
Porzucony koszyk, czyli szansa na lepszą sprzedaż
PDF
Wordpress: Idealni nastroj pro chytre marketery
PDF
WordPress is what we make of it
PDF
Funkční SEO strategie pro váš web
PDF
Suchst du noch? Oder findest du schon?
PDF
Build Your Locale Style Guide
PDF
Pressmatic
PPTX
Bezpečnost WP, tipy pro každého - wordCamp Praha 2015
Профилирование кода в WordPress
WordCamp Gdynia 2016
Sécurité: Ne soyez pas à risque
Communautés Drupal et WordPress : le choc des titans ?
La base de datos de WordPress
Risorse e metodi per imparare a usare WordPress
Design theory - Wordcamp Nepal 2014
Gestión de información con WordPress para no programadores - WordCamp Santa...
Word Camp Cologne 2016: Session The WordPress 1%
Porzucony koszyk, czyli szansa na lepszą sprzedaż
Wordpress: Idealni nastroj pro chytre marketery
WordPress is what we make of it
Funkční SEO strategie pro váš web
Suchst du noch? Oder findest du schon?
Build Your Locale Style Guide
Pressmatic
Bezpečnost WP, tipy pro každého - wordCamp Praha 2015
Ad

More from Brecht Ryckaert (14)

PDF
Using WordPress as a Static Site Generator
PDF
The Anatomy Of A Hack - WordCamp Sofia 2018
PDF
Scaling WordPress On A Small Budget
PDF
WordPress Meetup Ieper - 15/03/2018 - WordPress Security Best Practices
PDF
WordCamp Antwerp - 3/3/2018 - Debugging WordPress by Brecht Ryckaert
PDF
Debugging WordPress
PDF
WordPress Security - A Top Down Approach
PDF
WordPress Performantie Optimalisatie
PDF
WordPress Performance optimization
PPTX
Speeding up WordPress
PDF
WordPress Security
PPTX
De valkuilen bij het migreren of publiceren van je WordPress website
PPT
Combell Academy - Exchange 2010
PPT
Presentatie Ebook
Using WordPress as a Static Site Generator
The Anatomy Of A Hack - WordCamp Sofia 2018
Scaling WordPress On A Small Budget
WordPress Meetup Ieper - 15/03/2018 - WordPress Security Best Practices
WordCamp Antwerp - 3/3/2018 - Debugging WordPress by Brecht Ryckaert
Debugging WordPress
WordPress Security - A Top Down Approach
WordPress Performantie Optimalisatie
WordPress Performance optimization
Speeding up WordPress
WordPress Security
De valkuilen bij het migreren of publiceren van je WordPress website
Combell Academy - Exchange 2010
Presentatie Ebook
Ad

WordPress Security - Battening down the hatches