52
It’s About The Basics Website Security (WordPress)

Website Security (WordPress) - It's About the Basics

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Website Security (WordPress) - It's About the Basics

It’s About The Basics

Website Security (WordPress)

Page 2: Website Security (WordPress) - It's About the Basics

04/07/2023

@PEREZBOX

• Sucuri, Inc.– @sucuri_security– @perezbox

• Specialization:– Website Security– Incident Handling

• Special Interests:– Brazilian JiuJitsu

Tony Perez | @perezbox | @sucuri_security 2

Page 3: Website Security (WordPress) - It's About the Basics

04/07/2023

• Website Security Company

• Global Operations

• Platform Agnostic (i.e., WordPress, Joomla, etc..)

• Scan 2M Unique Domains a Month

• Block 4M web attacks a Month

• Remediate 400 – 500 websites a day

• Signature / Heuristic Based

• 24/7 operations

Tony Perez | @perezbox | @sucuri_security 3

Page 4: Website Security (WordPress) - It's About the Basics

04/07/2023

Statistics

Tony Perez | @perezbox | @sucuri_security 4

Page 5: Website Security (WordPress) - It's About the Basics

04/07/2023

2013 – Year of the Mega Breach

Data Breaches (Millions)

2011 2013

Tony Perez | @perezbox | @sucuri_security 5

~230%

Page 6: Website Security (WordPress) - It's About the Basics

04/07/2023

Anatomy of Malicious Websites

Malicious WebsitesLegitimate Websites

Tony Perez | @perezbox | @sucuri_security 6

85%

Page 7: Website Security (WordPress) - It's About the Basics

04/07/2023

Legitimate Websites

Not-ExploitableExploitable

77%

Tony Perez | @perezbox | @sucuri_security 7

1 in 8 - Critical Vulnerability

Page 8: Website Security (WordPress) - It's About the Basics

04/07/2023

Ransomware Explosion

Ransomware

2012 2013

Tony Perez | @perezbox | @sucuri_security 8

~500%

Page 9: Website Security (WordPress) - It's About the Basics

04/07/2023

Malware Distribution

Remote iFram

e Inclu

des

Remote JavaScr

ipt Inclu

des

SPAM

Injecti

ons

Obfuscated / E

ncoded Ja

vaScript

Conditional Redire

cts

Defacements

Other

26%

19%16%

14%11%

4%

10%

Tony Perez | @perezbox | @sucuri_security 9

Page 10: Website Security (WordPress) - It's About the Basics

04/07/2023

Understanding Hackers

Tony Perez | @perezbox | @sucuri_security 10

Page 11: Website Security (WordPress) - It's About the Basics

04/07/2023

Anatomy of Website Attacks

Recon Identify Attack Decisions Sustain

Tony Perez | @perezbox | @sucuri_security 11

Use for malware? Pat of a zombie network? Data breach?

What kind of website do you have?

Page 12: Website Security (WordPress) - It's About the Basics

04/07/2023

Five Stages of an Attack

Tony Perez | @perezbox | @sucuri_security 12

Page 13: Website Security (WordPress) - It's About the Basics

04/07/2023

Automated Attacks

WP-ADMIN

Themes / Plugins Payload

Tony Perez | @perezbox | @sucuri_security 13

Exploiting Access Control

Page 14: Website Security (WordPress) - It's About the Basics

04/07/2023

Distribution Mechanism

Malicious Links

Social Media

Email Links Website

Text Message

s

Tony Perez | @perezbox | @sucuri_security 14

Page 15: Website Security (WordPress) - It's About the Basics

04/07/2023

There’s a Tool for that

• Malware as a Service (MaaS) – Yes, pay someone to hack

for you

• Different tools to break in and generate payloads– Brute force and

vulnerability exploits Malware Payloads

Tony Perez | @perezbox | @sucuri_security 15

Page 16: Website Security (WordPress) - It's About the Basics

04/07/2023

Why?

Tony Perez | @perezbox | @sucuri_security 16

Page 17: Website Security (WordPress) - It's About the Basics

04/07/2023

Impacts To You

Tony Perez | @perezbox | @sucuri_security 17

Page 18: Website Security (WordPress) - It's About the Basics

04/07/2023

Beyond The Application Layer

• Going Deeper than the application layer, targeting the server.

• Server Polymorphism – a.k.a highly adaptive / sophistication

Tony Perez | @perezbox | @sucuri_security 18

DarkleechCdork

(Apache)

Ebury (SSH)

Email Server (SPAM)

Heartbleed(OpenSSL)

Page 19: Website Security (WordPress) - It's About the Basics

04/07/2023

Phishing Lures

Tony Perez | @perezbox | @sucuri_security 19

93% Increase in 2013

Page 20: Website Security (WordPress) - It's About the Basics

04/07/2023

Exploiting Forms

• Stick With Reputable Sources

• Generating SPAM emails, resource hogs

• IP blacklisting

Tony Perez | @perezbox | @sucuri_security 20

Page 21: Website Security (WordPress) - It's About the Basics

04/07/2023

Search Engine Poisoning (SEP)

• Pharmacy• Payday Loans

Tony Perez | @perezbox | @sucuri_security 21

Page 22: Website Security (WordPress) - It's About the Basics

04/07/2023

Blacklisting

Tony Perez | @perezbox | @sucuri_security 22

Page 23: Website Security (WordPress) - It's About the Basics

04/07/2023

Drive By Downloads

Tony Perez | @perezbox | @sucuri_security 23

Page 24: Website Security (WordPress) - It's About the Basics

04/07/2023

Brute Force Attacks

Tony Perez | @perezbox | @sucuri_security 24

Page 25: Website Security (WordPress) - It's About the Basics

04/07/2023

Denial of Service (DOS)

Tony Perez | @perezbox | @sucuri_security 25

Page 26: Website Security (WordPress) - It's About the Basics

04/07/2023

Brute Force vs Denial of Service

Tony Perez | @perezbox | @sucuri_security 26

Page 27: Website Security (WordPress) - It's About the Basics

04/07/2023

Trust Erosion

Tony Perez | @perezbox | @sucuri_security 27

Page 28: Website Security (WordPress) - It's About the Basics

04/07/2023

Free is not always Free• http://blog.sucuri.net/2014/03/unmasking-free-premium-wor

dpress-plugins.html

Tony Perez | @perezbox | @sucuri_security 28

- SEOPresser- Payload located: wp-content/plugins/seo-pressor(gratuit)- File: central.class.php

- Flat Skins Pack Extension- Payload located: wp-content/restrict-content-pro/includes/- File: sidebar.php

- Restrict Content Pro- Paylaod located: wp-content/ubermenu-skins-flat

Page 29: Website Security (WordPress) - It's About the Basics

04/07/2023

Don’t Worry, Everyone is a “Target”

Tony Perez | @perezbox | @sucuri_security 29

Page 30: Website Security (WordPress) - It's About the Basics

04/07/2023

Defenses

Tony Perez | @perezbox | @sucuri_security 30

Page 31: Website Security (WordPress) - It's About the Basics

04/07/2023

Biggest Weakness / Vulnerability

Tony Perez | @perezbox | @sucuri_security 31

Page 32: Website Security (WordPress) - It's About the Basics

04/07/2023

It’s About Good Posture

Tony Perez | @perezbox | @sucuri_security 32

Security Posture

Principles

Access

Vulnerabilities

Page 33: Website Security (WordPress) - It's About the Basics

04/07/2023

Starts With Expectations

“It’s about risk reduction… risk will never be zero…”

Tony Perez | @perezbox | @sucuri_security 33

Posture

Risk

Page 34: Website Security (WordPress) - It's About the Basics

04/07/2023

Defense in Depth

“…a concept in which multiple layers of security controls (defenses) are placed throughout an

information technology (IT) system. Its intent is to provide redundancy in the event a security control fails or a vulnerability is exploited…”

Tony Perez | @perezbox | @sucuri_security 34

Page 35: Website Security (WordPress) - It's About the Basics

04/07/2023

Layered Defenses

Tony Perez | @perezbox | @sucuri_security 35

Protection Detection

Auditing Sustainment

Page 36: Website Security (WordPress) - It's About the Basics

04/07/2023

Access – P@ssw0rd

• Passwords

Tony Perez | @perezbox | @sucuri_security 36

Complex – Long - Unique

Page 37: Website Security (WordPress) - It's About the Basics

04/07/2023

Enforce Strong Credentials

Tony Perez | @perezbox | @sucuri_security 37

Page 38: Website Security (WordPress) - It's About the Basics

04/07/2023

Push the Access Boundaries

Tony Perez | @perezbox | @sucuri_security 38

• https://getclef.com/ | @getclef

Page 39: Website Security (WordPress) - It's About the Basics

04/07/2023

Principle of Least Privileged

“requires that in a particular abstraction layer of a computing environment, every module

(such as a process, a user or a program depending on the subject) must be able to

access only the information and resources that are necessary for its legitimate purpose.”

Tony Perez | @perezbox | @sucuri_security 39

Page 40: Website Security (WordPress) - It's About the Basics

04/07/2023

Understand Your Roles

Tony Perez | @perezbox | @sucuri_security 40

Page 41: Website Security (WordPress) - It's About the Basics

04/07/2023

Hardening – Kill PHP

Tony Perez | @perezbox | @sucuri_security 41

PHP Execution, disable it:

/wp-includes /wp-content▪ /themes▪ /plugins▪ /uploads

<Files *.php>Deny from all</Files>

Page 42: Website Security (WordPress) - It's About the Basics

04/07/2023

Disable Plugin / Theme Editor

• WP-CONFIG File Modification

#Disable Plugin / Theme EditorDefine(‘DISALLOW_FILE_EDIT’,true);

Tony Perez | @perezbox | @sucuri_security 42

Page 43: Website Security (WordPress) - It's About the Basics

04/07/2023

Brute Force Attacks

Tony Perez | @perezbox | @sucuri_security 43

Page 44: Website Security (WordPress) - It's About the Basics

04/07/2023

Please Backup

Tony Perez | @perezbox | @sucuri_security 44

Page 45: Website Security (WordPress) - It's About the Basics

04/07/2023

Software Vulnerabilities

• Stay current with the latest vulnerabilities:– Secure - http://wordpress.org/plugins/secure/

Tony Perez | @perezbox | @sucuri_security 45

Page 46: Website Security (WordPress) - It's About the Basics

04/07/2023

Brute Force Protection

• Local Protection– https://bruteprotect.com/ | @BruteProtect

Tony Perez | @perezbox | @sucuri_security 46

Page 47: Website Security (WordPress) - It's About the Basics

04/07/2023

Stay Current (Update)

Tony Perez | @perezbox | @sucuri_security 47

Page 48: Website Security (WordPress) - It's About the Basics

04/07/2023

Website Firewalls

Tony Perez | @perezbox | @sucuri_security 48

• Stay ahead of Software Vulnerabilities

Page 49: Website Security (WordPress) - It's About the Basics

04/07/2023

Ensure Integrity of Connection

Tony Perez | @perezbox | @sucuri_security 49

• https://www.getcloak.com/ | @getcloak

Page 50: Website Security (WordPress) - It's About the Basics

04/07/2023

Simple Steps to Reduce Risk

1. Employ Website Firewall2. Don’t let WordPress write to

itself3. Filter Access by IP 4. Use a dedicated server / VPS5. Monitor all Activity (Logging)6. Enable SSL for transactions7. Keep environment current

(patched)8. No Soup Kitchen Servers

Tony Perez | @perezbox | @sucuri_security 50

1. Connect Securely – SFTP / SSH

2. Authentication Keys / wp-config

3. Use Trusted Sources4. Use a local Antivirus – MAC

too5. Permissions - D 755 | F 6446. Least Privileged Principles7. Accountability8. Backups – Include Database

Ideal implementations:The Bare Minimum:

Page 51: Website Security (WordPress) - It's About the Basics

04/07/2023

Notable ResourcesName Tool

Sucuri Blog http://blog.sucuri.net

Sucuri TV http://sucuri.tv

Malware Scanner http://sitecheck.sucuri.net

Malware Scanner http://unmaskparasites.com

Badware Busters https://badwarebusters.org

Google Forums http://productforums.google.com/forum/#!categories/webmasters/malware--hacked-sites

Google Webmaster Tools http://support.google.com/webmasters/bin/answer.py?hl=en&answer=163633

Secunia Security Advisories http://secunia.com/community/advisories/search/?search=wordpress

Exploit-DB http://www.exploit-db.com/search/?action=search&filter_description=Wordpress&filter_platform=31

WordPress Hacked FAQ http://codex.wordpress.org/FAQ_My_site_was_hacked

WordPress Hardening http://codex.wordpress.org/Hardening_WordPress

Tony Perez | @perezbox | @sucuri_security 51

Page 52: Website Security (WordPress) - It's About the Basics

04/07/2023

Sucuri, Inc.

Tony Perez

http://sucuri.nethttp://blog.sucuri.net

@perezbox | @sucuri_security

http://www.slideshare.net/perezbox/website-security-wordpress-its-about-the-

basics

Tony Perez | @perezbox | @sucuri_security 52