Building a Better Security Posture

24
https://www.sucuri.net https://blog.sucuri.net

Transcript of Building a Better Security Posture

Page 1: Building a Better Security Posture

https://www.sucuri.net https://blog.sucuri.net

Page 2: Building a Better Security Posture

Who are we?● Globally distributed website security

team

● Website Antivirus + Firewall

● Clean hundreds of websites per day

● Protect against countless attacks

● Platform agnostic

Page 3: Building a Better Security Posture

Who am I?● Ben Martin @rngdmstrben

● Remediation Lead and malware slaya' at Sucuri

● Hails from Victoria BC

● ~2 years at the company cleaning websites

● Security / online privacy geek

● Music Producer & cat enthusiest

Page 4: Building a Better Security Posture

Building a Better Security Posture

● Security matters: All websites get attacked!

● Responsibility & safety

● Attackers go after low hanging fruit

● Peace of Mind

Security can be complicated but the principles are actually very simple :)

Page 5: Building a Better Security Posture
Page 6: Building a Better Security Posture

What is 'Security Posture'?● Security is not just a service or

software that can be purchased

● Security is an attitude

● Development of good habits

● Critical thinking + wee bit of healthy paranoia

There are NO silver bullet security solutions!

Page 7: Building a Better Security Posture

Be Proactive Not Reactive

● “We are intuitive. We drink water before we become dehydrated. We sleep before we become overtired. Most of the time, we automatically defend ourselves from germs and viruses, because we have consciously (and unconsciously) focused on preventative maintenance for our bodies and minds...Spend more time preventing problems and less time fixing issues that result from a compromise”

David L. Prowse

Page 8: Building a Better Security Posture

Common Myth!

● “Bob must have gone to some website that he shouldn't have!”

● All types of websites get attacked/compromised regardless of content

● You don't have to go to “sketchy” websites to find malware

Page 9: Building a Better Security Posture

Popular CMS = Targeted CMS

● WP is more than 20% of the Internet!

● Common targets for attackers

● Vulnerable plugins + themes are a big problem

Page 10: Building a Better Security Posture

Why would someone want to hack ME!?● Automation – targeted attacks are

usually reserved for big companies

● Same thing that motivates most bad behaviour: Money! $$$

● Phishing, malicious redirects, drive by downloads, blackhat SEO

● Defacements / Hacktivism

Page 11: Building a Better Security Posture

Security is a Priority● We all want our websites to have excellent content, look

nice and be easy to use. Add security to that list!

● You are responsible as a site owner

● Check up on your site security every time you log in – familiarize yourself with your environment

● Learn to recognize when something is out of place

Page 12: Building a Better Security Posture

What is POOR Security Posture?● Avoiding plugin, theme & core

updates

● Using “freemium” (pirated) plugins, themes or other software

● Lumping multiple websites/subdomains into the same hosting account

● Relying on the assumption that you won't be hacked because it is unlikely (?)

Page 13: Building a Better Security Posture

Responsibility● Responsibility to protect your

site visitors & yourself

● Protect your reputation & hard work! “Is this site safe?”

● Consider security a priority from day one

● Your visitors trust you & your website

Page 14: Building a Better Security Posture

Plugins● Out of date / vulnerable software is leading

cause of website infection

● Less is more

● Decrease the attack surface

● Avoid old plugins and update update update!!!

● Also helps speed/memory of site

Page 15: Building a Better Security Posture

Passwords● Other leading cause of infection

● Pass123 = no bueno

● Automated password attacks

● Reusing passwords = no buneo

● Use secure, encrypted protocols like SFTP or FTPS

Page 16: Building a Better Security Posture

Backups

● Backup your website. Always. ALWAYS.

● Your best friend on a rainy day

● Store them offline in a safe place

● Learn how to restore via FTP & database – this goes a long way

Page 17: Building a Better Security Posture

Practical Steps to Take

● UPDATE UPDATE UPDATE!!!

● Don't keep old software on your server

● Use a security plugin (Sucuri Scanner, Wordfence, iThemes, etc)

● Consider a firewall – paid & free options available

Page 18: Building a Better Security Posture

Practical Steps to Take pt. 2● Default settings are inherantly

unsafe for all software/hardware!

● Exercise least privilege

● define( 'DISALLOW_FILE_EDIT', true );

● Verify your file permissions and ownership ( 644, 755 )

Page 19: Building a Better Security Posture

Lock Down /wp-admin

● Don't use admin name 'admin'

● Employ the use of a CAPTCHA

● Restrict access by IP address

● Don't forget to monitor who's logging in

Page 20: Building a Better Security Posture

Sucuri Scanner WP Plugin (free)

● Security activity auditing

● File integrity monitoring

● Remote malware scanning

● Website hardening

Page 21: Building a Better Security Posture

What if I get HACKED!?!?1● This is when you really

appreciate being proactive

● Website compromises are stressful but don't panic!

● Every problem has a solution

● Not a bad idea to disclose to your visitors

Page 22: Building a Better Security Posture

Protect Yourself Online● All this talk about malware, how do I stay safe!?

● Antivirus obviously (yes even if you have a Mac)

● Practice good / responsible browsing habits

● Security browser extensions – NoScript, AdBlock, HTTPS Everywhere

● Web browser security is can be annoying & inconvenient but is very important

Page 23: Building a Better Security Posture

visitorTracker_isMob( ){● Very aggressive campaign

targeting multiple vulnerabilities

● Ultimate goal is to redirect users to Nuclear Exploit Kit (Ransomeware, Cryptolocker, other exploits)

● Many thousands of websites infected + blacklisted

Page 24: Building a Better Security Posture