Scenario D · Cybersecurity

Investigating a Simulated Wazuh Security Alert

An analyst on shift works a brute-force alert from the alert to a closed, blocked or escalated case. The scenario shows an incident runbook with decision points, an explanation of the security event behind the alert, an escalation matrix, and annotated console screenshots. All data is simulated, with no real addresses or credentials.

Demonstration scenario. Norrbyn Utilities and a SOC console fed by Wazuh are examples created for this portfolio, as are every person, address and figure in these documents. They aren't operating instructions or vendor documentation.

Skills shown
Incident runbook, Security event explanation, Investigation workflow, Decision points, Escalation guidance, Screenshots
Documents
Incident runbook · Security event explanation · Escalation matrix

Made from It in the Studio

The Documents

Incident runbook

Investigate a Wazuh Alert: SSH Brute-Force Attempt

ID RB-SEC-012 · version 1.6 · Approved · owner: Security operations

Runbook for the analyst on shift at Norrbyn Utilities when Wazuh raises rule 5763, sshd: brute force trying to get access to the system. The runbook takes you from the alert to one of three outcomes: a closed false positive, a blocked source, or an escalated incident. Work through it in order and record each decision in the case. Fictional sample written for this portfolio: the hosts, addresses, and people are simulated, and the data in the alert is made up.

Before You Start

  • The alert is assigned to you in the SOC console, and you have opened a case for it.
  • You have read access to the Wazuh dashboard and the firewall's block list, and write access to the case.
  • You know the escalation matrix in SEC-REF-014 and have the on-call rota open.

Important: Don't sign in to the affected host over SSH while you investigate. A successful sign-in from your own address during an attack confuses the timeline, and the host may already be compromised. Use the Wazuh agent's data and the console's remote shell only.

Triage, in the First Ten Minutes

  1. Open the alert and note the fields that matter: agent.name, data.srcip, data.dstuser, rule.level, rule.firedtimes, and the timestamp of the first and last event in the group.
  2. Check whether the source address is internal. An address in the site's ranges points to a misconfigured job or a compromised workstation, not an internet attacker. Record which.
  3. Check whether the target user exists on the host. Rule 5763 fires for failed passwords on users that exist; rule 5710 fires for users that don't. Many attempts against users that exist, such as deploy or admin, deserve more attention than a dictionary of random names.
  4. Search the last 24 hours for rule 5715, sshd: authentication success, from the same source address to any host. A success after a run of failures changes the case from an attempt to a likely compromise.
  5. Set the case severity from the table below.
What you foundSeverity
External source, no success, target users don't existLow
External source, no success, target users existMedium
Internal source, any outcomeMedium, until the owner of the source is known
Any success from the attacking sourceHigh

Investigate

A Failed Attempt from Outside

  1. Look up the source address in the threat-intelligence list in the SOC console. A known scanner confirms a low-severity case.
  2. Check rule.firedtimes and the duration of the burst. Hundreds of attempts over seconds is a tool; a few attempts an hour apart may be a person who forgot a password, if the address belongs to a staff VPN range.
  3. Check whether the host should accept SSH from the internet at all. Most of Norrbyn Utilities's hosts shouldn't: an open port 22 is a finding of its own, even when the attempt failed.

A Failed Attempt from Inside

  1. Find the owner of the source address in the asset inventory.
  2. Ask the owner, through the ticketing system and not by chat, whether a job or a person tried to reach the host. Record the answer.
  3. If nobody owns the attempt, treat the source workstation as compromised: raise the severity to High and escalate.

A Successful Sign-In from the Attacking Source

  1. Raise the severity to High and escalate before you do anything else. The incident lead takes over coordination; you keep investigating.
  2. In the Wazuh dashboard, list every event from the host since the sign-in: new processes, new users, changed files under /etc, and outbound connections.
  3. Don't change anything on the host yet. Containment is the incident lead's decision, because isolating a production host has consequences they can weigh and you may not know.

Contain

Only for a Medium or High case, and only with the decision recorded in the case.

  1. Block the source address at the perimeter firewall for 24 hours. Use the Temporary blocks list, which expires entries on its own.
  2. For a successful sign-in, ask the incident lead whether to isolate the host. If yes, move it to the quarantine network from the firewall console. Don't shut it down: memory and running processes are evidence.
  3. Lock the targeted accounts on the host until the investigation ends. For root, confirm that console access still works before you lock remote access.
  4. If a key or password may be compromised, rotate it and record where else it was used.

Escalate

Escalate according to SEC-REF-014. In short: a High case goes to the incident lead on call within fifteen minutes of the finding that raised it, and a Medium case goes into the daily SOC review. When you escalate, give the case number, the severity, the finding that set it, and what you have already done.

Close the Case

  1. Record the outcome: false positive, blocked, or escalated, with the evidence for it.
  2. For a false positive that recurs, such as a monitoring job that uses a wrong password, open a change request to fix the job. Don't silence the rule.
  3. Add the source address to the watch list for thirty days, so that a return is flagged at once.

Check That It Worked

The case shows a severity, a decision at each step, an outcome, and the time of each action. No new events for rule 5763 from the source address appear after the block, and the watch list contains the address. For an escalated case, the incident lead has acknowledged it in the case within fifteen minutes.

Download the Markdown

Security event explanation

What the Alert Means: SSH Authentication Failures in Wazuh

ID SEC-EXP-013 · version 1.2 · Approved · owner: Security operations

Wazuh raises an alert when it recognises a pattern in the logs it collects. For SSH, the pattern starts with one line that the sshd service writes for every failed sign-in. If the failures keep coming, it ends with a brute-force rule at level 10. Knowing which rule fired, and why, tells you how much of the alert is already analysis and how much is left for you. Fictional sample written for this portfolio, with simulated data.

The Log Line Behind the Alert

Every failed SSH sign-in leaves a line like this one in the host's authentication log.

Oct 20 03:14:07 web-01 sshd[18422]: Failed password for deploy from 203.0.113.45 port 51822 ssh2

The Wazuh agent on the host forwards the line to the manager. A decoder splits it into fields: the program sshd, the user deploy, the source address 203.0.113.45, and the port. The rules then match on those fields, not on the raw text.

The Rules, from One Event to a Pattern

RuleLevelFires whenWhat it tells you
57165One failed password for a user that exists.Somebody, or something, used a wrong password once.
57105One attempt to sign in as a user that doesn't exist.A guess, often from a list of common names.
576310Eight or more events of rule 5716 from one source within two minutes.A sustained attempt on accounts that exist: the alert this runbook family is about.
571210Eight or more events of rule 5710 from one source within two minutes.A sustained attempt with guessed names.
57153One successful sign-in.Normal on its own, and decisive right after 5763 or 5712 from the same source.

The thresholds are the defaults in the ruleset that ships with Wazuh. Your deployment may tune them. Check the rule's definition in the dashboard before you rely on a number from this page.

Why the Level Matters

Wazuh levels run from 0 to 15. The SOC's alert policy sends level 10 and above to the console at once, keeps 5 to 9 for the daily review, and stores the rest for searching. That is why you see one alert for the brute-force rule and not three hundred for each failed password. The single events are there in the data, and the rule has already counted them for you.

What the Alert Doesn't Tell You

The alert says that failures came in quickly from one address. It doesn't say whether any attempt succeeded, or whether the address is one of ours. It doesn't say whether the host should be reachable from that address at all, or whether the same source is trying other hosts. Those four questions are the investigation, and the runbook asks them in that order.

The Attacker's Technique

In the MITRE ATT&CK framework, repeated password attempts are T1110, Brute Force. The sub-technique is T1110.001, Password Guessing, when the attacker tries many passwords against known users. It is T1110.003, Password Spraying, when the attacker tries a few common passwords against many users. The ruleset tags rule 5763 with T1110, which is how the alert appears under that technique on the dashboard's MITRE view.

Common False Positives

  • A monitoring or backup job with an expired password, retrying on a schedule. The source is internal and the timing is regular.
  • A developer's script with the wrong key, falling back to passwords. The target user is the developer's own.
  • A load balancer's health check against port 22. The attempts have no user at all and show up under a different rule.

Each one is fixed at the source. Silencing the rule for an address hides the next real attempt from that address.

Download the Markdown

Escalation matrix

Escalation Matrix for Security Cases

ID SEC-REF-014 · version 2.1 · Approved · owner: Security operations

Who the analyst on shift tells, how quickly, and through which channel, for each severity of case at Norrbyn Utilities. The matrix applies to every case the SOC opens, whatever raised it. Fictional sample written for this portfolio: the roles are real kinds of roles, and the people behind them aren't named.

Severities

SeverityDefinitionExamples
LowAn attempt that failed, from outside, against something that isn't exposed. No sign of success, no internal source.A port scan. A brute-force attempt against users that don't exist.
MediumAn attempt with a chance of success, or anything from an internal source until it's explained.A brute-force attempt against accounts that exist. Malware blocked on a workstation. An internal host probing another.
HighEvidence that an attacker got in, or that data left.A successful sign-in from an attacking source. Ransomware activity. Credentials found in a public place.
CriticalHigh, and the safety of people or the supply of water or power is affected or threatened.Access to a control-system network. A compromised engineering workstation that can reach field devices.

Who to Tell, and When

The clock starts at the finding that set the severity, not at the alert.

SeverityTellWithinChannel
LowNobody now. Summarise in the shift handover.End of shiftShift log
MediumThe SOC lead, in the daily review. If found at night, the SOC lead by message.Next daily review, or one hour at nightCase comment with the Review tag; the SOC channel at night
HighThe incident lead on call.Fifteen minutesPhone call from the on-call rota, then the case number by message
CriticalThe incident lead on call, then the operations duty manager.Fifteen minutes for bothPhone calls. Don't rely on messages at this severity.

If the incident lead doesn't answer within ten minutes, call the next person on the rota. Record every call you make in the case, answered or not.

What to Have Ready When You Call

  1. The case number.
  2. The severity and the finding that set it, in one sentence.
  3. The hosts and accounts involved.
  4. What you have already done, including any block.
  5. What you want decided, such as isolating a host, locking an account, or calling someone else in.

Who Decides What

DecisionWho
Block an external address for 24 hoursThe analyst on shift
Block an internal addressThe SOC lead
Isolate a hostThe incident lead
Lock a privileged accountThe incident lead
Declare a security incidentThe incident lead
Involve the operations duty managerThe incident lead
Inform the regulator or the policeThe head of security, with legal counsel
Tell customers or the publicCommunications, on the head of security's request

Handover

A High or Critical case never changes hands without a conversation. At the end of a shift, the analyst walks the next analyst through the case timeline, and both add a handover comment. The incident lead stays the same until they hand over themselves.

Related Documents

  • RB-SEC-012: Investigate a Wazuh alert: SSH brute-force attempt.
  • SEC-EXP-013: What the alert means: SSH authentication failures in Wazuh.

Download the Markdown