Mempelajari EDR/XDR sebagai garis pertahanan endpoint, hunting on endpoint, telemetry yang dikumpulkan, dan cara menganalisis kompromi endpoint

Setelah di episode 6 kita mempelajari network analysis, pada episode ini kita dalami endpoint — tempat attacker benar-benar menjalankan aksinya. Endpoint adalah workstation, server, dan device yang menjadi target akhir serangan. EDR (Endpoint Detection and Response) adalah mata yang melihat apa yang terjadi di dalamnya.
Mengapa endpoint security kritis? Karena 90% serangan dimulai atau berakhir di endpoint. Network bisa dipotong, log bisa dimanipulasi, tapi activity di dalam endpoint meninggalkan jejak yang lebih sulit dihapus — proses yang berjalan, file yang dimodifikasi, registry yang diubah.
| Teknologi | Cara Kerja | Limitasi |
|---|---|---|
| Antivirus Tradisional | Signature-based | Tidak bisa deteksi zero-day |
| EDR | Behavioral analysis + telemetry | Hanya endpoint |
| XDR | EDR + network + cloud + email | Cross-domain correlation |
EDR mengumpulkan telemetry — data tentang semua aktivitas endpoint: proses yang berjalan, file yang dimodifikasi, koneksi yang dibuat, dan registry yang diubah. Dari data ini, EDR bisa mendeteksi perilaku berbahaya yang tidak terdeteksi antivirus tradisional.
| Data | Contoh | Kegunaan |
|---|---|---|
| Process creation | powershell.exe -enc ... | Deteksi execution mencurigakan |
| Parent-child relationship | winword.exe → powershell.exe | Deteksi LOLBins |
| Command line args | -enc SQBmACgA... | Deteksi encoded commands |
| Process hash | SHA256 | Identifikasi malware |
| Data | Contoh | Kegunaan |
|---|---|---|
| File creation | .exe di %TEMP% | Deteksi dropper |
| File modification | Registry hive diubah | Persistence detection |
| File deletion | Log file dihapus | Anti-forensics |
| Data | Contoh | Kegunaan |
|---|---|---|
| Outbound connection | malware-c2.com:443 | C2 detection |
| DNS query | update.evil.com | DNS-based detection |
| TLS handshake | Self-signed cert | Anomali detection |
Threat hunting di endpoint mencari jejak attacker yang belum terdeteksi oleh rules otomatis.
# Di Windows dengan Sysmon
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Sysmon/Operational'; ID=1} |
Where-Object {$_.Properties[5].Value -like "*-enc*"} |
Select-Object TimeCreated, @{N='CommandLine';E={$_.Properties[5].Value}}DeviceProcessEvents
| where Timestamp > ago(7d)
| where FolderPath startswith "C:\\Users\\"
| where ProcessVersionInfoCompanyName == ""
| project Timestamp, DeviceName, InitiatingProcessFileName, FileName, FolderPath
| sort by Timestamp descTip
Threat hunting dimulai dari hipotesis, bukan dari tools. Tanyakan: "Jika attacker masuk ke environment ini, jejak apa yang akan mereka tinggalkan?" Lalu cari jejak itu di data EDR.
Attacker menggunakan tools built-in Windows untuk menghindari deteksi:
| LOLBin | Kegunaan Attacker | Deteksi |
|---|---|---|
powershell.exe | Download, execute, obfuscate | Encoded commands, unusual parent |
certutil.exe | Download payload | Network connection dari certutil |
mshta.exe | Execute HTA files | Execution dari path tidak wajar |
regsvr32.exe | Execute scriptlets | /s /n /u /i: parameters |
| Mekanisme | Lokasi | Deteksi |
|---|---|---|
| Registry Run Key | HKCU\Software\Microsoft\Windows\CurrentVersion\Run | Registry modification event |
| Scheduled Task | schtasks.exe | Event ID 4698 |
| Service Installation | sc create | Event ID 7045 |
| Startup Folder | %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup | File creation event |
Inti yang harus dibawa pulang:
Di episode 8 selanjutnya kita akan membahas threat hunting secara mendalam — hipotesis-driven hunting, IOCs vs baselines, dan hunting exercise yang realistis. EDR adalah matanya, threat hunting adalah otaknya!