Masterclass: Red Team – Blue Team Operations
Cyber Security Training
Duration: 5 days
02-06 December 2019
Adrian Denkiewicz is CQURE’s Expert with over 8 years of experience as Penetration Tester, Cybersecurity Specialist, and Software Developer. He has worked for financial, ecommerce, and semiconductor industry. Adrian performed dozens of penetration tests and security reviews cooperating with teams from all over. Adrian also holds OSCP certificate. Promotional Video
This is a deep dive course on Red Team – Blue Team Operations: the cyber kill chain - reconnaissance, attack planning and delivery, system exploitation, privilege escalation and lateral movement, anomalies detection, discovery of industry attacks and threats, understanding how compromised system or solution looks like, defining the indicators of the attack, and incident handling.
On completion of this course you will be able to:
- Analyze emerging trends in attacks
- Identify areas of vulnerability within your organization
- Prepare a risk assessment for your organization
- Report and recommend countermeasures
- Develop a threat management plan for your organization
- Organize Red Team – Blue Team exercises
To attend this training, you should have a good hands-on experience in administering Windows infrastructure. At least 8 years in the field is recommended.
Red team and blue team members, enterprise administrators, infrastructure architects, security professionals, systems engineers, network administrators, IT professionals, security consultants and other people responsible for implementing network and perimeter security.
Author’s unique tools, presentation slides with notes
Module 1: Identifying Areas of Vulnerability
This part introduces the new cybersecurity challenges and trends, emphasizing on data security and integration through and into the cloud and the challenges of the coordination of the cloud and on-premise security solutions. Security is a business enabler, and it is only when it is viewed from a business perspective that we can truly make the right decisions. You will learn how to define values of your company which needs to be protected or restricted. You will know how to find obvious and not so obvious sensitive information which can be monetized by adversaries. Having that scope defined and knowing your resources you will know where the biggest gaps in your security posture are.
- Defining the assets which your company needs to protect
- Defining the other sensitive information that needs to be protected
Module 2: Modern Attack Techniques
In this world where most of the things happen online, hacking provides wider opportunities for the hackers to gain unauthorized access to the unclassified information like credit card details, email account details, and other personal information. So, every red teamer and blue teamer should know the modern hacking techniques that are commonly used to get your personal information in an unauthorized way.
- OS platform threats and attacks
- Web based threats and attacks
- E-mail threats and attacks
- Physical access threats and attacks
- Social threats and attacks
- Wireless threats and attacks
Module 3: Reconnaissance
The term Cyber Kill Chain defines the steps used by cyber attackers in today’s cyber based attacks. The reconnaissance is the first phase, during which the attacker gathers information on the target before the actual attack starts. The data gathering is essential skill of every red teamer. From blue teamer perspective, it is crucial to understand what kind of information is publicly available and to learn how to protect that information.
- Open Source Intelligence (OSINT)
- Google hacking
- Social Media presence
- Physical reconnaissance
- Port scanning
- Service discovery
- Intrusion Prevention Systems
Module 4: Weaponization
After successful data gathering, advanced attacker will prepare dedicated tools and attacks scenarios to increase chances of successful attack. For example, known vulnerability in identified product could be exploited in order to execute remote code or spawn remote shell into internal network.
- Generating malicious payload
- Hiding malicious content in Office Suite documents
- Reverse shells
- AV evasion techniques
Module 5: Delivery
Without remote code execution vulnerability even the most sophisticated payload needs to be delivered to the victim. There are plenty of ways to achieve that so blue team needs to ensure that payloads are detected and blocked at early stage.
- Building phishing campaign
- Planting malicious device
- Attacks on 3rd parties
- Enabling phishing protection
- O365 / Safe links
- Smart Screen
- Secure proxy
- APT campaigns
Module 6: Exploitation and Installation
After successful delivery, malicious code exploits a vulnerability to execute code on victim’s system. There are many mechanisms that, if properly configured, significantly reduce attack scope.
- Types of vulnerabilities
- Establishing foothold
- Stage-less and staged payloads / C&C
- Application Whitelisting
- Living Off the Land Binaries
- Exploit Guard
Module 7: Privilege escalation
The successful exploitation attack often results in code execution with limited privileges. Both, red teamers and blue teamers should be familiar with common techniques and misconfigurations allowing for privilege escalation.
- Privileged accounts
- System services security
- Common misconfigurations
- Security tokens
- Just Enough Administration
- Patch maintenance
Module 8: Lateral movement
The next after gaining admin privileges on single host is lateral movement that gives access to additional resources within the company. Before red teamer can reach Domain Controller or other critical servers, blue team can implement numerous protections against that threat.
- Credential harvesting
- Network reconnaissance
- Building network map
- Credential Guard
- GPO policies
- Windows ATA
- Defender ATP
Module 9: Persistency
Even after attack is stopped and contained, the attacker will want to ensure persistency and possibility of returning to compromised host. Blue
- Sleeping agents
- Piggybacking on network packets
- Searching for rogue servers
- Looking for network anomalies
Module 10: Cyber-Competition for Red Team & Blue Team (Capture the Flag!)
Students will be divided in two groups – both will have a mix of Red Team and Blue Team people. Both groups would get their own small set of machines to work with. The machines would serve various purposes – some of them will have services configured, such as WWW, DNS or SMB, some of them will have hidden secrets or be a part of complex system.
Teams will use CTFd platform to get description of the challenges and to upload received flags. Flags will be scored different amount of points, depending on the complexity of the task. Tasks will be related to the knowledge that students acquired during the course, but will not be restricted to that. Hunting for flags is part of a course and students will learn new things while working on the hallenges! If teams are stuck on some challenge, they will have an option to use already scored points and buy additional hints. With always up-to-date scoreboard they will have to include that in their strategy to beat the other team!
Tasks will be divided in several categories, such as:
Simple tasks to get started and get familiar with the CTFd platform and rules.
Challenges related with attacks on network services and web pages.
Recovery of secrets, hidden information, analysis of metadata or actions taken by malicious software.
Problems with crypto, incorrect implementations or attacks on acquired secrets.
The last hour would be used to summarize what worked and what not – groups would describe what they did to retrieve the
flag or what stopped them. Instructor would also answer all the questions and show what was the intended solution to beat
some of the challenges.