all-soc-level-12026.05.04
haadi@portfolio: ~

haadi@portfolio:~$ cat windows-threat-detection-3.md

Room notes · SOC Level 1 · Windows security monitoring

Windows Threat Detection3

How attackers maintain persistent access to compromised Windows hosts: C2 implants, backdoor accounts, Windows services, scheduled tasks, and startup folder abuse.

What This Room Covers

How attackers maintain persistent access to compromised Windows hosts: C2 implants, backdoor accounts, Windows services, scheduled tasks, and startup folder abuse.


Key Concepts Learned

Persistence is what turns a one-time breach into a long-term threat. Without persistence, the attacker loses access at the next reboot. With persistence, they can return days, weeks, or months later, even if the initial infection vector is closed. This room covered every major Windows persistence technique.

C2 Malware Placement: Blending In The C2 implant was hidden at C:\Users\Administrator\AppData\Roaming\update.exe: a path that looks like a legitimate application update. AppData\Roaming is a standard location for user-space application data, making it a common hiding spot. The domain route.m365officesync.workers.dev impersonates Microsoft 365 infrastructure. Both the file location and domain name are chosen specifically to blend with legitimate traffic.

Backdoor Account Creation Pattern After RDP brute force (6 failed attempts → 1 success), the attacker created a user named support and added it to Administrators. The name support is deliberately chosen to appear like a legitimate IT account.

Windows Persistence Mechanisms Covered

MechanismTechniqueDetection Event
Windows ServiceMalware registered as a serviceSysmon Event ID 6 (Driver loaded) or System log 7045 (New service)
Scheduled TaskTask created to run malware on scheduleSysmon Event ID 1 with schtasks.exe or Security Event 4698
Startup FolderExecutable placed in startup folderSysmon Event ID 11 (File created) in startup path
Registry Run KeyHKCU/HKLM Run key modifiedSysmon Event ID 13 (Registry value set)

Ransomware: the most impactful persistence outcome The room ended with the strategic point: ransomware is the most destructive outcome of a Windows breach, and the best time to stop it is at Initial Access , not at encryption. Every persistence mechanism detected is a ransomware attack that never reached its final stage.


Task Answers

QuestionAnswer
Suspicious archive downloadedURGENT!.zip
C2 malware file locationC:\Users\Administrator\AppData\Roaming\update.exe
C2 domainroute.m365officesync.workers.dev
Failed login attempts before success6
Backdoor user createdsupport
Privileged group backdoor user added toAdministrators
Windows service created to persist Nessie malwareData Protection Service
Scheduled task created to persist Troy malwareAmazonSync
Flag from running Troy malwareTHM{c2_is_on_schedule!}
Parent process image of "Odin" malwarec:\windows\explorer.exe
Last line Odin malware outputsDone doing bad stuff!
Flag from running Kitten malwareTHM{persisting_in_basket!}
Biggest threat to corporate Windows networksRansomware
Best stage to detect and stop the attackInitial Access

Key Concepts for SOC Work

AppData\Roaming is a standard persistence hiding spot: monitor it. Sysmon file creation events (Event ID 11) in C:\Users\*\AppData\Roaming\ for executable file types (.exe, .dll, .bat, .ps1) are worth alerting on, especially when the creating process is not a known application installer.

Scheduled task names that impersonate Microsoft services are a red flag. AmazonSync in a Windows environment that does not use Amazon services has no legitimate reason to exist. A detection rule filtering for new scheduled tasks with names matching common vendor names is a practical, low-noise alert.


What I Want to Learn Next Based on This

This completes the Windows Security Monitoring module. The Linux Security Monitoring module applies the same detection thinking to Linux systems: different log sources, similar attacker TTPs.

Originally published on GitHub

view-source
haadi@portfolio: ~

haadi@portfolio:~$ cat meta

  1. category: room notes
  2. path: SOC Level 1
  3. module: Windows security monitoring
  4. topic: 09: Windows Security Monitoring
  5. difficulty: Medium
  6. published: 2026.05.04
  7. read: 3 min

Next writeup

Keepreading