SlideShare a Scribd company logo
SECURING WORDPRESS
            Presented by
           Jeff K. Hoffman
   VP of R&D, MyLeadSystemPRO



   http://facebook.com/jeff.k.hoffman
WHY DO HACKERS HACK?


• Easy   SEO

• Malware   Distribution

• Entertainment   & Peer Recognition
HOW DO HACKERS HACK?


• Bots    - like the Google Bot, but Evil.

  • Widely     available, frequently updated.

• Viral   spread
BEFORE YOU BEGIN


• Backup     your site!

• Implement      one tip and test, then another and test, etc.

• If   it’s over your head, just skip it (or, hire help.)
SECURE YOUR SERVER

• Your   blog is only as secure as your Web Host.

• Ifa hacker gets into your hosting account (via FTP, SSH, etc.),
  they win before they even worry about hacking WordPress.

• Use    strong passwords. (StrongPasswordGenerator.com)

• Ask   your Web Host how to best secure your account.
PERMISSIONS

• In   general...

  • Files   should be 644.

  • Folders    should be 755.

• /wp-content/uploads/       should be 775.

• /wp-content/themes/        should be 775 for Theme Editor.
PERMISSIONS


find /path/to/wordpress/ -type f -exec chmod 644 {} ;
find /path/to/wordpress/ -type d -exec chmod 755 {} ;
chmod -R 775 /path/to/wordpress/wp-content/uploads
chmod -R 775 /path/to/wordpress/wp-content/themes
PERMISSIONS
DEFY CONVENTION

• Change   admin username

 • Never    post as admin!

• Move   wp-config.php

• Change   database table prefix**

 • In   wp-config.php

 • In   your database
USE SECRET KEYS

                                                  Edit wp-config.php...
/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',          'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY',           'put your unique phrase here');
define('AUTH_SALT',          'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT',           'put your unique phrase here');
CLEAN UP



• After WordPress   is installed, delete /wp-admin/install.php

• Delete   unused/inactive plugins & themes
UPDATE OFTEN


• Always   use the latest version of...

 • WordPress

 • Theme

 • Plugins
MAKE DAILY BACKUPS


• BuyBackupBuddy.com      ($75/year)

• VaultPress.com   ($180/year)

• NOTE: Backups    of a hacked site are ONLY useful for forensics!
STRONG PASSWORD



• StrongPasswordGenerator.com

• 1Password
AVOID DETECTION


• Remove WordPress    Footprints

 • Don’t   use the Meta sidebar widget

 • http://wordpress.org/extend/plugins/secure-wordpress/
MINIMIZE PLUGINS


• Every   plugin you install increases risk

• Popular, widely   used plugins are less risky

• Example: TimThumb
SECURE /WP-ADMIN*

• http://www.cpanel.net/media/tutorials/passwdprotect.htm

• Add   to .htaccess...
     <FilesMatch ".(css|js|jpg|jpeg|gif|png)$">
     Order Allow,Deny
     Allow from All
     Satisfy Any
     </FilesMatch>

     <Files admin-ajax.php>
     Order Allow,Deny
     Allow from All
     Satisfy Any
     </Files>
SECURE /WP-ADMIN



• SSL

   • http://codex.wordpress.org/Administration_Over_SSL
SECURE /WP-INCLUDES*


• Add      this to .htaccess...
 # Block the include-only files.
 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]
BLOCK ATTACKS



• WordPress   Firewall 2

• Login   Lockdown
MONITORING



• Google Webmaster Tools

• WordPress   File Monitor
Q&A



• http://mlspfanclub.com

More Related Content

PPTX
WordPress Security Updated - NYC Meetup 2009
PPT
WordPress Security
PPT
WordPress End-User Security - WordCamp Las Vegas 2011
PPTX
WordPress End-User Security
PDF
WordPress Security WordCamp OC 2013
PPT
WordCamp Chicago 2011 - WordPress End User Security - Dre Armeda
PDF
Lockdown WordPress
PPT
WordPress Security - WordCamp NYC 2009
WordPress Security Updated - NYC Meetup 2009
WordPress Security
WordPress End-User Security - WordCamp Las Vegas 2011
WordPress End-User Security
WordPress Security WordCamp OC 2013
WordCamp Chicago 2011 - WordPress End User Security - Dre Armeda
Lockdown WordPress
WordPress Security - WordCamp NYC 2009

What's hot (20)

PDF
WordCamp Mid-Atlantic WordPress Security
PPTX
Protect Your WordPress From The Inside Out
PPTX
WordPress Security - WordPress Meetup Copenhagen 2013
PDF
Top Ten WordPress Security Tips for 2012
PPT
Now That's What I Call WordPress Security 2010
PPT
WordPress Security - WordCamp Boston 2010
PDF
Google Hacking Basics
PPTX
Website security
PPT
Secure All The Things!
KEY
Higher Order WordPress Security
PDF
Introduction to WordPress Security
PDF
WordPress Security Presentation
PPTX
WordPress Security Presentation from South Florida WordPress Meetup
PDF
WordPress Security Best Practices 2019 Update
PDF
WordCamp Finland 2015 - WordPress Security
PDF
8 Ways to Hack a WordPress website
PPTX
WordPress End-User Security - Orange County WordCamp 2011
PPT
Wordpress Security Tips
PDF
Joomla! on Heroku
PDF
Joomla! security
WordCamp Mid-Atlantic WordPress Security
Protect Your WordPress From The Inside Out
WordPress Security - WordPress Meetup Copenhagen 2013
Top Ten WordPress Security Tips for 2012
Now That's What I Call WordPress Security 2010
WordPress Security - WordCamp Boston 2010
Google Hacking Basics
Website security
Secure All The Things!
Higher Order WordPress Security
Introduction to WordPress Security
WordPress Security Presentation
WordPress Security Presentation from South Florida WordPress Meetup
WordPress Security Best Practices 2019 Update
WordCamp Finland 2015 - WordPress Security
8 Ways to Hack a WordPress website
WordPress End-User Security - Orange County WordCamp 2011
Wordpress Security Tips
Joomla! on Heroku
Joomla! security
Ad

Viewers also liked (20)

PPT
How2 Start Ocw
KEY
Internet Marketing: Conversation marketing
PPT
Collaborating in the Clouds: selecting tools
PPTX
2013 Enterprise Strategy Outlook
PPT
Final Mobile Youth Net Project
PDF
Community keynote
PPT
MiT6 - Anne Kustritz
PPT
5 Things
PDF
The Universe Problem: Poll results, Facebook and the 2012 Presidential campaign
PPTX
Presentation to SA National Treasury on National Broadband Funding
PDF
This is all such bullshit
PDF
Jeremy Vickers Liquidity Hub
PPS
Pod Barcelona Paris
PPTX
Improving audience engagement in your ILTA 2011 conference sessions
PPTX
How metrics shape decisions f2psummit
PDF
Introducing the Open Container Project
PPTX
Zookeeper's guide to architecture frameworks
KEY
I can haz HTTP - Consuming and producing HTTP APIs in the Ruby ecosystem
PPT
Debate a la OAE y a Empresas Públicas de Neiva
PDF
Simulating Production with Clocker
How2 Start Ocw
Internet Marketing: Conversation marketing
Collaborating in the Clouds: selecting tools
2013 Enterprise Strategy Outlook
Final Mobile Youth Net Project
Community keynote
MiT6 - Anne Kustritz
5 Things
The Universe Problem: Poll results, Facebook and the 2012 Presidential campaign
Presentation to SA National Treasury on National Broadband Funding
This is all such bullshit
Jeremy Vickers Liquidity Hub
Pod Barcelona Paris
Improving audience engagement in your ILTA 2011 conference sessions
How metrics shape decisions f2psummit
Introducing the Open Container Project
Zookeeper's guide to architecture frameworks
I can haz HTTP - Consuming and producing HTTP APIs in the Ruby ecosystem
Debate a la OAE y a Empresas Públicas de Neiva
Simulating Production with Clocker
Ad

Similar to Securing WordPress by Jeff Hoffman (20)

PPTX
Wordpress Security & Hardening Steps
PPTX
WordPress Security Fundamentals - WordCamp Biratnagar 2018
PPTX
WordPress security
PPSX
WordPress Security by Nirjhor Anjum
PPT
WordCamp Philly WordPress End-User Security
PDF
WordPress Security 101
PPTX
WordPress Plugins and Security
PDF
WordPress Security - 12 WordPress Security Fundamentals
PDF
Hardening WordPress - Friends of Search 2014 (WordPress Security)
PPTX
WordPress Security Best Practices
PPT
Securing Word Press Blog
PDF
Word press beirut 9th meetup march
PDF
WordPress Security
PDF
ResellerClub Ctrl+F5 - WordPress Security session
PDF
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
PPTX
Presentation to SAIT Students - Dec 2013
PPTX
WordPress Security Best Practices
ODP
WordPress Security & Backup
PDF
WordPress Meetup Ieper - 15/03/2018 - WordPress Security Best Practices
PPTX
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
Wordpress Security & Hardening Steps
WordPress Security Fundamentals - WordCamp Biratnagar 2018
WordPress security
WordPress Security by Nirjhor Anjum
WordCamp Philly WordPress End-User Security
WordPress Security 101
WordPress Plugins and Security
WordPress Security - 12 WordPress Security Fundamentals
Hardening WordPress - Friends of Search 2014 (WordPress Security)
WordPress Security Best Practices
Securing Word Press Blog
Word press beirut 9th meetup march
WordPress Security
ResellerClub Ctrl+F5 - WordPress Security session
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Presentation to SAIT Students - Dec 2013
WordPress Security Best Practices
WordPress Security & Backup
WordPress Meetup Ieper - 15/03/2018 - WordPress Security Best Practices
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Machine learning based COVID-19 study performance prediction
PPTX
A Presentation on Artificial Intelligence
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
cuic standard and advanced reporting.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Electronic commerce courselecture one. Pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
Building Integrated photovoltaic BIPV_UPV.pdf
Network Security Unit 5.pdf for BCA BBA.
Machine learning based COVID-19 study performance prediction
A Presentation on Artificial Intelligence
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
“AI and Expert System Decision Support & Business Intelligence Systems”
cuic standard and advanced reporting.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25 Week I
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks

Securing WordPress by Jeff Hoffman

  • 1. SECURING WORDPRESS Presented by Jeff K. Hoffman VP of R&D, MyLeadSystemPRO http://facebook.com/jeff.k.hoffman
  • 2. WHY DO HACKERS HACK? • Easy SEO • Malware Distribution • Entertainment & Peer Recognition
  • 3. HOW DO HACKERS HACK? • Bots - like the Google Bot, but Evil. • Widely available, frequently updated. • Viral spread
  • 4. BEFORE YOU BEGIN • Backup your site! • Implement one tip and test, then another and test, etc. • If it’s over your head, just skip it (or, hire help.)
  • 5. SECURE YOUR SERVER • Your blog is only as secure as your Web Host. • Ifa hacker gets into your hosting account (via FTP, SSH, etc.), they win before they even worry about hacking WordPress. • Use strong passwords. (StrongPasswordGenerator.com) • Ask your Web Host how to best secure your account.
  • 6. PERMISSIONS • In general... • Files should be 644. • Folders should be 755. • /wp-content/uploads/ should be 775. • /wp-content/themes/ should be 775 for Theme Editor.
  • 7. PERMISSIONS find /path/to/wordpress/ -type f -exec chmod 644 {} ; find /path/to/wordpress/ -type d -exec chmod 755 {} ; chmod -R 775 /path/to/wordpress/wp-content/uploads chmod -R 775 /path/to/wordpress/wp-content/themes
  • 9. DEFY CONVENTION • Change admin username • Never post as admin! • Move wp-config.php • Change database table prefix** • In wp-config.php • In your database
  • 10. USE SECRET KEYS Edit wp-config.php... /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here'); define('LOGGED_IN_KEY', 'put your unique phrase here'); define('NONCE_KEY', 'put your unique phrase here'); define('AUTH_SALT', 'put your unique phrase here'); define('SECURE_AUTH_SALT', 'put your unique phrase here'); define('LOGGED_IN_SALT', 'put your unique phrase here'); define('NONCE_SALT', 'put your unique phrase here');
  • 11. CLEAN UP • After WordPress is installed, delete /wp-admin/install.php • Delete unused/inactive plugins & themes
  • 12. UPDATE OFTEN • Always use the latest version of... • WordPress • Theme • Plugins
  • 13. MAKE DAILY BACKUPS • BuyBackupBuddy.com ($75/year) • VaultPress.com ($180/year) • NOTE: Backups of a hacked site are ONLY useful for forensics!
  • 15. AVOID DETECTION • Remove WordPress Footprints • Don’t use the Meta sidebar widget • http://wordpress.org/extend/plugins/secure-wordpress/
  • 16. MINIMIZE PLUGINS • Every plugin you install increases risk • Popular, widely used plugins are less risky • Example: TimThumb
  • 17. SECURE /WP-ADMIN* • http://www.cpanel.net/media/tutorials/passwdprotect.htm • Add to .htaccess... <FilesMatch ".(css|js|jpg|jpeg|gif|png)$"> Order Allow,Deny Allow from All Satisfy Any </FilesMatch> <Files admin-ajax.php> Order Allow,Deny Allow from All Satisfy Any </Files>
  • 18. SECURE /WP-ADMIN • SSL • http://codex.wordpress.org/Administration_Over_SSL
  • 19. SECURE /WP-INCLUDES* • Add this to .htaccess... # Block the include-only files. 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]
  • 20. BLOCK ATTACKS • WordPress Firewall 2 • Login Lockdown
  • 21. MONITORING • Google Webmaster Tools • WordPress File Monitor

Editor's Notes