Full Guide
Executive Summary
The word "better" is meaningless without a baseline, and "90% effective" is meaningless without a defined metric. The most common fatal flaw in practitioner-authored security papers is not a weak attack — it is an attack with no honest comparison point and no rigorous success measure. A reviewer cannot evaluate a claim like "our loader evades EDR" when there is nothing to evade relative to and no definition of what "evade" counts as.
This module teaches you to choose fair baselines (so your improvement is real, not an artifact of a weak comparison) and to define metrics — attack success rate, evasion rate, detection latency, ROC/AUC — that quantify your contribution in terms defenders and reviewers already trust.
The one-line mental model: A result is a difference from a baseline, measured by a pre-specified metric. No baseline, no metric — no result.
Learning Outcomes
By the end of this module you will be able to:
- Select fair, reproducible baselines that don't strawman the comparison.
- Define metrics for attack success, evasion, and cost.
- Avoid metric-gaming and base-rate fallacies.
- Pre-specify the comparison protocol before collecting data.
1. What Makes a Baseline Fair
A baseline is the thing your technique is measured against. The cardinal sin is the strawman baseline: comparing your sophisticated attack against a deliberately weak alternative to manufacture a large gap.
flowchart TD
Y["Your technique"] --> C{"Compared against?"}
C -->|✗ strawman| W["Unmodified malware<br/>from 2015, EDR off"]
C -->|✓ fair| S1["Current SOTA technique"]
C -->|✓ fair| S2["Naive-but-reasonable approach"]
C -->|✓ fair| S3["Ablation: your technique<br/>minus its key component"]
style W fill:#2a0c14,stroke:#ef233c,color:#fee2e2
style S1 fill:#0c2a22,stroke:#10e793,color:#d1fae5
style S3 fill:#1a230c,stroke:#fca311,color:#fef3c7Three baseline types carry weight: state-of-the-art (the best published technique you can reproduce), a reasonable naive approach (what a competent practitioner would try first), and an ablation (your technique with its key novel component removed — this isolates what actually causes your result, directly serving the internal validity from Module 09). The ablation is the most persuasive: it proves your idea matters, not just your engineering.
2. The Core Metric Families
Security evaluations draw from a small, stable vocabulary of metrics. Use the field's terms — inventing your own metric forces reviewers to learn it and suspect it.
| Metric | Definition | What it captures | Watch out for |
|---|---|---|---|
| ASR (Attack Success Rate) | successes / attempts | Raw effectiveness | Define "success" precisely |
| Evasion rate | undetected / total runs | Stealth | "Undetected" = construct trap (Mod 09) |
| TPR / FPR | detector's true/false positive rate | Defender quality | Always report both |
| Time-to-detect | latency from action to alert | Defender speed | Right-censoring (never detected) |
| ROC / AUC | TPR-vs-FPR curve, area under it | Threshold-independent quality | Needs score outputs, not just labels |
| Cost | time, $, detections-incurred | Attacker economics | Often the real contribution |
A subtle point: an attacker paper and a defender paper measure the same events with dual metrics. Your "evasion rate" is the defender's "false negative rate." Reporting your result in both framings signals maturity and lets both communities cite you.
3. The Base-Rate Trap
The most dangerous statistical illusion in detection research is ignoring the base rate. A detector that is "99% accurate" can be nearly useless if the event it hunts is rare.
SCENARIO: 1,000,000 events/day, 100 are truly malicious (base rate 0.0001)Detector: 99% TPR, 1% FPR — sounds great! True positives : 99 (caught 99 of 100 attacks) False positives : 9,999 (1% of 999,900 benign events) ─────────────────────────────────────────────── Precision = 99 / (99 + 9,999) = 0.98% The SOC drowns: 99% of alerts are false.This is why accuracy is a near-useless metric for rare-event detection, and why reviewers expect precision/recall or ROC/AUC instead. If your attack paper claims "the EDR misses us," you must report against the EDR's operating base rate — a detector tuned to a livable FPR may catch far less than its headline TPR suggests, which can strengthen your attack claim if argued correctly.
4. Metric-Gaming and How Reviewers Catch It
Every metric can be gamed; experienced reviewers know the moves and look for them. Knowing them keeps you honest and inoculates your paper.
flowchart LR
G1["Cherry-pick<br/>best run"] --> D1["Report n, all runs,<br/>distribution"]
G2["Tune threshold<br/>post-hoc"] --> D2["Pre-register threshold;<br/>report full ROC"]
G3["Favorable<br/>baseline config"] --> D3["Baseline at its<br/>documented best"]
G4["Pooled %<br/>hides variance"] --> D4["Per-product + CIs"]
style G1 fill:#2a0c14,stroke:#ef233c,color:#fee2e2
style D1 fill:#0c2a22,stroke:#10e793,color:#d1fae5The antidotes are all forms of pre-commitment and full disclosure: fix your success threshold before you see results, report all trials (not the best), configure baselines at their best, and never let a single pooled percentage hide per-condition variance. Each antidote is also a sentence you can put in your methodology that earns reviewer trust.
5. Pre-Specifying the Comparison Protocol
The defense against accidental gaming is to write the comparison protocol before collecting data — what you'll compare, how, how many trials, and what counts as success. This is the lightweight cousin of pre-registration (Module 04).
COMPARISON PROTOCOL (frozen before data collection) Technique under test : our cross-class loader Baselines : (a) SOTA = Laurent'25 loader (b) naive = vanilla shellcode (c) ablation = ours minus syscall layer Targets : 9 EDR products, vendor-default policy Trials : n=30 per (technique x product) Success metric : no block AND no high-sev alert AND no detection-relevant log (verified SOC-side) Primary statistic : per-product evasion rate + 95% CI Decision rule : "improves on SOTA" iff CI lower bound > SOTA meanThis single frozen block pre-empts a dozen reviewer objections at once. It fixes the baseline (no strawman), the metric (construct-valid), the sample size (conclusion validity), and the decision rule (no post-hoc goalpost-moving). Writing it before the experiment is what separates an experiment from a demo.
Step-by-Step Practical Exercise
Goal: Choose baselines and define a frozen comparison protocol with construct-valid metrics for your study.
Time: ~70 minutes. You need: your study idea and your Track 2 corpus (for SOTA baselines).
Step 1 — Pick three baselines (15 min). From §1, name your SOTA baseline (a reproducible prior technique), a naive baseline, and an ablation (your technique minus its novel core). If you can't define the ablation, you may not yet know what your novelty is — that's a useful discovery.
Step 2 — Define your primary metric precisely (15 min). Choose from §2 and write its exact operational definition, pushing "success"/"evasion" to construct-strong (Module 09). State the unit and how you'll observe it.
Step 3 — Check the base rate (10 min). If your metric involves detection, estimate the operating base rate and confirm you're reporting precision/recall or ROC, not raw accuracy (§3).
Step 4 — Game-proof it (10 min). Run your plan against the four gaming moves in §4. For each, write the antidote sentence you'll include in the methodology.
Step 5 — Freeze the comparison protocol (20 min). Fill the §5 template completely for your study, including the decision rule. The decision rule must be a falsifiable statement decided before you see any numbers.
Deliverable: three named baselines, a construct-valid metric definition, a base-rate sanity check, and a frozen comparison protocol with a decision rule. Carry this straight into your hypothesis pre-registration (Module 04) and methodology prose (Module 15).
Where to go next
- Module 09 — Documenting Threats to Validity supplies the construct- and conclusion-validity lens your metric definitions must pass.
- Module 19 — Quantifying Evasion Efficacy and Attack Impact is where these metrics get their confidence intervals and significance tests.
Related reading on the blog: "Your 99% Accurate Detector Is Useless: A Base-Rate Story" and "The Ablation That Proved My Attack Actually Worked".