Full Guide
Executive Summary
The single most common way a literature review silently fails is a bad search string. Miss the one seminal paper that named your technique three years before you did, and a reviewer will find it in thirty seconds and reject you for it. Boolean query engineering is the discipline of building a search that is simultaneously high-recall (it finds almost everything relevant) and high-precision (it is not drowned in noise) — and then proving its coverage against a seed set of papers you already know must appear.
This module treats the query as an engineering artifact: synonym rings, controlled vocabularies, proximity and field operators, and per-database porting. The goal is a query you can defend line-by-line in your methodology.
The one-line mental model: Your corpus is a function of your query. Engineer the query like code — with version control, test cases, and a coverage metric.
Learning Outcomes
By the end of this module you will be able to:
- Build synonym rings and controlled vocabularies for a security concept.
- Tune the recall/precision trade-off with wildcards, proximity, and field tags.
- Port one logical query across IEEE Xplore, ACM DL, Scopus, and arXiv syntaxes.
- Validate coverage with a known-paper seed set and a recall metric.
1. Recall vs. Precision: The Core Trade-off
Every query lives on a curve. Broaden it (more synonyms, fewer constraints) and recall rises but precision falls — you read more junk. Tighten it and precision rises but you start missing relevant work. For an SLR, recall is king: missing a paper is a fatal credibility error, while reading extra junk only costs you time.
HIGH RECALL ▲ "evasion" │ broad, noisy alone ● │ ● "(evasion OR bypass OR │ unhook*) AND EDR" │ ● ← sweet spot for SLR ───────────────────┼───────────────────► HIGH PRECISION │ ● "userland ntdll unhooking │ EDR 2023" (too tight) │ LOW RECALLThe sweet spot for a systematic review sits high on the recall axis and accepts mediocre precision — because a human screen (Module 06) cheaply removes false positives, but nothing recovers a paper the query never returned.
2. Synonym Rings and Controlled Vocabulary
A concept in security has many surface forms. Before writing any Boolean, decompose your RQ into concept blocks, and for each block list every synonym, acronym, British/American spelling, and adjacent term.
flowchart TD
RQ["RQ: userland EDR evasion"] --> B1["BLOCK 1: technique"]
RQ --> B2["BLOCK 2: target"]
RQ --> B3["BLOCK 3: outcome"]
B1 --> S1["unhook* OR 'API hooking' OR<br/>'direct syscall*' OR 'inline hook' OR<br/>'AMSI bypass' OR 'ETW patch*'"]
B2 --> S2["EDR OR 'endpoint detection' OR<br/>XDR OR 'endpoint protection' OR<br/>antivirus OR 'security product'"]
B3 --> S3["evasion OR bypass OR<br/>'detection rate' OR undetect*"]
style RQ fill:#0c2a22,stroke:#10e793,color:#d1fae5
style B1 fill:#1a230c,stroke:#fca311,color:#fef3c7The final query is (BLOCK1) AND (BLOCK2) AND (BLOCK3) — terms inside a block are OR-ed (synonyms), blocks are AND-ed (all concepts must co-occur). This block-AND-synonym-OR structure is the workhorse pattern of professional literature search.
3. Operators: Wildcards, Proximity, Fields
Raw OR/AND is blunt. Three operator families sharpen it:
| Operator | Syntax (varies by DB) | What it does | When to use |
|---|---|---|---|
| Wildcard | unhook* → unhook, unhooking, unhooked | Captures word variants | Verbs/plurals you can't enumerate |
| Proximity | "syscall NEAR/3 evasion" | Terms within N words | Phrases that drift apart in prose |
| Field tag | Abstract:("EDR") Title:(...) | Restrict to a field | Boost precision without losing topical hits |
| Phrase | "direct syscall" | Exact adjacency | Multi-word technical terms |
A precision-tuning pattern: keep the broad synonym OR for the technique block, but restrict the outcome block to title/abstract so the paper is actually about evasion, not merely mentioning it once in related work.
Title-Abstr:( evasion OR bypass OR undetect* ) AND ( unhook* OR "direct syscall*" OR "AMSI bypass" ) AND ( EDR OR "endpoint detection" OR XDR )4. Porting Across Databases
There is no universal Boolean dialect. The same logical query must be re-expressed per database — and silently failing to port a field tag is a classic way to under-search one source.
| Feature | IEEE Xplore | ACM DL | Scopus | arXiv |
|---|---|---|---|---|
| Field: abstract | "Abstract":x | Abstract:(x) | ABS(x) | abs:x |
| Wildcard | * (truncation) | * | * | limited |
| Proximity | NEAR/n | /n | W/n | none |
| Boolean case | UPPER | UPPER | UPPER | AND/OR/ANDNOT |
| Phrase | "..." | "..." | "..." | "..." |
Maintain a query log: a small table mapping each database to the exact string you ran, the date, and the hit count. This log is part of your reproducible methodology — a reviewer (or your future self) can re-run it.
sequenceDiagram
participant Y as You
participant L as Query Log
participant DB as Databases
Y->>L: write master logical query
loop each database
Y->>DB: port + run dialect-specific string
DB-->>Y: hit count + export
Y->>L: record string, date, count
end
Y->>Y: de-duplicate exports by DOI5. Validating Coverage with a Seed Set
How do you know your query is good before you've read everything? Use a seed set: 8–12 papers you already know are squarely in scope (from prior reading, from a known survey's bibliography). A correct query must return all of them. The fraction it returns is your recall estimate.
SEED SET (12 must-find papers) QUERY RETURNS? Laurent et al. 2025 ............... ✓ Shimada 2024 ...................... ✓ Fischer 2023 ...................... ✗ ← uses "telemetry tampering", Ortiz et al. 2024 ................. ✓ not "evasion" — add synonym! ... (8 more) ...................... ✓✓✓✓✓✓✓✓ ────────────────────────────────────────── Seed recall: 11 / 12 = 0.92Every miss is diagnostic: read why the query failed that paper (a missing synonym, a too-tight field restriction) and patch the synonym ring. Iterate until seed recall is 100%, then freeze the query. Reporting seed recall in your methodology is a strong, concrete credibility signal few practitioners bother to provide.
Step-by-Step Practical Exercise
Goal: Engineer, port, and validate a real search query for your topic — ending with a frozen, recall-100% query and a query log.
Time: ~70 minutes. You need: a topic, access to two databases, and 8–12 known-relevant papers as a seed set.
Step 1 — Decompose into concept blocks (10 min). Write your RQ, then draw the three-block synonym tree from §2. Aim for 4–8 synonyms per block.
Step 2 — Assemble the master query (10 min). Combine blocks as (B1) AND (B2) AND (B3). Add wildcards for verb variants and one field restriction on your most "topical" block.
Step 3 — Build the seed set (10 min). List 8–12 papers you are certain belong. Don't peek at whether your query finds them yet.
Step 4 — Run and measure recall (20 min). Run the query in one database. Check each seed paper: returned or not? Compute seed recall. For every miss, identify the missing term and patch the synonym ring. Re-run until recall = 100%.
Step 5 — Port and log (20 min). Re-express the frozen query in a second database's dialect using the §4 table. Record both strings, dates, and hit counts in a query log table.
Deliverable: a three-block synonym tree, a frozen master query at 100% seed recall, and a two-row query log. This query is the engine of the SLR you protocol-designed in Module 06.
Where to go next
- Module 06 — Designing a Systematic Literature Review (SLR) Protocol is where this query plugs in as the "Search" stage.
- Module 08 — Mapping the Landscape: Creating Attack & Defense Taxonomies organizes the corpus this query produces.
Related reading on the blog: "Boolean for Hackers: Stop Missing the Paper That Scoops You" and "A Query Log Is a Reproducibility Artifact".