Enterprise Attacker Emulation and C2 Implant Development w/ Joff Thyer
Instructor: Joff Thyer
As penetration testers, we all have a need to establish command and control channels in our customer environments. This can be done under the guise of an “assumed compromise” context or in a more adversarial Red Team context. The age of endpoint detection and response (EDR) solutions and application whitelisting has created significant barriers to commodity/well known malware deployment for adversarial exercises.
This class focuses on the demonstration of an Open Command Channel framework called “OpenC2RAT”, and then developing, enhancing, and deploying the “OpenC2RAT” command channel software into a target environment. Students will learn about the internal details of a command channel architecture and methods to deploy in an application-whitelisted context. The class will introduce students to blocks of code written in C#, GoLang, and Python to achieve these goals. In addition, the class will introduce some ideas to deploy existing shellcode such as Cobalt Strike Beacon or Meterpreter within a programmed wrapper to enhance success in the age of modern endpoint defense. Many of the techniques introduced in this class can be used to evade modern defensive technologies.
- Insight into command channel architecture
- The ability to leverage different programming languages to execute custom malware
- A diversity of solutions for establishing command channels
WHO SHOULD TAKE THIS COURSE
- Penetration testers
- Any security professionals who want to know the inner workings on malware.
- This class will help any organization who wants to start emulating advanced malware to test their defenses and detective capabilities.
AUDIENCE SKILL LEVEL
Basic scripting skills in a language such as Python and a willingness to use Visual Studio IDE for code modification will be advantageous. Students should have a familiarity with penetration testing tools, techniques, and procedures as well as a conceptual understanding of HTTP RESTful/JSON technology.
- High speed Internet connectivity
- Ability to connect to remote Azure deployed desktops.
WHAT A STUDENT SHOULD BRING
- Students will need a laptop that supports Windows Remote Desktop protocol.
WHAT STUDENTS WILL BE PROVIDED WITH
- Access to a GitHub code repository with source code samples
- Access to a PDF copy of all slideware
SUGGESTED PREREQUISITE READING LIST
Thursday/us-19-Kotler-Process- Injection-Techniques-Gotta- Catch-Them-All-wp.pdf
- Introduction and Overview
- Module 1: Commodity C2 Frameworks
- Module 2: The Defense Landscape
- Module 3: Threat Modeling and Attacker Emulation
- Module 4: Anatomy of a C2 Channel
- Module 5: Open C2 RAT Framework
- Module 6: Your own C#/.NET Implant
- Module 7: Living off The Land
- Module 8: Python OpenC2Rat Implant
- Module 9: Shellcode Execution with Python
- Module 10: Shellcode Execution with GOLang
- Module 11: GOLang and .NET
- Module 12: Shellcode Execution with C#
- Module 13: Wrapping up and Future Directions
TRAINER & AUTHOR
Joff Thyer has been a penetration tester and security analyst with Black Hills Information Security since 2013. Prior to joining the InfoSec world, he had a long career in the IT industry as a systems administrator and an enterprise network architect. He has an Associate’s in Computer Science, a B.S. in Mathematics, and an M.S. in Computer Science, as well as several certifications. The best part of a penetration test for Joff is developing sophisticated malware that tackles defensive solutions, ultimately delivering exciting wins for company engagements. He has extensive experience covering intrusion prevention/detection systems, infrastructure defense, vulnerability analysis, defense bypass, source code analysis, and exploit research. When Joff isn’t working or co-hosting the Security Weekly podcast, he enjoys making music and woodworking.
Join the Wild West Hackin’ Fest Discord server to stay updated on future training and webcasts: Join Our Server!