• $700 or 5 monthly payments of $149

Detection Engineering Professional: Attack Simulation & Defense

  • Course
  • 150 Lessons
  • Discord access

A hands-on detection engineering course for practitioners with a few years in security. Simulate real attacks in a Windows Active Directory lab, trace them through Windows Event Logs, Sysmon, and EDR, then write, tune, and validate your own detection rules. This is where you learn to own the detections that catch intrusions, not just recognize them.

Read more about the instructors, course contents and special pricing:

Trainer information

Uriel Kosayev

Security Researcher, Trainer & Speaker

Uriel Kosayev is a cybersecurity researcher and reverse engineer with over a decade of experience spanning offensive security, malware analysis, and incident response. He co-founded TrainSec Academy and authored two books: Antivirus Bypass Techniques (8,000+ copies sold) and MAoS – Malware Analysis on Steroids (2025). He has contributed vulnerability research to the MITRE ATT&CK framework and published academic white papers on malware detection and memory-based threats.

Students Testimonials

Or Levy

Mobile Security Research Team Leader at Appdome

“I want to recommend Uriel Kosayev as a quality professional security researcher and lecturer who knows how to guide his students, give the right word, and push them to success. I had the pleasure of being his student.”

Max Malyutin

Threat Researcher and Orion Malware Research Team Leader at Cynet

“The one and only master, thank you! Your knowledge and your passion for Cyber make you a great teacher!!!”

Matan Haim Guez

Security Researcher at Palo Alto Networks

“Uriel is a great lecturer and person not only because of his knowledge in security research, offensive security, and Malware Analysis but also because of the passion that he provided me as a student to keep asking questions and research by myself.”

Omer Dahan

Mobile Security Researcher at Appdome

“I want to say that Uriel Kosayev is one of the best researchers in the industry, with a lot of experience in the field of investigations and reverse engineering, I learned a lot from him. In addition, he has one of the best books on the market that teaches anti-virus bypass methods. I recommend everyone to acquire knowledge from Uriel!”

Sahar Shlichove

Senior SOC Analyst at TrustNet

“Uriel is one of the best Cybersecurity trainers among all the people I have ever met. A rare combination of professionalism and high-quality delivery excellent and creative ways he delivers the material. On top of that, if you will ever be a student in his class, I can guarantee you that he will explain to you till you finally understand the learned material. A great lecturer and mentor!”

Maria Korlotian

Development Team Leader at Mend

“I highly recommend Uriel as a Cybersecurity Specialist. I had the privilege of participating in his training session – it was an exceptional experience! Uriel delivered practical insights that significantly enhanced my and my Team's knowledge and skills in the field. I am grateful for the opportunity to learn from Uriel and would eagerly participate in any future training sessions organized by him.”

The course Methodology

The loop real detection engineers run in production.

Every attack-and-defense module in this course follows the same five-step cycle. It’s the single most important habit the course teaches, because it’s how real detection engineering work is done:

  1. Simulate – Execute the attacker technique yourself in a controlled lab, so you know exactly what happened and when.

  2. Investigate – Follow the technique through the telemetry it produced. Discover which data sources saw it, and which were blind.

  3. Detect – Write the detection rule against the durable artifact the attack leaves behind, not against the tool that created it.

  4. Tune – Measure alert volume, exclude legitimate activity, and accept that every exclusion is a new blind spot.

  5. Validate – Re-simulate the attack to prove the rule fires. Then ask how you’d bypass your own rule, and close that gap.

This isn’t a course about recognizing attacks. It’s a course about owning the detections that stop them.

Course Slide Deck & Practice Labs

In this course slide deck, you will find all materials both presented in the videos and many practical labs for you to become more practically knowledgeable.

So have fun, practice a lot and remember to always say thanks to the one above for everything good and challenging in life, because challenges are what build us 😀

Good luck, and with all my heart, enjoy the course!

Detection Engineering Professional - Attack Simulation & Defense.pdf
Attack Simulation and Detection Engineering Practice Labs.pdf
Process Injection Tool - TrainSec Injector.zip

1: Welcome & Intro

An orientation to how a EDR, XDR and SIEM correlates telemetry from every source into a single attack picture, and the five-step methodology (simulate, investigate, detect, tune, validate) this entire course is built around.

1 - Welcome
2 - About Uriel Kosayev
3 - What to Expect from this Course
4 - The Art and Essence of Detection Engineering
5 - The Essence of this Course
Preview

2: Attack & Defense Mindset

Builds the offensive vocabulary and mental models, hacker types, the CIA and DAD triads, the Cyber Kill Chain, and threat actor taxonomy, that every later module assumes you already have, using real incident case studies like Kaseya, Colonial Pipeline, and WannaCry.

1 - Introduction
2 - Who is a Hacker
3 - Basic Concepts - Part 1
4 - Basic Concepts - Part 2
5 - The CIA Triad
6 - The DAD Triad
7 - The Cyber Kill-Chain - Part 1
8 - The Cyber Kill-Chain - Part 2
9 - Threat Actor Types
10 - Infamous Cyber Attacks
11 - Attacker's Goals & Desires
12 - How attackers hide their traces
13 - The Darknet

3: Attacker's Martial Art

Walks through reconnaissance, port mapping, AV/EDR bypass reasoning, phishing infrastructure, and SSL stripping from the attacker’s perspective, so you know exactly what footprint each technique leaves for a defender to catch.

1 - Reconnaissance
2 - Google Hacking & Dorks
3 - Port Mapping with Nmap
4 - AV-EDR Bypass - Part 1
5 - AV-EDR Bypass - Part 2
6 - Social Engineering Phishing Web Page
7 - SSL Stripping - Part 1
8 - SSL Stripping - Part 2
9 - Infrastructure Exploitation
10 - Post Exploitation - Part 1
11 - Post Exploitation - Part 2
12 - Remote Brute Force

4: Introduction to Malware Attacks

Covers malware classification and sandbox evasion, and how to read the MITRE ATT&CK framework properly, then puts it into practice by reconstructing the Emotet infection chain stage by stage.

1 - Intro
2 - Types of Malware
3 - Malware Analysis
4 - The ATT&CK MITRE Framework
5 - Atomic Red Team
6 - The Emotet Usecase - Part 1
7 - The Emotet Usecase - Part 2
Preview

5: Proactive Defense - Cybersecurity Hardening

Hands-on hardening and mitigation work, from VLAN hopping and DHCP/ARP spoofing to LSASS credential dumping and DNS zone transfer attacks, each paired with the concrete Windows and Linux controls that stop it.

1 - Intro
2 - Basic Concepts
3 - The Principle of Least Privilege - Part 1
4 - The Principle of Least Privilege - Part 2
5 - General Security Best Practices
6 - VLAN Hopping
7 - More Attack Techniques
8 - Network Attacks Mitigation Practices
9 - DDoS Attacks & Mitigations
10 - Brute Force & Physical Access Attacks
11 - DNS Zone Transfer Attack & Mitigations
12 - Credential Dumping & Mitigations
13 - OS & Network Security

6: Proactive Defense - Threat Hunting & Incident Response

The full incident response lifecycle, from preparation and volatile evidence acquisition to eradication and lessons learned, plus a hypothesis-driven threat hunting process that goes beyond static IOCs.

1 - IR Intro
2 - IR Intro - Part 2
3 - Preparation
4 - Identification & Analysis
5 - Identification & Analysis - Part 2
6 - Incident Containment
7 - Incident Containment - Part 2
8 - Incident Eradication & Recovery
9 - The Aftermath - What happens after the Incident
10 - Threat Hunting
11 - Threat Hunting - Part 2
12 - Threat Hunting - Part 3

7: Working with Windows Event Logs

Deep dive into Windows Event Viewer and the Security log, reading Event ID 4624 and 4625 field by field to recognize password spraying, log clearing, and attacker-style domain discovery straight from the log data.

1 - Intro & Log Sources
2 - Exploring Windows Event Viewer
3 - Exploring Windows Event Viewer - Part 2
4 - Common Windows Event IDs
5 - Common Windows Event IDs - Part 2
6 - Analyzing Event ID 4625 Failed Logon
7 - Analyzing Event ID 4625 Failed Logon - Part 2
Preview
8 - Analyzing Event ID 4624 Successful Logon
9 - Domain Discovery & Lack of Telemetry Data
10 - Domain Discovery & Lack of Telemetry Data - Part 2

8: Sysmon Detection Engineering

Build Sysmon configurations from scratch and write detection rules across every core event type, process creation, DNS queries, registry persistence, image load, and process injection, then learn to reason about how your own rules could be bypassed.

1 - Sysmon Intro
2 - Sysmon Intro - Part 2
3 - Core Sysmon Event IDs & Blind Spots
4 - Deploying Sysmon
5 - Detecting Nltest using ProcessCreate Event
6 - Detecting Nltest using ProcessCreate Event - Part 2
7 - Detecting the Net command using ProcessCreate Event
8 - Detecting the Net command using ProcessCreate Event - Part 2
9 - Detecting DNS Queries
10 - Detecting DNS Queries - Part 2
11 - Detecting Persistence using the FileCreate event
12 - Detecting Persistence using the FileCreate event - Part 2
13 - Detecting Persistence using RegistryEvent
14 - Detecting Persistence using RegistryEvent - Part 2
15 - Detecting Credential Access using ImageLoad
16 - Detecting Credential Access using ImageLoad - Part 2
17 - Sysmon Events Exclusion
18 - Detecting the CreateRemoteThread Process Injection
Preview

9: EDR - XDR Detection Fundamentals & Deployment

Clarifies what actually separates AV, EDR, XDR, and SIEM, then walks through deploying and hardening Elastic Defend end to end, including anti-tampering and telemetry sanity checks.

1 - Intro
2 - AV vs. EDR vs. XDR vs. SIEM
3 - Detection Kill-Chain & Process Tree
4 - Detection Correlation
5 - Incidents & Alerts Chain of Events
6 - Elastic Security EDR Overview
7 - Deploying Elastic Defend
8 - Deploying Elastic Defend - Part 2
9 - Optimizing the Security Policy and Enabling Anti-Tampering
10 - EDR Telemetry Collection Sanity Check
Preview

10: Attack and Defense - Initial Access and Lateral Movement

The first full simulate-investigate-detect cycles of the course. RDP, PsExec, and WinRM attacks executed against the lab, then correlated across Windows Security events and Elastic Defend telemetry into KQL detection rules you author yourself.

1 - Attack & Defense Intro
2 - RDP Attack Simulation
3 - RDP Attack Investigation
4 - RDP Attack Detection
5 - RDP Attack Detection - Part 2
6 - RDP Attack Detection - Part 3
7 - PSexec Attack Simulation
8 - PSexec Attack Investigation
9 - PSexec Attack Detection
10 - WinRM Attack Simulation
Preview
11 - WinRM Attack Investigation
12 - WinRM Attack Detection

11: Attack and Defense - Discovery

Simulates the domain enumeration an attacker runs immediately after gaining a foothold, nltest, net user /domain, and net.exe, then builds resilient, wildcard-based Elastic rules that don’t overfit to a single parent process.

1 - Nltest Discovery Simulation
2 - Nltest Discovery Investigation
3 - Nltest Discovery Detection
4 - Net Discovery Simulation
5 - Net Discovery Investigation
6 - Net Discovery Detection

12: Attack and Defense - Living-off-the-Land (LOLbin & Friends)

Covers encoded PowerShell, WMI process creation as an EDR blind spot, and how to pivot on process ancestry to build behavioral rules that survive an attacker swapping their tooling.

1 - The Emotet Usecase - Detecting PowerShell Attacks
2 - WMI Attack Simulation
3 - WMI Attack Investigation
4 - WMI Attack Detection
Preview
5 - KeyMgr Detection Bypass Red Team Edition
6 - KeyMgr Detection Bypass Red Team Edition - Part,2

13: Attack and Defense - Persistence & Credential Access

Plants and detects the three classic Windows persistence mechanisms, registry Run keys, services, and Startup folder shortcuts, then dumps LSASS credentials via comsvcs.dll and builds the Elastic rules that catch each technique.

1 - Registry Persistence Attack Simulation
2 - Registry Persistence Attack Investigation
3 - Registry Persistence Attack Detection
4 - Service Persistence Attack Simulation
5 - Service Persistence Attack Investigation
6 - Service Persistence Attack Detection
7 - Startup Folder Persistence Attack Simulation
8 - Startup Folder Persistence Attack Investigation
9 - Startup Folder Persistence Attack Detection
10 - Credential Access Techniques

14: Attack and Defense - AI & Process Injection

Explores the telemetry footprint of process injection techniques like CreateRemoteThread and process hollowing, then shows how to use the Elastic Security AI assistant to draft and validate detection rules without trusting it blindly.

Process Injection Tool - TrainSec Injector.zip
1 - Process Injection Techniques Attack Simulation
2 - Process Injection Techniques Attack Investigation & Detection
3 - AI Assisted Detection Engineering
4 - AI Assisted Detection Engineering - Part 2
5 - AI Assisted Detection Engineering - Part 3

15: To know your enemy, you must become your enemy - Final Notes & Labs

Closes the course with a repeatable alert triage workflow, the tuning philosophy that separates a resilient detection from a brittle one, and independent practice labs with no answer key.

1 - Pro Tips
2 - Attack Simulation and Detection Engineering Practice Labs
3 - Thank you

Bonus Content

A standalone reference module on the Windows filesystem and registry locations attackers use most, staging directories, Prefetch, shellbags, USB history, turned into detection ideas you can act on immediately.

1 - Interesting Windows Folder Paths
2 - Interesting Windows Folder Paths - Part 2
3 - Interesting Windows Registry Keys
DEF CON 34 - The Silent Tunneler - A Real-World Incident Response Story