diy blue teaming diy blue teaming
play

DIY Blue Teaming DIY Blue Teaming (Keeping attackers out, with duct - PowerPoint PPT Presentation

DIY Blue Teaming DIY Blue Teaming (Keeping attackers out, with duct tape and chewing gum!) DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Security by obscurity (because sucker punches work, even though nobody wants to admit


  1. DIY Blue Teaming DIY Blue Teaming (Keeping attackers out, with duct tape and chewing gum!)

  2. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Security by obscurity (because sucker punches work, even though nobody wants to admit it. "Hack Back" tricks - *TRY AT YOUR OWN RISK* Why buy the cow when you can have the milk for free?

  3. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work

  4. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Usually the purpose of 0day is to execute malware. If you stop that malware from executing you essentially mitigate the 0day.

  5. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work 0day (and it's often attached malware) tends to fail in the wild, like A LOT. When it does, it makes errors. If you can catch those errors in context, sometimes, you get to keep / analyse the malware AND THE 0DAY!

  6. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work tl;dr, make your environment unpredictable so that you spend less time threat hunting and more time seeing stuff actually being thrown at you! (aka: NOT GETTING PWNED)

  7. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Methods: Methods:

  8. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Methods: Methods:

  9. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Re order all the syscalls Re order all the syscalls Methods: Methods:

  10. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Methods: Methods:

  11. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work "Remove" your shell "Remove" your shell Methods: Methods:

  12. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Use unix noshell on every user and then point ssh to a binary that downloads a shell and runs it upon login "Remove" your shell "Remove" your shell Methods: Methods:

  13. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Use unix noshell on every user and then point ssh to a binary that downloads a shell and runs it upon login "Remove" your shell "Remove" your shell Actually remove bash from the box Methods: Methods:

  14. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Backdoor your own utilities... Backdoor your own utilities... Methods: Methods:

  15. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work SSH "dupe" setup... SSH "dupe" setup... Backdoor your own utilities... Backdoor your own utilities... SSH HTTPS Methods: Methods: https://github.com/stealth/sshttp

  16. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work SSH "dupe" setup... SSH "dupe" setup... Port 22 Backdoor your own utilities... Backdoor your own utilities... SSH HTTPS Methods: Methods: https://github.com/stealth/sshttp

  17. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work SSH "dupe" setup... SSH "dupe" setup... Port 22 Backdoor your own utilities... Backdoor your own utilities... Actual SSH Port 8443 Server SSH HTTPS Methods: Methods: https://github.com/stealth/sshttp

  18. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work GCC shouldn't be on boxes in prod GCC shouldn't be on boxes in prod anyway... anyway... Backdoor your own utilities... Backdoor your own utilities... Methods: Methods:

  19. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work GCC shouldn't be on boxes in prod GCC shouldn't be on boxes in prod anyway... anyway... replace GCC with a binary that never Backdoor your own utilities... Backdoor your own utilities... actually outputs the file to disk but DOES run it through virus total and give you alerts Methods: Methods:

  20. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Tripwire apps that modify the Tripwire apps that modify the filesystem filesystem Backdoor your own utilities... Backdoor your own utilities... Methods: Methods:

  21. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Tripwire apps that modify the Tripwire apps that modify the filesystem filesystem ln = cp If <arg1> == "core lib" { Backdoor your own utilities... Backdoor your own utilities... mv wtf_are_you_doing() } Methods: Methods:

  22. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Backdoor your own utilities... Backdoor your own utilities... Make uname "lie" Make uname "lie" Methods: Methods:

  23. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Modprobe Modprobe Backdoor your own utilities... Backdoor your own utilities... Methods: Methods:

  24. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Modprobe Modprobe Check that module contains this supper sekret squirl Backdoor your own utilities... Backdoor your own utilities... token that is in all my modules Methods: Methods:

  25. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Modprobe Modprobe Backdoor your own utilities... Backdoor your own utilities... "decrypt" binaries before loading Methods: Methods:

  26. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Modprobe Modprobe Rename modprobe to something else and Backdoor your own utilities... Backdoor your own utilities... make modprobe send a security alert Methods: Methods:

  27. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Break all the things! Break all the things! Backdoor your own utilities... Backdoor your own utilities... Methods: Methods:

  28. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Break all the things! Break all the things! Backdoor your own utilities... Backdoor your own utilities... ... and then alias all the things in the user prefs of legit admins Methods: Methods:

  29. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work One app to rule them all! One app to rule them all! Backdoor your own utilities... Backdoor your own utilities... aka: "the initramfs trick" Methods: Methods:

  30. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Methods: Methods:

  31. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Get full crash dumps Get full crash dumps https://support.microsoft.com/en-us/help/927069/how-to-generate-a- complete-crash-dump-file-or-a-kernel-crash-dump-file Methods: Methods:

  32. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Rename the Powershell exe (just like the bash trick but Rename the Powershell exe (just like the bash trick but for windows) for windows) Methods: Methods:

  33. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Over-the-shoulder transcription Over-the-shoulder transcription https://blogs.msdn.microsoft.com/powershell/2015/06/09/powershell- the-blue-team/ Methods: Methods:

  34. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Over-the-shoulder transcription Over-the-shoulder transcription Methods: Methods:

  35. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Over-the-shoulder transcription Over-the-shoulder transcription Methods: Methods:

  36. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Hook OpenProcess() to look for well targeted Hook OpenProcess() to look for well targeted applications applications Methods: Methods:

  37. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Hook OpenProcess() to look for well targeted Hook OpenProcess() to look for well targeted applications applications Notepad Calc Explorer Methods: Methods:

  38. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Backdoor reg edit Backdoor reg edit Methods: Methods:

  39. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Backdoor reg edit Backdoor reg edit Who’s using it and why? What is being edited? (key on specific reg keys like appinitdll, etc) Methods: Methods:

  40. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Auto pe-sive dll Auto pe-sive dll Methods: Methods:

  41. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Auto pe-sive dll Auto pe-sive dll @hasherezade Methods: Methods:

  42. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Auto pe-sive dll Auto pe-sive dll @hasherezade Methods: Methods:

  43. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Methods: Methods:

  44. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Fake SMB Fake SMB Methods: Methods:

  45. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Little Snitch / Micro Snitch (or lulu Little Snitch / Micro Snitch (or lulu if ya have to) if ya have to) Methods: Methods:

  46. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work https://github.com/kai5263499/osx-security-awesome#hardening Methods: Methods:

  47. DIY Blue Teaming DIY Blue Teaming Ways to make malware not work Methods: ... misc Methods: ... misc

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend