SlideShare une entreprise Scribd logo
1  sur  44
WORDPRESS SECURITY
How to secure your WordPress website
RUPOK CHOWDHURY PROTIK
Co-Founder, Head of WebDev, CoderCats	



@rupok	

fb.com/rupokify	

rupokify@gmail.com	

www.rupok.net
WAYS
Direct Approach	

Indirect Approach
DIRECT APPROACH
BEST WAY
100% Guaranteed
DELETE IT !
REQUEST?
A really really cute face may help!
Don’t hack my site, please!
INDIRECT APPROACH
A BASIC UNDERSTANDING
FOUR “W”, ONE “H”
Who .Why .When .Where . How
WHO
Anonymous .Your Friend .A Random Guy
WHY
Fun . Revenge . Profit . Political
WHEN
Least Expected .You are not Ready .The door is open
(EVERY)WHERE
Shared Hosting .VPS . Dedicated Server .Your Laptop
HOW
DEFACEMENT
Website defacement is an attack on a website that changes the
visual appearance of the site or a webpage*
*Wikipedia
SPAM LINKS
base64_decode(‘aHR0cDovL3d3dy5jb2RlcmNhdHMubmV0L2VhdHNpdGUucGhw’);	

!
http://www.codercats.net/eatsite.php
PHP SHELL
PHP Shell is a shell wrapped in a PHP script. It’s a tool you can use to execute
arbitrary shell-commands or browse the filesystem on your remote web server*
*http://phpshell.sourceforge.net/
OTHERS
Backdoors . SQL Injections . Malicious Redirects . Form Abuse .
Compromised Web Servers
WHAT CAN WE DO?
AVOID NULLED

THEMES & PLUGINS
Why are they giving you for free?
DELETE “ADMIN”ACCOUNT
UPDATE wp_users SET user_login=‘batman’WHERE user_login=‘admin’;	

!
Hackers need only two piece of information - “username” & “password”	

Don’t give them half.	

Try to avoid showing your username in posts
USE SECRET KEYS
https://api.wordpress.org/secret-key/1.1/salt/
UPDATE EVERYTHING
Keep “EVERYTHING” updated. Literally EVERYTHING.
MODIFY FILE PERMISSION
Files 644	

Folders 755	

.htaccess 444	

wp-config.php 444
MOVE UP WP-CONFIG.PHP
WordPress automatically checks the parent directory if wp-
config.php file is not found in your root directory	

!
public_html/wordpress/wp-config.php	

public_html/wp-config.php
PROTECT WP-CONFIG.PHP
Write the following code in your .htaccess file	

!
<files wp-config.php>	

order allow, deny	

deny from all	

</files>
LOCAL SECURITY
KeyLogger, Malwares	

!
Don’t use FTP	

Try to use sFTP or SSH
CONTROL LOGIN ATTEMPTS
Don’t let them try for eternity	

https://wordpress.org/plugins/login-lockdown/
SECURITY PLUGINS
BulletProof Security, Secure WordPress, Exploit Scanner,
Malware Scanner (sucuri.net)
USE STRONG PASSWORD
Eight Characters .Two Uppercase Letters .Two Symbols	

Avoid your Name, BirthYear, Birthday,Age, Phone Number etc.
Creating A Password	

!
- cabbage	

- Sorry, the password must be more than 8 characters. 	

!
- boiled cabbage
- Sorry, the password must contain 1 numerical character, 	

!
- 1 boiled cabbage 	

- Sorry, the password cannot have blank spaces. 	

!
- 50fuckingboiledcabbages 	

- Sorry, the password must contain at least one upper case character. 	

!
- 50FUCKINGboiledcabbages
- Sorry, the password cannot use more than one upper case character consecutively. 	

!
- 50FuckingBoiledCabbagesShovedUpYourAss,Ifyoudon'tGiveMeAccesslmmediately
- Sorry, the password cannot contain punctuation. 	

!
- NowlAmGettingReallyPissedOff50FuckingBoiledCabbagesShovedUpYourAsslfYouDontGiveMeAccessImmediately 	

- Sorry, that password is already in use!
DATABASETABLE PREFIX
Change from “wp_” to “wp_anything_” or wpanything_”	

anything may contain a-z, 0-9
SSL CERTIFICATE
Try to use SSL Certificate	

!
define(‘FORCE_SSL_ADMIN’, true);	

define(‘FORCE_SSL_LOGIN’, true);
MOVE WP-CONTENT FOLDER
Before wp-settings.php is called in wp-config.php	

!
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/content/wp-content' );	

define( 'WP_CONTENT_URL',‘http://www.codercats.net/blog/content/wp-content' );
PROTECT WP-ADMIN
Password Protect wp-admin folder using .htaccess + .htpasswd	

!
http://www.wpbeginner.com/wp-tutorials/how-to-password-
protect-your-wordpress-admin-wp-admin-directory/
DISABLE DASHBOARD EDIT
define(‘DISALLOW_FILE_EDIT’, true);
CHANGE LOGIN URL
RewriteRule ^login$ http://www.rupok.net/wp-login.php [NC, L]	

!
Now I can login at www.rupok.net/login
INSANE PLANS
GOOGLE AUTHENTICATOR
The Google Authenticator plugin for WordPress gives you two-
factor authentication using the Google Authenticator app for
Android/iPhone/Blackberry.	

!
http://wordpress.org/plugins/google-authenticator/
VOICE BIOMETRICS
VoxedIn is a Smartphone app and web toolkit that lets your
users log in to your site using voice biometrics	

!
http://wordpress.org/plugins/voxedin/
SPECIALTHANKS
Jesse Pollak . Brad Williams . Lime Canvas
QUESTIONS ?

Contenu connexe

En vedette

Madonna Ice RESUME OCT 2016 [1]
Madonna Ice RESUME OCT 2016 [1]Madonna Ice RESUME OCT 2016 [1]
Madonna Ice RESUME OCT 2016 [1]
Madonna Ice
 
tecnologia
tecnologiatecnologia
tecnologia
an7695
 
Project 2 - Final Deck
Project 2 - Final DeckProject 2 - Final Deck
Project 2 - Final Deck
Philip Croft
 

En vedette (9)

Final Report_André Riscado
Final Report_André RiscadoFinal Report_André Riscado
Final Report_André Riscado
 
Evolución tecnologica
Evolución tecnologicaEvolución tecnologica
Evolución tecnologica
 
Madonna Ice RESUME OCT 2016 [1]
Madonna Ice RESUME OCT 2016 [1]Madonna Ice RESUME OCT 2016 [1]
Madonna Ice RESUME OCT 2016 [1]
 
SAP BASIS Training in Chennai Demo Part-5
SAP BASIS Training in Chennai Demo Part-5SAP BASIS Training in Chennai Demo Part-5
SAP BASIS Training in Chennai Demo Part-5
 
tecnologia
tecnologiatecnologia
tecnologia
 
مشروع قرية الفقراء بنغلاديش
مشروع قرية الفقراء بنغلاديشمشروع قرية الفقراء بنغلاديش
مشروع قرية الفقراء بنغلاديش
 
Roles of production team
Roles of production teamRoles of production team
Roles of production team
 
Imagenología Veterinaria. Perros y Gatos.
Imagenología Veterinaria. Perros y Gatos.Imagenología Veterinaria. Perros y Gatos.
Imagenología Veterinaria. Perros y Gatos.
 
Project 2 - Final Deck
Project 2 - Final DeckProject 2 - Final Deck
Project 2 - Final Deck
 

Dernier

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 

Wordpress Security