SlideShare a Scribd company logo
1 of 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 ?

More Related Content

Viewers also liked

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
 

Viewers also liked (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
 

Recently uploaded

Recently uploaded (20)

The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 

Wordpress Security