50
SECURING WOOCOMMERCE WITHOUT SCARING CUSTOMERS

SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

SECURING

WOOCOMMERCEWITHOUT SCARING

CUSTOMERS

Page 2: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Rahul Nagare

Co-Founder, Nestify.io & ScaleDynamixWordPress user since 2009Ramen aficionado

@nginxreload

Page 3: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Phishing

Page 4: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Types of security

1. Invisible but effective

2. Intrusive and annoying

Page 5: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 6: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 7: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 8: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 9: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 10: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 11: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 12: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Difference between WordPress and WooCommerce security

1. What happens when a WordPress site gets hacked?

2. What happens when a WooCommerce site gets hacked?

Page 13: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Doesn’t my host take care of this?

Host will usually:

Update WordPress core, maybe plugins

Protect from brute force and DDoS attacks

Maybe block malware

Host can not:

Protect against poorly coded plugins or themes

Protect against Weak password / Stolen laptop / Stolen phone

Protect against human error

Page 14: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Which security issues affect conversions?

• Lack of SSL

Page 15: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 16: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Which security issues affect conversions?

• Lack of SSL

• Mixed content warnings

Page 17: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 18: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Which security issues affect conversions?

• Lack of SSL

• Mixed content warnings

• Security plugins that slow down your site

• Aggressive captchas

Page 19: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 20: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Which security issues affect conversions?

• Lack of SSL

• Mixed content warnings

• Security plugins that slow down your site

• Aggressive captchas

• Trigger happy firewalls

• Complex password policies

Page 21: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 22: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Which security issues affect conversions?

• Lack of SSL

• Mixed content warnings

• Security plugins that slow down your site

• Aggressive captchas

• Trigger happy firewalls

• Complex password policies

• Emails that end up in spam

Page 23: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Securing WooCommerce

• Use a good hosting provider

Page 24: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Is my host any good?

Good Host will not:

Ask last 4 characters of your password

Show other users’ data in your SFTP account

Allow downloading .sql / .git / .tar.gz files without authentication

Page 25: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Securing WooCommerce

• Use a good hosting provider

• Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings

• Use strong passwords everywhere

• Use 2 Factor Authentication where available

• Offer 2 Factor Authentication to your customers using Auth0 / Google

authenticator plugin

• Use invisible captcha (Use invisible-recaptcha or advanced-nocaptcha plugin)

• Use SMTP service like Sendgrid / Mailgun / Sparkpost / Mailjet

Page 26: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Securing WooCommerce Code

• Check if you are using any outdated plugins

Page 27: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 28: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Securing WooCommerce Code

• Check if you are using any outdated plugins

• Check functions.php for keywords like eval(), exec(), base64_decode(),

file_get_contents(), curl_exec()

• Use wp-cli

• wp core verify-checksums

Page 29: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

wp core verify-checksums

Page 30: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Securing WooCommerce Code

• Check if you are using any outdated plugins

• Check functions.php for keywords like eval(), exec(), base64_decode,

file_get_contents(), curl_exec()

• Use wp-cli

• wp core verify-checksums

• wp package install markri/wp-sec

wp wp-sec check

Page 31: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Blocking hackers before they reach your server

1. Cloudflare

2. Amazon WAF

3. Sucuri WAF

Page 32: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

cloudflare.com

Page 33: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Crypto Tab

Page 34: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

SSL Mode: Full

Page 35: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Enable HSTS

Page 36: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Enable HSTS

Page 37: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Minimum TLS Version: 1.2

Page 38: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Firewall Tab > Block known bots

Page 39: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Things that are not very effective for security

1. Using robots.txt to block bots

2. Using plugins to hide wp-login page

Page 40: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Page 41: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Things that are not very effective for security

1. Using robots.txt to block bots

2. Using plugins to hide wp-login page

3. Using firewalls that block users after failed logins

Page 42: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Disaster recovery planning

1. Backups

Page 43: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Good Backup Strategy

1. Frequency

2. Destination

3. Verification

Page 44: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Disaster recovery planning

1. Backups

2. Printed copy of 2 factor authentication recovery codes

3. Warm Standby

Page 45: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Creating a warm standby

1. Signup with another host using same domain name, restore latest site backup

2. Install and configure wp-migrate-db pro with wp-cli addon

Page 46: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

wp-migrate-db pro

Page 47: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Creating a warm standby

1. Signup with another host using same domain name, restore latest site backup

2. Install and configure wp-migrate-db pro with wp-cli addon

3. Setup this cron job on new hosting account:

wp migratedb pull https://mysite.com [secret] --media=compare

--preserve-active-plugins

Page 48: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Using warm standby

1. Update DNS to point to new host

2. Done

Page 49: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Resources

▪ haveibeenpwned.com (Have I been Pwned)

▪ wpvulndb.com

▪ blog.sucuri.net

▪ scaledynamix.com/blog

Page 50: SECURING - Scale Dynamix · Securing WooCommerce • Use a good hosting provider • Use SSL. Use Really-simple-ssl plugin if there are mixed-content warnings • Use strong passwords

Slides: scaledynamix.com/WCOC Rahul Nagare | @nginxreload

Thank You!

Questions?