← All articles
Detection Engineering

What Is Detection Engineering? A Beginner's Roadmap

Binjesoft · 10 November 2026 · 10 min read

In short

  • Detection engineering is the practice of designing, testing and maintaining the rules that turn logs into useful alerts, treated with the same discipline as software.
  • The core loop is simple: pick a threat, check you have the right logs, write the rule, test it against real activity, tune it, document it, and review it regularly.
  • Free, open resources cover most of what a beginner needs: MITRE ATT&CK, Sigma rules, Atomic Red Team tests and the Alerting and Detection Strategy (ADS) template.

This roadmap is for security analysts who already triage alerts and want to start building them, and for developers or IT staff curious about the defensive side of security. You'll get a plain definition of detection engineering, the lifecycle most teams follow, the frameworks worth learning first, a small example rule, and a step-by-step learning plan you can start this month.

What detection engineering is

Every security tool that alerts you, whether a SIEM, an EDR or a cloud service, runs on detection logic: a query, rule or model that says "this pattern of events is worth a human's attention." Detection engineering is the work of creating that logic on purpose instead of accepting whatever the vendor ships.

A detection engineer asks questions like:

  • Which attacker behaviors matter most to our environment?
  • Do we actually collect the logs that would show those behaviors?
  • Will this rule fire when the attack happens, and stay quiet the rest of the time?
  • When it fires, does the analyst know what to do next?

The difference from "writing SIEM searches" is discipline. Detections are versioned, reviewed, tested and retired like code. A rule nobody has tested is a guess; a rule that fires a hundred times a day on normal activity trains people to ignore it.

The detection lifecycle

Teams describe it in different words, but most follow a loop like this:

  1. Prioritize. Choose a behavior to detect, based on threat intelligence, incidents you've seen, or gaps in coverage. Map it to a MITRE ATT&CK technique so you can track coverage.
  2. Check the data. Confirm the needed logs exist, are parsed, and arrive reliably. Many detection projects stall here, so it's worth doing before writing anything.
  3. Research the behavior. Understand how the technique works, what it looks like in your logs, and what normal activity looks similar.
  4. Write the rule. Build the query or rule, ideally in a format you can store in version control.
  5. Test. Generate the behavior safely in a lab and confirm the rule fires. Run it against historical data to estimate false positives.
  6. Document. Record the goal, blind spots, known false positives and response steps.
  7. Deploy and tune. Ship it, watch how it performs, and adjust.
  8. Review and retire. Re-test periodically, because log formats, software and attacker tools all change. Remove rules that no longer earn their keep.

Frameworks and tools worth learning first

MITRE ATT&CK

ATT&CK is a public knowledge base of adversary tactics and techniques based on real-world observations. It gives everyone shared names for behaviors, so "T1033 System Owner/User Discovery" means the same thing across tools and teams. As of November 2026 the current release is ATT&CK v20 (October 2026). Its Enterprise matrix lists 227 techniques and 479 sub-techniques. Since v18 (October 2025), ATT&CK also publishes Detection Strategies (high-level approaches to detecting a technique) and Analytics (platform-specific detection logic), which are useful starting points when you don't know where to begin with a technique.

The Pyramid of Pain

David Bianco's Pyramid of Pain (2013) ranks indicators by how much it hurts an attacker when you detect them. From bottom to top: hash values, IP addresses, domain names, network and host artifacts, tools, and tactics, techniques and procedures (TTPs). Hashes and IPs are trivial for attackers to change; behaviors are not. The lesson for beginners: indicator matching has its place, but aim to detect behavior.

Summiting the Pyramid

MITRE's Center for Threat-Informed Defense built on that idea with Summiting the Pyramid, a method for scoring how robust a detection is, meaning how hard it is for an attacker to evade. Rules based on values the attacker controls, like file names or command-line arguments, are less robust than rules tied to system activity the attacker can't easily avoid. The 2026 update (September 2026) adds scoring for precision and implementation coverage, and a calculator that reads Sigma rules. You don't need it on day one, but it's a good way to judge your rules once you've written a few.

Sigma

Sigma is an open, generic rule format for log events. As its maintainers put it, it is to log files what Snort is to network traffic and YARA is to files. You write a rule once in YAML and convert it to the query language of your SIEM with the official sigma-cli tool or the pySigma library. The public SigmaHQ repository holds more than 3,000 rules, which makes it an excellent library to read and learn from.

Atomic Red Team

Atomic Red Team, from Red Canary, is a library of small tests mapped to ATT&CK. You run a test in a lab, then check whether your rule fired. It's the simplest way to move from "I think this works" to "I saw it work." Run these tests only on systems you own and are allowed to test, ideally an isolated lab.

A first rule, end to end

Here's a small Sigma rule for one behavior: a web server process starting whoami.exe. Attackers who gain code execution through a web application often check which account they are running as; a web server has little normal reason to do that.

# Sigma rule: whoami started by an IIS web server worker process
title: Whoami Executed by IIS Worker Process
id: 00000000-0000-0000-0000-000000000000   # generate a real UUID for your rule
status: experimental                        # new rules start as experimental
description: Detects whoami.exe launched by w3wp.exe, which can indicate a web shell.
references:
  - https://attack.mitre.org/techniques/T1033/
author: Your Name
date: 2026-11-10
tags:
  - attack.discovery
  - attack.t1033
logsource:
  category: process_creation    # e.g. Sysmon Event ID 1 or Windows 4688
  product: windows
detection:
  selection:
    ParentImage|endswith: '\w3wp.exe'
    Image|endswith: '\whoami.exe'
  condition: selection
falsepositives:
  - Administrators debugging an application pool (rare; confirm with the owner)
level: high

To turn it into a Splunk search, you could use sigma-cli with the Splunk backend and the Sysmon field mapping:

# Install the CLI and the Splunk backend, then convert the rule
pip install sigma-cli
sigma plugin install splunk
sigma convert -t splunk -p sysmon rules/whoami_iis.yml

Then test it: in a lab Windows server running IIS and Sysmon, trigger the behavior with the matching Atomic Red Team test or a harmless test page you control, confirm the alert fires, and search 30 days of production data to see how noisy it would be. Note the limits too. An attacker can rename the binary or use a different discovery method, so this rule is a useful starting point, not complete coverage of T1033.

Document every rule with ADS

Palantir's open Alerting and Detection Strategy (ADS) framework is a simple template that forces you to think a rule through before it goes live. Its sections are:

SectionWhat it answers
GoalWhat behavior should this detect?
CategorizationWhich ATT&CK tactic and technique?
Strategy abstractHow does it work, which data does it use, how is noise reduced?
Technical contextWhat does a responder need to know to understand the alert?
Blind spots and assumptionsWhat could stop it firing, or let an attacker evade it?
False positivesWhich known benign activity triggers it?
ValidationHow do you generate a true positive to prove it works?
PriorityHow urgent is an alert, and why?
ResponseWhat should the analyst do when it fires?

Writing the "blind spots" and "validation" sections is often where you discover a rule isn't ready yet. That's the point.

A beginner's roadmap

A realistic plan for someone with basic security and IT knowledge, studying part-time:

StageFocusDone when you can…
1. FoundationsWindows and Linux logging (Sysmon, Windows Security events, auditd), cloud audit logs, basic networkingExplain what a process creation event contains and where your logs come from
2. Query languageOne SIEM language well (for example SPL or KQL), plus basic PythonAnswer "which hosts ran this process last week?" without looking up syntax
3. Threat knowledgeATT&CK tactics and techniques; read SigmaHQ rules for techniques you care aboutExplain how three common techniques show up in logs
4. Build a labA small Windows and Linux lab with Sysmon and a free or trial SIEM; Atomic Red TeamRun a test and find its traces in your SIEM
5. Write and testWrite Sigma rules, convert them, validate them, document them with ADSShow five tested, documented rules in a Git repository
6. OperateTuning, coverage tracking, peer review, robustness scoringExplain why each rule exists, how noisy it is and what it misses

The Git repository from stage 5 doubles as a portfolio. Five well-documented rules with tests say more about your skills than a list of tools on a CV.

Common beginner mistakes

  • Writing rules for logs you don't have. Check data first.
  • Chasing coverage numbers. A colored-in ATT&CK matrix doesn't mean the rules work. Tested rules count; untested ones don't.
  • Only matching indicators. Hash and IP lists expire quickly. Pair them with behavior-based rules.
  • No response guidance. An alert without next steps slows down the analyst who receives it, often at 3 a.m.
  • Never retiring anything. Noisy, outdated rules cost attention. Review them on a schedule.

A note for Indonesian teams

Under Indonesia's Personal Data Protection Law (UU PDP, Law No. 27 of 2022), Article 46 requires a data controller to notify affected data subjects and the supervising institution in writing within 3 x 24 hours if personal data protection fails. You can't notify about what you haven't noticed, so tested detections on the systems that hold personal data are a practical part of meeting that obligation.

Next steps

  • Pick three ATT&CK techniques relevant to your environment and check whether you collect the logs to see them.
  • Read the SigmaHQ rules for those techniques and convert one to your SIEM's language.
  • Set up a small lab, run one Atomic Red Team test, and write your first ADS document.

Later articles in this series will cover detection as code, Splunk and Microsoft Sentinel query basics side by side, and Python scripts for security automation. If your logs come from AWS, our AWS security checklist for startups covers turning on CloudTrail and GuardDuty first. See also our security services.

Want help deciding what to detect first, or reviewing rules you've written? Email Binjesoft and we can look at your log sources and priorities together. See our services for how we work.

Sources: MITRE ATT&CK: Updates (v20, October 2026) · SecurityWeek: ATT&CK v18 adds Detection Strategies and Analytics · David Bianco: The Pyramid of Pain · MITRE CTID: Summiting the Pyramid 2026 · SigmaHQ: Sigma rules repository · SigmaHQ: Rule conventions · Red Canary: Atomic Red Team · Palantir: Alerting and Detection Strategy framework · UU No. 27 Tahun 2022, Pasal 46

Detection engineering

Apa Itu Detection Engineering? Peta Jalan untuk Pemula

Binjesoft · 10 November 2026 · 9 menit baca

Ringkasnya

  • Detection engineering adalah praktik merancang, menguji, dan merawat aturan yang mengubah log menjadi alert yang berguna, dengan disiplin yang sama seperti membangun software.
  • Siklus intinya sederhana: pilih ancaman, pastikan log yang dibutuhkan ada, tulis aturannya, uji dengan aktivitas nyata, tuning, dokumentasikan, lalu tinjau secara berkala.
  • Sumber terbuka dan gratis sudah mencakup sebagian besar kebutuhan pemula: MITRE ATT&CK, aturan Sigma, tes Atomic Red Team, dan template Alerting and Detection Strategy (ADS).

Peta jalan ini untuk analis keamanan yang sehari-hari menangani alert dan ingin mulai membuatnya, juga untuk developer atau staf IT yang penasaran dengan sisi defensif keamanan. Anda akan mendapatkan definisi sederhana detection engineering, siklus yang umum dipakai tim, framework yang layak dipelajari lebih dulu, contoh aturan kecil, dan rencana belajar bertahap yang bisa dimulai bulan ini.

Apa itu detection engineering

Setiap tool keamanan yang mengirim alert, entah SIEM, EDR, atau layanan cloud, berjalan di atas logika deteksi: query, aturan, atau model yang menyatakan "pola kejadian ini perlu dilihat manusia." Detection engineering (rekayasa deteksi) adalah pekerjaan membangun logika itu secara sengaja, bukan sekadar menerima bawaan vendor.

Seorang detection engineer bertanya hal-hal seperti:

  • Perilaku penyerang mana yang paling penting untuk lingkungan kita?
  • Apakah kita benar-benar mengumpulkan log yang bisa memperlihatkan perilaku itu?
  • Apakah aturan ini akan menyala saat serangan terjadi, dan tetap diam di waktu lain?
  • Saat menyala, apakah analis tahu langkah berikutnya?

Bedanya dengan "menulis pencarian di SIEM" ada pada disiplin. Deteksi diberi versi, di-review, diuji, dan dipensiunkan seperti kode. Aturan yang belum pernah diuji hanyalah tebakan; aturan yang menyala seratus kali sehari karena aktivitas normal justru melatih orang untuk mengabaikannya.

Siklus hidup deteksi

Istilahnya bisa berbeda antar-tim, tetapi kebanyakan mengikuti siklus seperti ini:

  1. Tentukan prioritas. Pilih perilaku yang ingin dideteksi berdasarkan threat intelligence, insiden yang pernah terjadi, atau celah cakupan. Petakan ke teknik MITRE ATT&CK agar cakupannya bisa dilacak.
  2. Periksa data. Pastikan log yang dibutuhkan ada, sudah di-parse, dan masuk dengan andal. Banyak proyek deteksi macet di tahap ini, jadi lakukan sebelum menulis apa pun.
  3. Pelajari perilakunya. Pahami cara kerja teknik tersebut, jejaknya di log Anda, dan aktivitas normal apa yang mirip.
  4. Tulis aturannya. Buat query atau aturan, sebaiknya dalam format yang bisa disimpan di version control.
  5. Uji. Munculkan perilaku itu secara aman di lab dan pastikan aturannya menyala. Jalankan juga terhadap data historis untuk memperkirakan false positive (alert keliru).
  6. Dokumentasikan. Catat tujuan, titik buta, false positive yang diketahui, dan langkah respons.
  7. Rilis dan tuning. Aktifkan, pantau kinerjanya, lalu sesuaikan.
  8. Tinjau dan pensiunkan. Uji ulang secara berkala, karena format log, software, dan tool penyerang terus berubah. Hapus aturan yang tidak lagi bermanfaat.

Framework dan tool yang layak dipelajari lebih dulu

MITRE ATT&CK

ATT&CK adalah basis pengetahuan publik tentang taktik dan teknik penyerang, disusun dari pengamatan dunia nyata. ATT&CK memberi nama yang sama untuk setiap perilaku, sehingga "T1033 System Owner/User Discovery" berarti hal yang sama di semua tool dan tim. Per November 2026, rilis terbarunya adalah ATT&CK v20 (Oktober 2026). Matriks Enterprise-nya memuat 227 teknik dan 479 sub-teknik. Sejak v18 (Oktober 2025), ATT&CK juga menerbitkan Detection Strategies (pendekatan tingkat tinggi untuk mendeteksi suatu teknik) dan Analytics (logika deteksi spesifik per platform), titik awal yang berguna saat Anda belum tahu harus mulai dari mana.

Pyramid of Pain

Pyramid of Pain karya David Bianco (2013) mengurutkan indikator berdasarkan seberapa "sakit" bagi penyerang jika Anda mendeteksinya. Dari bawah ke atas: nilai hash, alamat IP, nama domain, artefak jaringan dan host, tool, serta taktik, teknik, dan prosedur (TTP). Hash dan IP sangat mudah diganti penyerang; perilaku tidak. Pelajaran untuk pemula: pencocokan indikator tetap berguna, tetapi arahkan deteksi ke perilaku.

Summiting the Pyramid

Center for Threat-Informed Defense milik MITRE mengembangkan ide itu lewat Summiting the Pyramid, metode untuk menilai seberapa robust (tahan diakali) sebuah deteksi. Aturan yang bergantung pada nilai yang dikendalikan penyerang, seperti nama file atau argumen command line, kurang robust dibanding aturan yang terkait aktivitas sistem yang sulit dihindari penyerang. Pembaruan 2026 (September 2026) menambahkan penilaian presisi dan cakupan implementasi, serta kalkulator yang bisa membaca aturan Sigma. Anda tidak perlu memakainya di hari pertama, tetapi ini cara yang baik untuk menilai aturan setelah Anda menulis beberapa.

Sigma

Sigma adalah format aturan terbuka dan generik untuk kejadian log. Menurut pengelolanya, Sigma bagi file log sama seperti Snort bagi lalu lintas jaringan dan YARA bagi file. Anda menulis aturan sekali dalam YAML, lalu mengonversinya ke bahasa query SIEM Anda dengan tool resmi sigma-cli atau library pySigma. Repositori publik SigmaHQ berisi lebih dari 3.000 aturan, sehingga sangat baik untuk dibaca dan dipelajari.

Atomic Red Team

Atomic Red Team dari Red Canary adalah kumpulan tes kecil yang dipetakan ke ATT&CK. Anda menjalankan tes di lab, lalu memeriksa apakah aturan Anda menyala. Ini cara paling sederhana untuk beralih dari "sepertinya berhasil" ke "saya melihatnya berhasil." Jalankan tes ini hanya di sistem milik Anda yang memang boleh diuji, idealnya lab yang terisolasi.

Aturan pertama, dari awal sampai akhir

Berikut aturan Sigma kecil untuk satu perilaku: proses web server yang menjalankan whoami.exe. Penyerang yang berhasil mengeksekusi kode lewat aplikasi web sering mengecek akun apa yang sedang mereka pakai; web server hampir tidak punya alasan normal untuk melakukan itu.

# Aturan Sigma: whoami dijalankan oleh worker process IIS
title: Whoami Executed by IIS Worker Process
id: 00000000-0000-0000-0000-000000000000   # buat UUID asli untuk aturan Anda
status: experimental                        # aturan baru dimulai sebagai experimental
description: Detects whoami.exe launched by w3wp.exe, which can indicate a web shell.
references:
  - https://attack.mitre.org/techniques/T1033/
author: Nama Anda
date: 2026-11-10
tags:
  - attack.discovery
  - attack.t1033
logsource:
  category: process_creation    # mis. Sysmon Event ID 1 atau Windows 4688
  product: windows
detection:
  selection:
    ParentImage|endswith: '\w3wp.exe'
    Image|endswith: '\whoami.exe'
  condition: selection
falsepositives:
  - Administrators debugging an application pool (rare; confirm with the owner)
level: high

Untuk mengubahnya menjadi pencarian Splunk, Anda bisa memakai sigma-cli dengan backend Splunk dan pemetaan field Sysmon:

# Instal CLI dan backend Splunk, lalu konversi aturannya
pip install sigma-cli
sigma plugin install splunk
sigma convert -t splunk -p sysmon rules/whoami_iis.yml

Lalu uji: di server Windows lab yang menjalankan IIS dan Sysmon, munculkan perilakunya dengan tes Atomic Red Team yang sesuai atau halaman uji tidak berbahaya yang Anda kendalikan, pastikan alert menyala, lalu cari di data produksi 30 hari terakhir untuk melihat seberapa berisik aturannya. Catat juga batasannya. Penyerang bisa mengganti nama file atau memakai cara discovery lain, jadi aturan ini titik awal yang berguna, bukan cakupan lengkap untuk T1033.

Dokumentasikan setiap aturan dengan ADS

Framework terbuka Alerting and Detection Strategy (ADS) dari Palantir adalah template sederhana yang memaksa Anda memikirkan aturan secara matang sebelum dirilis. Bagian-bagiannya:

BagianYang dijawab
GoalPerilaku apa yang ingin dideteksi?
CategorizationTaktik dan teknik ATT&CK yang mana?
Strategy abstractBagaimana cara kerjanya, data apa yang dipakai, bagaimana noise dikurangi?
Technical contextApa yang perlu diketahui responder untuk memahami alert ini?
Blind spots and assumptionsApa yang bisa membuatnya tidak menyala, atau membuat penyerang lolos?
False positivesAktivitas wajar apa yang diketahui memicunya?
ValidationBagaimana memunculkan true positive untuk membuktikan aturan bekerja?
PrioritySeberapa mendesak alert ini, dan mengapa?
ResponseApa yang harus dilakukan analis saat alert menyala?

Saat mengisi bagian "blind spots" dan "validation", Anda sering menyadari bahwa sebuah aturan belum siap. Justru itu tujuannya.

Peta jalan untuk pemula

Rencana realistis bagi yang sudah punya dasar keamanan dan IT, belajar paruh waktu:

TahapFokusSelesai jika Anda bisa…
1. FondasiLogging Windows dan Linux (Sysmon, Windows Security event, auditd), log audit cloud, dasar jaringanMenjelaskan isi event pembuatan proses dan dari mana log Anda berasal
2. Bahasa querySatu bahasa SIEM secara mendalam (misalnya SPL atau KQL), plus dasar PythonMenjawab "host mana yang menjalankan proses ini minggu lalu?" tanpa membuka dokumentasi sintaks
3. Pengetahuan ancamanTaktik dan teknik ATT&CK; membaca aturan SigmaHQ untuk teknik yang relevanMenjelaskan bagaimana tiga teknik umum muncul di log
4. Membangun labLab kecil Windows dan Linux dengan Sysmon dan SIEM gratis atau trial; Atomic Red TeamMenjalankan tes dan menemukan jejaknya di SIEM
5. Menulis dan mengujiMenulis aturan Sigma, mengonversi, memvalidasi, dan mendokumentasikannya dengan ADSMenunjukkan lima aturan yang teruji dan terdokumentasi di repositori Git
6. OperasionalTuning, pelacakan cakupan, peer review, penilaian robustnessMenjelaskan alasan setiap aturan ada, seberapa berisik, dan apa yang terlewat

Repositori Git dari tahap 5 sekaligus menjadi portofolio. Lima aturan yang terdokumentasi dan teruji lebih banyak bercerita tentang kemampuan Anda daripada daftar tool di CV.

Kesalahan umum pemula

  • Menulis aturan untuk log yang tidak dimiliki. Periksa data lebih dulu.
  • Mengejar angka cakupan. Matriks ATT&CK yang penuh warna tidak berarti aturannya bekerja. Yang dihitung adalah aturan yang sudah diuji.
  • Hanya mencocokkan indikator. Daftar hash dan IP cepat basi. Pasangkan dengan aturan berbasis perilaku.
  • Tanpa panduan respons. Alert tanpa langkah lanjutan memperlambat analis yang menerimanya, sering kali pukul 3 pagi.
  • Tidak pernah memensiunkan aturan. Aturan berisik dan usang menghabiskan perhatian. Tinjau secara terjadwal.

Catatan untuk tim di Indonesia

Menurut UU Pelindungan Data Pribadi (UU PDP, UU No. 27 Tahun 2022), Pasal 46 mewajibkan pengendali data pribadi menyampaikan pemberitahuan tertulis kepada subjek data dan lembaga paling lambat 3 x 24 jam jika terjadi kegagalan pelindungan data pribadi. Anda tidak bisa melapor tentang hal yang tidak Anda ketahui, jadi deteksi yang teruji pada sistem yang menyimpan data pribadi adalah bagian praktis dari pemenuhan kewajiban itu.

Langkah berikutnya

  • Pilih tiga teknik ATT&CK yang relevan dengan lingkungan Anda, lalu periksa apakah log untuk melihatnya sudah dikumpulkan.
  • Baca aturan SigmaHQ untuk teknik tersebut dan konversi satu ke bahasa SIEM Anda.
  • Siapkan lab kecil, jalankan satu tes Atomic Red Team, dan tulis dokumen ADS pertama Anda.

Artikel berikutnya dalam seri ini akan membahas detection as code, perbandingan dasar query Splunk dan Microsoft Sentinel, serta script Python untuk otomasi keamanan. Jika log Anda berasal dari AWS, checklist keamanan AWS untuk startup kami membahas cara mengaktifkan CloudTrail dan GuardDuty lebih dulu. Lihat juga layanan keamanan kami.

Butuh bantuan menentukan apa yang perlu dideteksi lebih dulu, atau ingin aturan yang sudah Anda tulis ditinjau? Email Binjesoft dan kita bisa melihat sumber log serta prioritas Anda bersama. Lihat layanan kami untuk cara kerja kami.

Sumber: MITRE ATT&CK: Updates (v20, Oktober 2026) · SecurityWeek: ATT&CK v18 menambahkan Detection Strategies dan Analytics · David Bianco: The Pyramid of Pain · MITRE CTID: Summiting the Pyramid 2026 · SigmaHQ: repositori aturan Sigma · SigmaHQ: konvensi aturan · Red Canary: Atomic Red Team · Palantir: Alerting and Detection Strategy framework · UU No. 27 Tahun 2022, Pasal 46

Have a project in mind?

Tell us about it — we usually reply within one business day.

hello@binjesoft.com