WordPress
Security 101
By Shady Sharaf
Senior Engineer at Human Made Global, a WordPress VIP
Partner. WordPress Core Contributor, and Arabic Polyglot
team member.
@shadyvb - linkedin.com/in/shadyvb - github.com/shadyvb
Agenda - What are the pillars of InfoSec systems
- What are the concerns of site security ?
- How can my site be hacked ?
- How can I secure my site ?
- How to know when my site is hacked ?
- What to do when my site is hacked ?
- What to do before my site is hacked ?
Information Security ( InfoSec ) pillars
Infosec programs are built around the following core objectives:
maintaining the confidentiality, integrity and availability of IT
systems and business data.
These objectives ensure that sensitive information is only disclosed to
authorized parties (confidentiality), prevent unauthorized
modification of data (integrity) and guarantee the data can be
accessed by authorized parties when requested (availability).
Site security revolves around four mains stages:
- Prevention
- Detection
- Auditing
- Recovery
Information Security ( InfoSec ) preps
a. Prevention
How can my site be hacked ?
- Leaked credentials, Brute-forcing
- XSS / Cross Site Scripting, Phishing attacks
- Security vulnerabilities in code
- In 3rd party code
- or yours!
- Security vulnerabilities in servers
How can I secure my site against ..
Leaked access and Brute-force
- Enforce HTTPS. ( It’s free now, you know! )
- Enforce strong passwords
- Use 2FA ( you should use it everywhere, ie Facebook, Google, etc.. )
- Use (re)captcha for login
- Change the default admin user
- Limit login attempts
How can I secure my site against ..
XSS, and Phishing attacks
- Use Akismet to prevent spam comments
- Properly sanitize ALL user input EVERYWHERE from EVERYONE
- Properly escape ALL user-generated output, in case the above didn’t work
How can I secure my site against ..
Security vulnerabilities /Code
- Update WordPress!
- Minimize amount of plugins you use
- Update those plugins!
- Subscribe to WP Security mailing lists
- WPScan @ https://wpvulndb.com/
- WordFence @ https://www.wordfence.com/
- Scan your site using WPScan / Sucuri Security
- Install a security plugin
- WordFence
- Sucuri Security
- iThemes Security
- Check plugins reviews, and their Tide score (soon)
- UPDATE ALL THE THINGS!
How can I secure my site against ..
Security vulnerabilities /Code
- Learn about WordPress Coding Standards
- Integrate PHP CodeSniffer ( and WPCS ) it in your code editor
- Write proper unit-tests
- Use version control, Git
- Use pre-commit scripts / Continuous Integration to notify you of WPCS violations and to
run unit-tests automatically on each commit
- Hack yourself first! Develop with the mindset of a hacker.
- …
- UPDATE ALL THE THINGS!
- And yeah, salt up your config!
How can I secure my site against ..
Security vulnerabilities /Server
- Disable filesystem changes by WordPress
- Stay away from shared servers!
- Use WordPress managed hosting, or setup your own VPS
- Hack yourself first! Scan your server using online tools.
- Use SSH / SCP in place of FTP.
- Disable SSH root login, create a user with minimum control for frequent tasks.
- Disable password login, use private keys instead.
- ..
- UPDATE ALL THE THINGS!
b/c. Detection and Auditing
How do I know when my site is hacked
?
- Integrity checks
- Audit Logs
- Uptime monitoring
- User feedback
Integrity checks
- Use security plugins to perform periodic integrity checks for file modifications
- iThemes Security
- Sucuri Security
- …
- They email you once they detect any of the site files have changed unexpectedtly.
Audit Logs
- Use auditing plugins to store and keep track of actions around your site
- Stream
- Audit Trail
- …
- They keep track of different actions, like:
- Content updates ( posts, terms, etc )
- User login, creation, deletion
- Some has the ability to notify via email when specific action happens.
Uptime monitoring
- Use online services to notify you when your site is down
- Check if your host has a way to notify you when your site/server is down
User feedback
- Users are your friends, keep a feedback channel open to report any unexpected behavior.
- Register your site in Google Webmasters to receive critical updates on the state of your
site and possible important updates that you need to do.
- Ask Google if your site is hacked
http://www.google.com/safebrowsing/diagnostic?site=your domain name
d. Recovery
What do I do when my site is hacked ?
What do I do when my site is hacked ?
- BACKUP all files and databases, or snapshot your server. For later auditing.
- Scan your site using online services, while it is still infected
- Restore files and database from the nearest backup, or your last server snapshot
- Review any plugins you recently installed, disable those you don’t require
- Reset all access, SSH, cPanel, FTP, MySQL, WordPress Users, etc.
- Monitor your audit logger for any suspicious behavior
- Once that’s all done. Start digging what happened, by getting another isolated instance
of your site/server up, and digging up the audit logs from WordPress, access/error logs of
PHP and NginX/Apache/etc, and comparing files to the nearest backup you have. Or just
hire a security consultant to do that for you!
What to do before my site is hacked ?
- BACKUP everything
- BACKUP periodically
- BACKUP automatically
- .. refer to Prevention
Further reading
- Hardening WordPress
https://codex.wordpress.org/Hardening_WordPress
- WordPress Security whitepaper from Sucuri
https://sucuri.net/guides/wordpress-security
- WordPress: What to do when my site is hacked
https://codex.wordpress.org/FAQ_My_site_was_hacked
Questions ?

More Related Content

PPTX
Locking down word press
PPTX
How To Lock Down And Secure Your Wordpress
PDF
RUNNING A SECURITY CHECK FOR YOUR WORDPRESS SITE
PDF
8 Ways to Hack a WordPress website
PDF
WordPress Security Essentials WordCamp Denver 2012
PDF
The moment my site got hacked - WordCamp Sofia
PDF
WordPress Security 2018
PDF
Beating Spam On Your WordPress Website - WordCamp Melbourne 2013
Locking down word press
How To Lock Down And Secure Your Wordpress
RUNNING A SECURITY CHECK FOR YOUR WORDPRESS SITE
8 Ways to Hack a WordPress website
WordPress Security Essentials WordCamp Denver 2012
The moment my site got hacked - WordCamp Sofia
WordPress Security 2018
Beating Spam On Your WordPress Website - WordCamp Melbourne 2013

What's hot (20)

PPT
Tips to improve word press security ppt
PPTX
Website security
PDF
WordPress Security
PPT
Technology 101
PDF
8 Simple Ways to Hack Your Joomla
PDF
WordPress Security Presentation
PDF
WordPress Security WordCamp OC 2013
PPT
WordPress Security
PPT
Securing Your WordPress Website - WordCamp GC 2011
PPTX
WordPress security for everyone
PDF
Introduction to WordPress Security
PPTX
WordPress Security Updated - NYC Meetup 2009
PPTX
Building Secure WordPress Sites
PPTX
Locking Down Your WordPress Site
PDF
Secrets to a Hack-Proof Joomla Revealed
PDF
8 Most Popular Joomla Hacks & How To Avoid Them
KEY
Securing WordPress by Jeff Hoffman
PDF
WordPress Security
PPTX
Sucuri Webinar: How to Optimize Your Website for Best Performance
PDF
WORDPRESS SECURITY: HOW TO AVOID BEING HACKED
Tips to improve word press security ppt
Website security
WordPress Security
Technology 101
8 Simple Ways to Hack Your Joomla
WordPress Security Presentation
WordPress Security WordCamp OC 2013
WordPress Security
Securing Your WordPress Website - WordCamp GC 2011
WordPress security for everyone
Introduction to WordPress Security
WordPress Security Updated - NYC Meetup 2009
Building Secure WordPress Sites
Locking Down Your WordPress Site
Secrets to a Hack-Proof Joomla Revealed
8 Most Popular Joomla Hacks & How To Avoid Them
Securing WordPress by Jeff Hoffman
WordPress Security
Sucuri Webinar: How to Optimize Your Website for Best Performance
WORDPRESS SECURITY: HOW TO AVOID BEING HACKED
Ad

Similar to WordPress Security 101 (20)

PDF
WordCamp Finland 2015 - WordPress Security
PPTX
Neo word press meetup ehermits - how to keep your blog from being hacked 2012
PPTX
Dan Catalin Vasile - Hacking the Wordpress Ecosystem
PPTX
Security Function
PDF
Your WordPress Site is and is not Hacked - You don't know until you check
PDF
Your WordPress Website Is/Not Hacked
PPT
Securing Your WordPress Website by Vlad Lasky
PDF
4 andrii kudiurov - web application security 101
PDF
OWASP Thailand 2016 - Joomla Security
PPT
Joomla Security
PPT
Joomla Security
PDF
Security Presentation for Boulder WordPress Meetup
PPT
Phpnw security-20111009
PDF
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
PPTX
WordPress End-User Security
PPTX
Hardening WordPress - SAScon Manchester 2013 (WordPress Security)
ODP
LAMP security practices
PDF
Null bhopal Sep 2016: What it Takes to Secure a Web Application
PPT
Security Testing for Mobile and Web Apps
WordCamp Finland 2015 - WordPress Security
Neo word press meetup ehermits - how to keep your blog from being hacked 2012
Dan Catalin Vasile - Hacking the Wordpress Ecosystem
Security Function
Your WordPress Site is and is not Hacked - You don't know until you check
Your WordPress Website Is/Not Hacked
Securing Your WordPress Website by Vlad Lasky
4 andrii kudiurov - web application security 101
OWASP Thailand 2016 - Joomla Security
Joomla Security
Joomla Security
Security Presentation for Boulder WordPress Meetup
Phpnw security-20111009
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
WordPress End-User Security
Hardening WordPress - SAScon Manchester 2013 (WordPress Security)
LAMP security practices
Null bhopal Sep 2016: What it Takes to Secure a Web Application
Security Testing for Mobile and Web Apps
Ad

Recently uploaded (20)

PDF
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
PDF
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
PPTX
GSA Content Generator Crack (2025 Latest)
PDF
BoxLang Dynamic AWS Lambda - Japan Edition
PDF
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
PPTX
Airline CRS | Airline CRS Systems | CRS System
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PDF
E-Commerce Website Development Companyin india
PDF
Guide to Food Delivery App Development.pdf
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
Workplace Software and Skills - OpenStax
PDF
iTop VPN Crack Latest Version Full Key 2025
PPTX
Python is a high-level, interpreted programming language
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PPTX
Cybersecurity: Protecting the Digital World
PDF
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
PDF
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
PDF
CCleaner 6.39.11548 Crack 2025 License Key
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
GSA Content Generator Crack (2025 Latest)
BoxLang Dynamic AWS Lambda - Japan Edition
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
Airline CRS | Airline CRS Systems | CRS System
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
E-Commerce Website Development Companyin india
Guide to Food Delivery App Development.pdf
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
Topaz Photo AI Crack New Download (Latest 2025)
Workplace Software and Skills - OpenStax
iTop VPN Crack Latest Version Full Key 2025
Python is a high-level, interpreted programming language
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
Cybersecurity: Protecting the Digital World
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
CCleaner 6.39.11548 Crack 2025 License Key

WordPress Security 101

  • 1. WordPress Security 101 By Shady Sharaf Senior Engineer at Human Made Global, a WordPress VIP Partner. WordPress Core Contributor, and Arabic Polyglot team member. @shadyvb - linkedin.com/in/shadyvb - github.com/shadyvb
  • 2. Agenda - What are the pillars of InfoSec systems - What are the concerns of site security ? - How can my site be hacked ? - How can I secure my site ? - How to know when my site is hacked ? - What to do when my site is hacked ? - What to do before my site is hacked ?
  • 3. Information Security ( InfoSec ) pillars Infosec programs are built around the following core objectives: maintaining the confidentiality, integrity and availability of IT systems and business data. These objectives ensure that sensitive information is only disclosed to authorized parties (confidentiality), prevent unauthorized modification of data (integrity) and guarantee the data can be accessed by authorized parties when requested (availability).
  • 4. Site security revolves around four mains stages: - Prevention - Detection - Auditing - Recovery Information Security ( InfoSec ) preps
  • 6. How can my site be hacked ? - Leaked credentials, Brute-forcing - XSS / Cross Site Scripting, Phishing attacks - Security vulnerabilities in code - In 3rd party code - or yours! - Security vulnerabilities in servers
  • 7. How can I secure my site against .. Leaked access and Brute-force - Enforce HTTPS. ( It’s free now, you know! ) - Enforce strong passwords - Use 2FA ( you should use it everywhere, ie Facebook, Google, etc.. ) - Use (re)captcha for login - Change the default admin user - Limit login attempts
  • 8. How can I secure my site against .. XSS, and Phishing attacks - Use Akismet to prevent spam comments - Properly sanitize ALL user input EVERYWHERE from EVERYONE - Properly escape ALL user-generated output, in case the above didn’t work
  • 9. How can I secure my site against .. Security vulnerabilities /Code - Update WordPress! - Minimize amount of plugins you use - Update those plugins! - Subscribe to WP Security mailing lists - WPScan @ https://wpvulndb.com/ - WordFence @ https://www.wordfence.com/ - Scan your site using WPScan / Sucuri Security - Install a security plugin - WordFence - Sucuri Security - iThemes Security - Check plugins reviews, and their Tide score (soon) - UPDATE ALL THE THINGS!
  • 10. How can I secure my site against .. Security vulnerabilities /Code - Learn about WordPress Coding Standards - Integrate PHP CodeSniffer ( and WPCS ) it in your code editor - Write proper unit-tests - Use version control, Git - Use pre-commit scripts / Continuous Integration to notify you of WPCS violations and to run unit-tests automatically on each commit - Hack yourself first! Develop with the mindset of a hacker. - … - UPDATE ALL THE THINGS! - And yeah, salt up your config!
  • 11. How can I secure my site against .. Security vulnerabilities /Server - Disable filesystem changes by WordPress - Stay away from shared servers! - Use WordPress managed hosting, or setup your own VPS - Hack yourself first! Scan your server using online tools. - Use SSH / SCP in place of FTP. - Disable SSH root login, create a user with minimum control for frequent tasks. - Disable password login, use private keys instead. - .. - UPDATE ALL THE THINGS!
  • 12. b/c. Detection and Auditing
  • 13. How do I know when my site is hacked ? - Integrity checks - Audit Logs - Uptime monitoring - User feedback
  • 14. Integrity checks - Use security plugins to perform periodic integrity checks for file modifications - iThemes Security - Sucuri Security - … - They email you once they detect any of the site files have changed unexpectedtly.
  • 15. Audit Logs - Use auditing plugins to store and keep track of actions around your site - Stream - Audit Trail - … - They keep track of different actions, like: - Content updates ( posts, terms, etc ) - User login, creation, deletion - Some has the ability to notify via email when specific action happens.
  • 16. Uptime monitoring - Use online services to notify you when your site is down - Check if your host has a way to notify you when your site/server is down
  • 17. User feedback - Users are your friends, keep a feedback channel open to report any unexpected behavior. - Register your site in Google Webmasters to receive critical updates on the state of your site and possible important updates that you need to do. - Ask Google if your site is hacked http://www.google.com/safebrowsing/diagnostic?site=your domain name
  • 19. What do I do when my site is hacked ?
  • 20. What do I do when my site is hacked ? - BACKUP all files and databases, or snapshot your server. For later auditing. - Scan your site using online services, while it is still infected - Restore files and database from the nearest backup, or your last server snapshot - Review any plugins you recently installed, disable those you don’t require - Reset all access, SSH, cPanel, FTP, MySQL, WordPress Users, etc. - Monitor your audit logger for any suspicious behavior - Once that’s all done. Start digging what happened, by getting another isolated instance of your site/server up, and digging up the audit logs from WordPress, access/error logs of PHP and NginX/Apache/etc, and comparing files to the nearest backup you have. Or just hire a security consultant to do that for you!
  • 21. What to do before my site is hacked ? - BACKUP everything - BACKUP periodically - BACKUP automatically - .. refer to Prevention
  • 22. Further reading - Hardening WordPress https://codex.wordpress.org/Hardening_WordPress - WordPress Security whitepaper from Sucuri https://sucuri.net/guides/wordpress-security - WordPress: What to do when my site is hacked https://codex.wordpress.org/FAQ_My_site_was_hacked