SlideShare a Scribd company logo
CODEKITCHENMarko Heijnen
Protecting your site by
detection
Marko Heijnen
• Founder of CodeKitchen
• Lead developer of GlotPress
• Core contributor for
WordPress
• Plugin developer
• Organizer for WordCamp
Belgrade
• Using lots of (new)
technologies
Recently lot’s of security
issues got reported
Stats first 5 months of 2015
• 3 core security updates
• Cross-site Scripting (XSS) due to the misuse of the
add_query_arg() and remove_query_arg()
functions
• Cross-site scripting (XSS) vulnerability inside the
popular JetPack plugin. and the default Twenty
Fifteen theme because of genericons.
I almost got hacked
Not only your site but
also your server
My server setup
Loadbalancer
Webserver 1
Webserver 2
Memcached
Elasticsearch
MariaDB
My server setup
Public Private
Loadbalancer
Webserver 1
Webserver 2
Memcached
Elasticsearch
MariaDB
Do you know if you are
currently hacked???
Protecting is silver
Detecting is gold
What can you detect
Detection of your install
• Updates of WordPress, Plugins and themes
• Failed login attempts
• Security issues in plugins and themes
• Security enhancements reported by core
• List of plugins/themes you don’t use
Detection of the server
• Updates of server software
• Failed login attempts
Detection what is going on
• Requests to plugins you don’t have (404’s)
• Permissions of your folders/files
• Check if files got changed (Core, plugins, themes)
• Check if files got added (Core, plugins, themes)
• What is in your uploads folder (PHP files)
How I do it
Software for security I use
• modsecurity / UFW on every server (default blocks
all)
• fail2ban
• apticron (only 1 per matching type)
• apt-dater-host (in combination with apt-dater)
• Own code
Apticron
• Cronjob checking if there are updates
• Mail you when there are updates
• Can mail the total list or only new updates
Apt-dater and Apt-dater-host
• Terminal-based remote package update manager
• A tool to manage a lot of servers
• Grouped same servers
• Install and update packages
My server setup
fail2ban
modsecurity
ufw
apticron
apt-dater-host
ufw
apticron (web1)
apt-dater-host ufw
apticron
apt-dater-host
Loadbalancer
Webserver 1
Webserver 2
Memcached
Elasticsearch
MariaDB
Use WordPress to
manage WordPress
Features
• List all Linux packages
• List all PECL updates
• Shows if WP-CLI needs updating
• Restart services
Features
• List all WordPress updates
• Ability to perform updates when allowed
• Checksum scans
• Upload directory scans
• Doing backups
• Send WP CLI command
List of all servers
List of all sites
General overview of a site
Security checks for the site
WP Central
WP Central API
• http://wpcentral.io/api/
• First started with contributors
• After that stats
• Now creating checksums for plugins and themes
• Soon similar functionality as wpvulndb.com
Node.js server
• WordPress calls a microserver (nginx)
• nginx calls node.js server
• Returns the data when exists
• Will return error when not and generates the
checksums behind the scene
WP Central API
• http://wpcentral.io/api/checksums/theme/
twentyfifteen/1.2
• [{"code":"wpcentral_server_error","message":"Gener
ating checksums”}]
• [{"file":"header.php","checksum":"c0919b5f4b6e4f3a
58b858b2305e9146"},{},{},{},{},{},{},{},{},{},{},{},{},{}]
WP-CLI
Ideas are more then
welcome
Protecting your site by detection
Other solutions
Other solutions
• VaultPress
• ManageWP / WP Remote / InfiniteWP
• Sucuri
There are WordPress
plugins you could use
But you should not trust that they do it all
The next steps
Log aggregation
• Logstash
• Fluentd
• OSSEC
OSSEC
• An Open Source Host-based Intrusion Detection
System
• Performs log analysis, file integrity checking, policy
monitoring, rootkit detection, real-time alerting and
active response
• Works with a manager and agents
• https://hackertarget.com/defending-wordpress-
ossec/
Thank you for
listening
Questions?
@markoheijnen
markoheijnen.com



codekitchen.eu

More Related Content

PPTX
Code lifecycle on the Acquia Cloud Platform
PDF
A Byte of Software Deployment
KEY
Nginx in production
PDF
Generic Parse Server
PDF
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
PPTX
Spinnaker for Azure
PDF
NGINX ADC: Basics and Best Practices
Code lifecycle on the Acquia Cloud Platform
A Byte of Software Deployment
Nginx in production
Generic Parse Server
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
Spinnaker for Azure
NGINX ADC: Basics and Best Practices

What's hot (20)

PDF
CodeIgniter For Project : Lesson 105 - Helper and Library
PPTX
What's New in NGINX Plus R7?
PDF
AWS re:Invent re:Cap 2019: My ElasticSearch Journey on AWS
PDF
Securing Kafka
PPTX
Maximizing PHP Performance with NGINX
PPTX
Quantum basic VLAN plugin
PPTX
01 overview-servlets-and-environment-setup
PPT
Parse Server Open Source
PPTX
Owin and Katana
PDF
Spinnaker - Bay Area AWS Meetup - 20160726
PPTX
Nginx Deep Dive Kubernetes Ingress
PPTX
CGSpace technical overview
PPTX
Summit openshift-on-openstack
PDF
My early experience with Mirantis OpenStack 6.0
PDF
NGINX: Basics and Best Practices EMEA
PPT
Apache
PDF
Developing a user-friendly OpenResty application
PPTX
Integration Of Mulesoft and Apache Active MQ
PDF
Unified Streaming 1.11.14-GA Highlights
PDF
Apache CXF New Directions in Integration
CodeIgniter For Project : Lesson 105 - Helper and Library
What's New in NGINX Plus R7?
AWS re:Invent re:Cap 2019: My ElasticSearch Journey on AWS
Securing Kafka
Maximizing PHP Performance with NGINX
Quantum basic VLAN plugin
01 overview-servlets-and-environment-setup
Parse Server Open Source
Owin and Katana
Spinnaker - Bay Area AWS Meetup - 20160726
Nginx Deep Dive Kubernetes Ingress
CGSpace technical overview
Summit openshift-on-openstack
My early experience with Mirantis OpenStack 6.0
NGINX: Basics and Best Practices EMEA
Apache
Developing a user-friendly OpenResty application
Integration Of Mulesoft and Apache Active MQ
Unified Streaming 1.11.14-GA Highlights
Apache CXF New Directions in Integration
Ad

Viewers also liked (10)

PDF
Hacklu2011 tricaud
PPS
Giorgia Mia Ok 23 Settembre
PDF
Loggin alerting and hunting technology hub 2016
PDF
Jaime Blasco - Fighting Advanced Persistent Threat (APT) with Open Source Too...
PPTX
Hunting The Shadows: In Depth Analysis of Escalated APT Attacks
 
PDF
The moment my site got hacked
PPTX
Intrusion prevention system(ips)
PPTX
Threat Intelligence with Open Source Tools - Cornerstones of Trust 2014
PDF
TEDx Manchester: AI & The Future of Work
PDF
Build Features, Not Apps
Hacklu2011 tricaud
Giorgia Mia Ok 23 Settembre
Loggin alerting and hunting technology hub 2016
Jaime Blasco - Fighting Advanced Persistent Threat (APT) with Open Source Too...
Hunting The Shadows: In Depth Analysis of Escalated APT Attacks
 
The moment my site got hacked
Intrusion prevention system(ips)
Threat Intelligence with Open Source Tools - Cornerstones of Trust 2014
TEDx Manchester: AI & The Future of Work
Build Features, Not Apps
Ad

Similar to Protecting your site by detection (20)

PDF
Improving WordPress Development and Deployments with Docker
PDF
Best practices in Deploying SUSE CaaS Platform v3
PDF
Get Rapid Right-sized and Recent with the Liberty Repository
PDF
Building scalbale cloud native apps with .NET 8
PPTX
hardenning Operating System Server Berbasis Linux
PDF
321 codeincontainer brewbox
PDF
Introduction to docker
PPTX
Learn Electron for Web Developers
PDF
Versioning for Developers
PPTX
OpenStack Summit
PDF
DevOPS training - Day 2/2
PPTX
Customizing Apache CloudStack - CCC13
PPTX
Java script nirvana in netbeans [con5679]
PPTX
OpenStack and Windows
PPTX
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
PPTX
A Survey of Container Security in 2016: A Security Update on Container Platforms
PPTX
Deploying windows containers with kubernetes
PDF
Docker Introduction
PPTX
App fabric introduction
PPTX
Introduction to ASP.NET 5
Improving WordPress Development and Deployments with Docker
Best practices in Deploying SUSE CaaS Platform v3
Get Rapid Right-sized and Recent with the Liberty Repository
Building scalbale cloud native apps with .NET 8
hardenning Operating System Server Berbasis Linux
321 codeincontainer brewbox
Introduction to docker
Learn Electron for Web Developers
Versioning for Developers
OpenStack Summit
DevOPS training - Day 2/2
Customizing Apache CloudStack - CCC13
Java script nirvana in netbeans [con5679]
OpenStack and Windows
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
A Survey of Container Security in 2016: A Security Update on Container Platforms
Deploying windows containers with kubernetes
Docker Introduction
App fabric introduction
Introduction to ASP.NET 5

More from Marko Heijnen (20)

PDF
Custom coded projects
PDF
Security, more important than ever!
PDF
My Contributor Story
PDF
WooCommerce & Apple TV
PDF
The moment my site got hacked - WordCamp Sofia
PDF
Mijn site beveiliging
PDF
My complicated WordPress site
PDF
Node.js to the rescue
PDF
GlotPress aka translate.wordpress.org
PDF
Writing clean and maintainable code
PDF
Extending WordPress as a pro
PDF
Let's create a multilingual site in WordPress
PDF
Bootstrapping your plugin
PDF
The development and future of GlotPress
PDF
Why Javascript matters
PDF
The code history of WordPress
PDF
Building plugins like a pro
PDF
Perfect your images using WordPress - WordCamp Europe 2013
PDF
Dealing with media
PDF
The awesome things you can do with images inside WordPress
Custom coded projects
Security, more important than ever!
My Contributor Story
WooCommerce & Apple TV
The moment my site got hacked - WordCamp Sofia
Mijn site beveiliging
My complicated WordPress site
Node.js to the rescue
GlotPress aka translate.wordpress.org
Writing clean and maintainable code
Extending WordPress as a pro
Let's create a multilingual site in WordPress
Bootstrapping your plugin
The development and future of GlotPress
Why Javascript matters
The code history of WordPress
Building plugins like a pro
Perfect your images using WordPress - WordCamp Europe 2013
Dealing with media
The awesome things you can do with images inside WordPress

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Programs and apps: productivity, graphics, security and other tools
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
Network Security Unit 5.pdf for BCA BBA.
Building Integrated photovoltaic BIPV_UPV.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Spectral efficient network and resource selection model in 5G networks
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Advanced methodologies resolving dimensionality complications for autism neur...
Understanding_Digital_Forensics_Presentation.pptx

Protecting your site by detection