Most engineers think…
Most people think a SIEM 'just shows all the alerts' and that an offense is simply 'a log that looked bad'. That model falls apart the moment an interviewer asks how the offense was built or why it ranked where it did.
In QRadar there is a clear pipeline. A DSM normalizes a raw log into an event with a QID (which carries the event name, severity and category). The Custom Rule Engine (CRE) runs rules — sets of tests, often reusing building blocks — and a rule's response can create or contribute to an offense. The offense is indexed by an offense source and ranked by magnitude, which QRadar derives from relevance, credibility and severity. Knowing that chain is what lets you explain, tune and triage instead of just staring at a queue.
① From raw log to normalized event — the QID recap
Nothing in QRadar reasons about raw syslog text directly. A DSM (Device Support Module) parses each incoming log and normalizes it into a structured event with common fields — source IP, destination IP, username, event count and more.
The key piece is the QID (QRadar Identifier). The DSM maps each device's event ID and category to a QID record, and that QID is what carries the human-readable event name, a severity, and a low-level category (which rolls up into one of QRadar's high-level categories). So 'an SSH login failure' from any vendor lands on a consistent QID and category — that normalization is exactly what makes one rule work across many log sources.
If events arrive as Unknown or in the wrong category, you fix the event mapping (or QID map) — because rules and magnitude both lean on that category, not on the raw text.
Where does a normalized QRadar event get its name, severity and category?
② Building rules in the Custom Rule Engine (CRE)
The Custom Rule Engine (CRE) is where detection logic lives. A rule is a collection of tests that, when all matched, triggers a rule response. Tests can check events, flows, a sequence over time, or even existing offenses.
Building blocks vs rules
A building block (BB) uses the same tests as a rule but has no action of its own — it just defines a reusable condition, like 'is an admin account' or 'is in the DMZ IP set'. Rules then reference building blocks so logic stays clean and consistent. Note the order: building blocks are evaluated before rules.
When a rule's tests are satisfied, its rule response decides what happens: dispatch a new event, annotate, change severity/credibility/relevance, email or notify, add to a reference set, and — crucially — create or contribute to an offense. That last response is what turns detection logic into something an analyst sees.
The QRadar Identifier a DSM maps an event to. It carries the event name, severity and low-level category that rules and magnitude rely on.
A reusable set of tests with no action of its own — e.g. 'is an admin account'. Evaluated before rules so they can reference it.
A correlated, prioritized record created by a rule response. Indexed by an offense source (often source IP); later events contribute to it.
A 0–10 ranking blended from relevance, credibility and severity, plus event counts, asset weight, age and categories.
In an interview, say you keep logic DRY by putting reusable conditions ('admin accounts', 'DMZ ranges') in building blocks and referencing them from many rules. Remember they evaluate before rules, so a well-built BB makes every rule that uses it cleaner and faster to tune.
Which statement about building blocks is correct?
③ How offenses are built — and what drives magnitude
An offense is QRadar's prioritized, correlated record of suspicious activity. When a rule with a 'create offense' response matches, QRadar opens an offense indexed by an offense source — usually the source IP, but it can be username, destination IP, or another field you choose. Later matching events contribute to the same offense instead of spawning new ones, so the count grows rather than the queue.
Magnitude = relevance + credibility + severity
QRadar ranks offenses by magnitude, a single 0–10 score it uses to decide what to investigate first. Magnitude is derived from three inputs: relevance (how much it matters to your network — driven by asset weight and importance), credibility (how trustworthy the source is — set per log source and refined by corroboration), and severity (the threat level relative to the target). QRadar also factors in the number of events/flows, the number of log sources, the offense's age, asset vulnerabilities and the event categories.
The interview line: magnitude is not the severity of one event. It is a blended score so a noisy-but-harmless alert sinks and a credible threat against a critical asset floats to the top.
Magnitude is not the severity of a single event. It is a blended 0–10 score from relevance, credibility and severity, plus event counts, asset weight, age and categories. Saying 'it's just severity' signals you don't understand offense prioritization.
▶ Watch a brute-force login become a ranked offense
How one attack walks the QRadar pipeline end-to-end. Press Play for the healthy path, then Break it to see the classic failure.
A noisy informational alert keeps firing against an unimportant test server. Why does its offense stay low priority?
④ Investigating — AQL searches and the UBA app
Triage starts at the offense summary: the offense source, the contributing rules, top events, and the source/destination involved. To go deeper you search the Ariel database with AQL (Ariel Query Language), QRadar's SQL-like language for events and flows.
AQL in one line
A query selects fields, filters and time-bounds: SELECT sourceip, username, eventcount FROM events WHERE username = 'rkumar' LAST 24 HOURS. You refine with WHERE, GROUP BY, HAVING, ORDER BY, LIMIT and LAST. AQL is how you confirm the story behind an offense and feed tuning back into rules.
For behaviour-based detection, the UBA / UEBA app sits on top. It consumes QRadar data, assigns risk to users and entities across many use cases, unifies a person's identities, and (with the Machine Learning app) learns each user's normal baseline to flag anomalies like impossible travel or first-time admin use. UBA doesn't replace rules and offenses — it adds a per-user risk lens on top of them.
Priya, a SOC analyst at a Pune fintech, faces this
A high-magnitude offense fires for 'multiple failed logins then success' on an admin account, but Priya isn't sure if it's a real attack or a fat-fingered admin.
The rule correctly chained failures + a success from one source IP and created an offense indexed by source IP; magnitude is high because the target is a tagged critical asset.
Open the offense summary to see the contributing rule and offense source, then run AQL to pull the full login timeline for that user and source IP.
Offenses ▸ Offense summary ▸ contributing rules, then Log Activity ▸ AQLAQL: SELECT sourceip, username, eventcount FROM events WHERE username = 'admin_rk' LAST 24 HOURS — confirm whether the success came from a known host; check UBA for the user's risk and any impossible-travel flag.
If the source IP and geo match the admin's normal baseline in UBA and the timeline shows a legitimate reset, close as benign and tune the rule's building block to exclude that jump host.
Never close a QRadar offense on 'looks fine'. Run an AQL query against the Ariel database to pull the exact events for that user/IP and time window. The query result — not a feeling — is what justifies escalate or close.
You want every login event for user 'rkumar' in the last day to investigate an offense. What do you use?
🤖 Ask the AI Tutor
Tap any question — instant, scoped to this lesson. No login, no waiting.
Pre-curated from vendor docs + community Q&A, scoped to this lesson. For a live prod issue, paste your export into chat.techclick.in.
📝 Wrap-up assessment — six more
You've answered 4 inline. Six left. 70% (7 of 10) marks the lesson complete on your profile. Tap Submit all answers at the end.
🧠 In your own words
Type one line: walk me from a raw failed-login log to a ranked QRadar offense. Then compare with the expert version.
🗣 Teach a friend
Best way to lock it in — explain it in one line to a teammate. Tap to generate a paste-ready summary.
📖 Glossary
- DSM (Device Support Module)
- Parses a device's raw logs and normalizes them into QRadar events, mapping each to a QID with a name, severity and category.
- QID (QRadar Identifier)
- The record an event is mapped to; carries the human-readable event name, a severity and a low-level category.
- Event mapping / QID map
- The lookup that ties a device's event ID and category to a QID; fixing it corrects Unknown or mis-categorized events.
- Custom Rule Engine (CRE)
- The component that evaluates rules and building blocks against events and flows and triggers rule responses.
- Rule
- A collection of tests that, when matched, fires a rule response — e.g. create an offense, notify, or annotate.
- Building block (BB)
- A reusable set of tests with no action of its own, evaluated before rules; rules reference it to keep logic clean.
- Offense
- A correlated, prioritized record created by a rule response, indexed by an offense source; later events contribute to it.
- Magnitude
- A 0–10 ranking of an offense blended from relevance, credibility and severity, plus counts, asset weight, age and categories.
- AQL (Ariel Query Language)
- QRadar's SQL-like language for searching the Ariel database of events and flows using SELECT, WHERE, LAST and more.
- UBA / UEBA app
- An app that layers user and entity risk on QRadar data, with ML-learned baselines to flag anomalous behaviour.
📚 Sources
- IBM Documentation — Rules and offenses (QRadar SIEM, tuning guide). ibm.com/docs/en/qsip — rules
- IBM Documentation — Custom rules, building blocks and rule responses (Custom Rule Engine). ibm.com/docs/en/qsip
- IBM Documentation — Offense magnitude: relevance, credibility and severity. ibm.com/docs/en/qsip — offense magnitude
- IBM Documentation — Ariel Query Language Guide (AQL query structure, SELECT/WHERE/LAST). ibm.com/docs/en/SSKMKU/pdf/b_qradar_aql.pdf
- IBM Documentation — Event mapping and QID map (DSM normalization, categories). ibm.com/docs/en/qradar-on-cloud — event map
- IBM Documentation — QRadar User Entity Behavior Analytics (UEBA) and Machine Learning Analytics apps. ibm.com/docs/en/qradar-common
What's next?
Want the foundation under all of this? The first QRadar lesson maps the architecture — Event/Flow Collectors and Processors, the Console, the Ariel database and DSMs — so you can see where rules, offenses and AQL actually run.