OWASP Top 10 for SOC Analysts: Web Attack Detection and Investigation with Wazuh

This guide explains the OWASP Top 10 for SOC analysts from a detection and investigation point of view. You will see how each risk in the OWASP Top 10:2025 appears in web server and application logs, how to build web attack detection with Wazuh SIEM, and how to investigate a suspicious web request from the first alert to incident closure.

The OWASP Top 10, published by OWASP (Open Worldwide Application Security Project), is the most widely used list of web application security risks. Developers use it to build safer applications. For a SOC, it is a shared language for detection and incident handling: it tells analysts which web attacks to expect, which logs are needed to see them, and how to explain an incident clearly to developers and managers. This guide covers all ten categories of the 2025 edition: A01 Broken Access Control, A02 Security Misconfiguration, A03 Software Supply Chain Failures, A04 Cryptographic Failures, A05 Injection, A06 Insecure Design, A07 Authentication Failures, A08 Software or Data Integrity Failures, A09 Security Logging and Alerting Failures and A10 Mishandling of Exceptional Conditions.

You will learn the web and logging fundamentals every analyst needs, how to tell overlapping categories apart, and how to triage common web security alerts. A complete Wazuh investigation then shows each step in practice: correlation, impact assessment, incident response and closure.

Each category also has its own detailed article with attack examples, built in and custom Wazuh detection rules, dashboard queries, a hypothetical SOC investigation scenario, response steps and prevention advice. Links to all ten articles are in the category summary section.

Table of Contents

  1. Web Attack Fundamentals for SOC Analysts
  2. OWASP Top 10:2025 Categories at a Glance
  3. How to Tell Similar OWASP Categories Apart
  4. Complete SOC Investigation Workflow for a Suspicious Web Request
  5. Triage Guide for Common Web Security Alerts
  6. OWASP Top 10:2025 Quick Reference
  7. Glossary of Key Terms
  8. Frequently Asked Questions
  9. Conclusion
  10. References and Further Reading

Web Attack Fundamentals for SOC Analysts

Vulnerability, Attack Attempt, Exploitation and Incident

These four terms are not the same, and mixing them up leads to wrong severity decisions.

  • Vulnerability
    • Simple meaning: A weakness exists in the application. Nobody has to be attacking.
    • Example: The invoice API does not check who owns invoice 10422.
    • Who usually confirms it: Application security team, penetration testers, developers
  • Attack attempt
    • Simple meaning: Someone tried to use a weakness. It may have failed.
    • Example: An IP sends GET /api/invoices/10422 while logged in as another customer and gets 403 Forbidden.
    • Who usually confirms it: SOC analyst from logs
  • Successful exploitation
    • Simple meaning: The attempt worked. The attacker got something they should not have.
    • Example: The same request returns 200 OK with 1834 bytes of another customer’s invoice data.
    • Who usually confirms it: SOC analyst with application team, using response evidence
  • Security incident
    • Simple meaning: An event that harms or threatens confidentiality, integrity or availability and needs a response under policy.
    • Example: 3,000 invoices were downloaded by one account in 10 minutes. Customer data is exposed.
    • Who usually confirms it: Incident response lead, based on SOC findings

Rule to remember: A Wazuh alert proves that a log matched a pattern. It does not prove the vulnerability exists, and it does not prove exploitation succeeded. The analyst proves those things by investigation.

HTTP Basics for Security Analysts

HTTP (Hypertext Transfer Protocol) is the language browsers and apps use to talk to web servers. HTTPS is HTTP inside an encrypted TLS (Transport Layer Security) connection.

A request has these parts:

POST /api/orders/7781/cancel?source=mobile HTTP/1.1
Host: shop.example.com
Cookie: session=8f2c1e7b94d04a6e9c31f5a2d7e8b610
Content-Type: application/json
User-Agent: Mozilla/5.0

{"reason": "duplicate"}
  1. Method: the action. GET reads, POST creates or submits, PUT replaces, PATCH updates, DELETE removes.
  2. Path: the resource, here /api/orders/7781/cancel.
  3. Query string: parameters after ?, here source=mobile.
  4. Headers: extra information such as the Cookie that identifies the logged in session.
  5. Body: data sent with POST, PUT or PATCH, often JSON.

Status codes in the response tell you what the server did:

  • 200
    • Meaning: OK, the request worked
    • Why a SOC analyst cares: An attack request that returns 200 needs closer review
  • 301, 302
    • Meaning: Redirect
    • Why a SOC analyst cares: Often a redirect to the login page after a failed check
  • 400
    • Meaning: Bad request
    • Why a SOC analyst cares: Malformed input, common during scanning
  • 401
    • Meaning: Unauthorized (really means "not authenticated")
    • Why a SOC analyst cares: Login is required or failed
  • 403
    • Meaning: Forbidden (authenticated but not allowed)
    • Why a SOC analyst cares: Access control blocked the request, which is good
  • 404
    • Meaning: Not found
    • Why a SOC analyst cares: Many 404s from one IP usually mean scanning
  • 500
    • Meaning: Internal server error
    • Why a SOC analyst cares: The application crashed or threw an error, important for Injection and A10
  • 503
    • Meaning: Service unavailable
    • Why a SOC analyst cares: Overload or dependency failure

Important: many web servers do not log the request body or headers such as Cookie and Authorization. This is a big reason why web attacks can be invisible in access logs.

How to Read a Web Access Log Line

Apache and NGINX write one line per request in the "combined" log format:

203.0.113.45 - - [04/Nov/2026:10:15:32 +0000] "GET /api/invoices/10422 HTTP/1.1" 200 1834 "-" "python-requests/2.31.0"
  • Client IP
    • Value: 203.0.113.45
    • Meaning: Who sent the request (may be a proxy, see below)
  • Timestamp
    • Value: 04/Nov/2026:10:15:32 +0000
    • Meaning: When the server received it, with time zone
  • Method and path
    • Value: GET /api/invoices/10422
    • Meaning: What was requested
  • Status
    • Value: 200
    • Meaning: What the server answered
  • Bytes
    • Value: 1834
    • Meaning: Size of the response. Big changes in size can show data exposure
  • Referer
    • Value: -
    • Meaning: Page that linked here. Empty for scripts
  • User agent
    • Value: python-requests/2.31.0
    • Meaning: Client software. Scripts and scanners often reveal themselves here

Proxy warning: if the web server sits behind a load balancer or CDN, the client IP in the log may be the load balancer. The real client IP is then in a header such as X-Forwarded-For, which must be added to the log format to be visible.

How Wazuh Sees a Web Log

The Wazuh agent on the web server reads the log file. The Wazuh manager decodes it and runs rules. For standard access logs, the built in decoder named web-accesslog extracts four fields:

  • srcip
    • Alert field in the dashboard: data.srcip
    • Example: 203.0.113.45
  • protocol (the HTTP method)
    • Alert field in the dashboard: data.protocol
    • Example: GET
  • url
    • Alert field in the dashboard: data.url
    • Example: /api/invoices/10422
  • id (the HTTP status code)
    • Alert field in the dashboard: data.id
    • Example: 200

Built in rule 31100 (level 0) groups all access log events. Other built in web rules use it as their parent.

Source: Wazuh decoder file 0375-web-accesslog_decoders.xml and Wazuh web rules 0245-web_rules.xml

SOC Roles and Responsibilities for Web Incidents

  • L1 analyst: Watch alerts, triage, check obvious false positives, collect first evidence, escalate with a clear note
  • L2 analyst: Deeper investigation, correlate across logs, decide if exploitation succeeded, recommend containment
  • L3 analyst or detection engineer: Threat hunting, build and tune rules and decoders, lead complex incidents, improve visibility
  • Developers: Fix code and application logic
  • System or platform administrators: Change server, cloud and network configuration, apply patches
  • Application security team: Confirm vulnerabilities, run tests, guide secure fixes
  • Incident response lead or manager: Declare incidents, coordinate teams, handle legal and customer communication

Severity Levels Used in This Article

Every organization has its own severity matrix. This article uses the simple version below so the logic stays consistent across categories.

  • Low: Attempt only, blocked, no sensitive asset, common internet noise
  • Medium: Repeated or targeted attempts, or a weakness confirmed without evidence of misuse
  • High: Evidence of successful exploitation, or a confirmed weakness on a sensitive internet facing system
  • Critical: Confirmed data theft, account takeover at scale, code execution on a server, or ongoing attacker control

The SOC Response Lifecycle

Each category section adapts these steps:

  1. Triage: Is the alert real? Which asset? Is it still happening?
  2. Evidence collection: Save the alert JSON, raw logs and time window before logs rotate.
  3. Correlation: Link related events by source IP, user, session, host and time.
  4. Severity and impact: Decide what was affected and how badly.
  5. Escalation: Hand over to L2, L3 or the incident lead with a clear summary.
  6. Containment recommendation: Suggest blocking, disabling, isolating or rolling back. The owning team usually executes.
  7. Coordination: Work with developers, administrators and application security.
  8. Remediation verification: Confirm the fix with new tests and new logs.
  9. Documentation and closure: Write the timeline, findings, root cause and lessons learned.

OWASP Top 10:2025 Categories at a Glance

Each summary below gives the core idea of one category and how a SOC sees it. The linked guides cover attack examples, Wazuh rules, dashboard queries, a hypothetical investigation scenario, incident response and prevention in full detail.

A01:2025 Broken Access Control

Broken Access Control means the server does not correctly enforce what a user is allowed to do. A logged in user can read, change or delete data, or use functions, that belong to someone else or to a higher role. Typical attacks are insecure direct object references (changing an invoice ID in the URL), forced browsing to admin pages and, since 2025, Server Side Request Forgery.

Access logs show the requests, but proving the violation needs application logs that record who owns each object. Wazuh has no built in IDOR rule, so detection relies on custom frequency and URL rules.

Full guide: Broken Access Control (OWASP A01:2025): Detection and Investigation with Wazuh

A02:2025 Security Misconfiguration

Security Misconfiguration means insecure settings anywhere in the stack: default passwords, exposed admin consoles, directory listing, verbose error pages, XXE enabled XML parsers or public cloud storage. Attackers find these with simple scanning, without breaking any code.

Wazuh Security Configuration Assessment (SCA) checks hosts against hardening policies, FIM watches configuration files, and access log rules catch probes and successful downloads of sensitive files such as /.env.

Full guide: Security Misconfiguration (OWASP A02:2025): Detection and Investigation with Wazuh

A03:2025 Software Supply Chain Failures

Software Supply Chain Failures are weaknesses or compromises in the third party components, tools and pipelines used to build, distribute and update software. This new category expands the old "Vulnerable and Outdated Components" and covers vulnerable libraries, malicious packages, compromised vendor updates and weak CI/CD pipelines.

Wazuh Vulnerability Detection shows which hosts run vulnerable packages. Confirming exploitation needs process and network telemetry, such as Sysmon or auditd, on application servers and build agents.

Full guide: Software Supply Chain Failures (OWASP A03:2025): Detection and Investigation with Wazuh

A04:2025 Cryptographic Failures

Cryptographic Failures happen when sensitive data is not protected with strong, correctly used cryptography: clear text logins, deprecated TLS versions, fast unsalted password hashes, exposed keys or predictable tokens.

Many of these attacks, such as offline password cracking, leave no logs at the victim. SOC teams therefore focus on the weakness and its side effects: SCA checks on TLS, sensitive data in URLs, weak protocols recorded in logs and unexpected reads of private key files.

Full guide: Cryptographic Failures (OWASP A04:2025): Detection and Investigation with Wazuh

A05:2025 Injection

Injection happens when untrusted input is sent to an interpreter and part of it is executed as a command. It includes SQL injection, OS command injection and Cross Site Scripting (XSS).

Injection leaves the clearest signatures of all ten categories. Built in Wazuh rules such as 31103 (SQL injection), 31104 (common web attacks) and 31105 (XSS) analyze access log URLs. Confirming success still needs response sizes, database audit logs or process telemetry.

Full guide: SQL Injection and Injection Attacks (OWASP A05:2025): Detection and Investigation with Wazuh

A06:2025 Insecure Design

Insecure Design means a needed security control was never designed into the application. The app works exactly as built, but the design allows abuse: no limit on bookings, coupons usable by unlimited accounts, or password recovery based on security questions.

Business logic abuse uses valid requests, so signature rules do not help. Detection depends on application business logs and custom Wazuh correlation rules built with business owners.

Full guide: Insecure Design (OWASP A06:2025): Detecting Business Logic Abuse with Wazuh

A07:2025 Authentication Failures

Authentication Failures let an attacker be accepted as a legitimate user because login, session or recovery handling is weak. Typical attacks are credential stuffing, password spraying and brute force, made possible by missing rate limits and missing MFA.

Wazuh has strong built in coverage for Windows, Linux and web server authentication logs, including rule 40112 for failures followed by a success. Custom web applications need JSON authentication logs and custom rules.

Full guide: Authentication Failures (OWASP A07:2025): Detecting Credential Stuffing and Password Spraying with Wazuh

A08:2025 Software or Data Integrity Failures

Software or Data Integrity Failures happen when an application trusts code or data without verifying that it is genuine and unchanged: unsigned updates, unverified build artifacts, external scripts without integrity checks and insecure deserialization.

Wazuh File Integrity Monitoring, with realtime monitoring, whodata and report_changes, is the main detection tool. It shows which file changed, the exact change and who made it.

Full guide: Software or Data Integrity Failures (OWASP A08:2025): Detection with Wazuh File Integrity Monitoring

A09:2025 Security Logging and Alerting Failures

Security Logging and Alerting Failures mean important events are not logged, logs are not protected, or nobody is alerted. Attacks then go unnoticed or are discovered far too late.

Wazuh can detect active log tampering, such as shrinking log files, cleared Windows event logs and stopped agents. Finding events that were never logged needs log source monitoring and regular detection testing.

Full guide: Security Logging and Alerting Failures (OWASP A09:2025): Detecting Log Tampering and Visibility Gaps with Wazuh

A10:2025 Mishandling of Exceptional Conditions

Mishandling of Exceptional Conditions is new in 2025. It covers applications that handle errors and unusual situations unsafely: leaking details in error messages, failing open when a security check errors out, or leaving transactions half finished.

Built in Wazuh rules show bursts of 500 and 503 errors and server crashes. Seeing the unsafe outcome, such as an "allow" decision recorded with an error, needs application logs and custom rules.

Full guide: Mishandling of Exceptional Conditions (OWASP A10:2025): Detecting Unsafe Error Handling with Wazuh

How to Tell Similar OWASP Categories Apart

Several OWASP categories overlap, and a single incident can touch more than one. The most reliable way to classify an incident is by root cause:

Classify by root cause, describe the impact, and mention the related category. For example: "Root cause A10, failing open; the impact looks like A01, unauthorized access."

Broken Access Control (A01) versus Authentication Failures (A07)

  • What fails?
    • A01 Broken Access Control: Authorization: what you may do
    • A07 Authentication Failures: Authentication: who you are
  • Is the attacker logged in as themselves?
    • A01 Broken Access Control: Usually yes, as their own real account
    • A07 Authentication Failures: No, they are accepted as someone else, or as nobody
  • Typical example
    • A01 Broken Access Control: Logged in user changes invoice_id and sees another customer’s invoice
    • A07 Authentication Failures: Attacker logs in to a victim’s account with a leaked password
  • Typical evidence
    • A01 Broken Access Control: Same session reads objects owned by many others; 200 on admin paths for non admins
    • A07 Authentication Failures: Many failed logins, success after failures, login from new location

Simple example: A trial user downloads other customers’ invoices: A01. An attacker logs in as a real customer with a stolen password and downloads that customer’s own invoices: A07.

How a SOC analyst distinguishes them: Look at the identity used. If the session belongs to the attacker’s own account and they reached other people’s data, it is A01. If the attacker is using someone else’s identity, investigate A07. Both can happen together: an attacker takes over an account (A07) and then exploits an IDOR (A01).

Full guides: A01 Broken Access Control and A07 Authentication Failures.

Security Misconfiguration (A02) versus Software Supply Chain Failures (A03)

  • What is wrong?
    • A02 Security Misconfiguration: The settings of a component
    • A03 Software Supply Chain Failures: The component itself, its version, its source, or the pipeline that delivers it
  • Typical example
    • A02 Security Misconfiguration: Admin console with default password; directory listing on
    • A03 Software Supply Chain Failures: Web framework version with a known remote code execution CVE; malicious npm package
  • Fixed by
    • A02 Security Misconfiguration: Changing configuration
    • A03 Software Supply Chain Failures: Patching, upgrading, replacing, securing the pipeline
  • Main Wazuh visibility
    • A02 Security Misconfiguration: SCA, FIM on config files
    • A03 Software Supply Chain Failures: Vulnerability Detection, process telemetry on build agents

Simple example: Apache shows directory listings: A02. Apache is an old version with a public CVE: A03.

How a SOC analyst distinguishes them: Ask "would updating the software fix it, or would changing a setting fix it?" A vulnerability alert from Vulnerability Detection points to A03. A failed SCA check points to A02. Note that OWASP’s A03 says you are vulnerable if you do not secure the configuration of every part of the system, and refers to A02 for that part.

Full guides: A02 Security Misconfiguration and A03 Software Supply Chain Failures.

Software Supply Chain Failures (A03) versus Software or Data Integrity Failures (A08)

  • Focus
    • A03 Software Supply Chain Failures: The whole chain of third party components, tools, build and distribution
    • A08 Software or Data Integrity Failures: The specific failure to verify integrity before trusting code or data
  • OWASP wording
    • A03 Software Supply Chain Failures: Breakdowns or compromises in building, distributing or updating software
    • A08 Software or Data Integrity Failures: Failure to maintain trust boundaries and verify integrity at a lower level than supply chain failures
  • Typical example
    • A03 Software Supply Chain Failures: Outdated library with a CVE; compromised vendor; malicious package; weak CI/CD
    • A08 Software or Data Integrity Failures: Unsigned update installed; artifact deployed without signature check; insecure deserialization; script without SRI
  • Key question
    • A03 Software Supply Chain Failures: "Is something we depend on vulnerable or compromised?"
    • A08 Software or Data Integrity Failures: "Did we check that this code or data is genuine before using it?"

Simple example: A malicious package version is published to the public registry and pulled into your build: A03. Your pipeline deploys an artifact from a bucket without verifying its signature, and someone replaced it: A08. Insecure deserialization of a cookie is always discussed under A08.

How a SOC analyst distinguishes them: Find where the trust broke. If the trusted upstream source itself was vulnerable or compromised, lead with A03. If the problem is that your system skipped integrity verification of code or data, lead with A08. Real incidents often involve both, and saying so shows maturity.

Full guides: A03 Software Supply Chain Failures and A08 Software or Data Integrity Failures.

Cryptographic Failures (A04) versus Authentication Failures (A07)

  • What fails?
    • A04 Cryptographic Failures: Protection of secrets and data by cryptography
    • A07 Authentication Failures: The login, session or recovery process
  • Typical example
    • A04 Cryptographic Failures: Passwords stored with unsalted MD5; predictable reset tokens; login over HTTP
    • A07 Authentication Failures: No rate limiting on login; no MFA; session not invalidated
  • Where the attack happens
    • A04 Cryptographic Failures: Often offline or on the network (cracking, sniffing, predicting)
    • A07 Authentication Failures: Usually online against the login endpoint
  • Typical evidence
    • A04 Cryptographic Failures: Weak TLS in logs, sensitive data in URLs, key file access; often no direct logs
    • A07 Authentication Failures: Failed login patterns, success after failures

Simple example: An attacker cracks MD5 password hashes from a stolen backup: the weak storage is A04. An attacker guesses passwords on the login page because there is no rate limit: A07. OWASP’s A07 description itself mentions weakly hashed password stores and points to A04.

How a SOC analyst distinguishes them: If the problem is how a secret is generated, transmitted or stored, it is A04. If the problem is how the application verifies identity or manages the session, it is A07. Predictable reset tokens are a good overlap example: weak randomness (A04) inside a recovery process (A07).

Full guides: A04 Cryptographic Failures and A07 Authentication Failures.

Injection (A05) versus Insecure Design (A06)

  • Type of flaw
    • A05 Injection: Implementation defect: code mixes data and commands
    • A06 Insecure Design: Design flaw: a needed control was never planned
  • What requests look like
    • A05 Injection: Contain special characters and keywords (' UNION SELECT)
    • A06 Insecure Design: Look completely valid
  • Fixed by
    • A05 Injection: Correct code (parameterized queries, encoding)
    • A06 Insecure Design: Design change (limits, new process, threat modeling)
  • Wazuh visibility
    • A05 Injection: Built in web attack rules on access logs
    • A06 Insecure Design: Only custom rules on business logs

Simple example: A search box allows UNION SELECT: A05. A booking system allows one account to book 600 seats because nobody defined a limit: A06.

How a SOC analyst distinguishes them: Look at the payload. If the request contains interpreter syntax that changes a command, it is A05. If every request is normal but the combination or quantity creates harm, think A06. OWASP states an insecure design cannot be fixed by a perfect implementation.

Full guides: A05 Injection and A06 Insecure Design.

Security Logging and Alerting Failures (A09) versus missing Wazuh detection rules

  • Where is the gap?
    • A09 Security Logging and Alerting Failures: In the application or its environment: events not logged, logs not protected, no alerting process
    • Missing Wazuh detection rule: In the SOC’s detection content: logs exist and arrive, but no rule turns them into an alert
  • Example
    • A09 Security Logging and Alerting Failures: The portal never logs failed logins
    • Missing Wazuh detection rule: The portal logs failed logins in JSON and Wazuh collects them, but nobody wrote a rule
  • Who fixes it?
    • A09 Security Logging and Alerting Failures: Developers, system owners, management (logging requirements, retention, playbooks)
    • Missing Wazuh detection rule: Detection engineers (decoders and rules)
  • How to tell
    • A09 Security Logging and Alerting Failures: Search raw logs or the wazuh-archives-* index (if archiving is enabled): the event is not there at all
    • Missing Wazuh detection rule: The event is in the archives or full_log, but no alert was raised

Simple example: An attacker sprays passwords and no failure events exist anywhere: A09 in the application. The failure events exist in Wazuh’s archived events but no rule matched: a detection engineering gap in the SOC (which, from the organization’s point of view, also contributes to "alerting failures").

How a SOC analyst distinguishes them: Check the chain step by step: (1) Did the application write the event? (2) Did the agent collect it? (3) Did the decoder parse it? (4) Did a rule match? (5) Did someone review the alert? A break at step 1 is an application logging failure. A break at steps 2 to 4 is a SIEM configuration or detection gap. A break at step 5 is a SOC process failure. Wazuh’s logall or logall_json options store all events (not only alerts) in archives, which helps this analysis. Archiving uses more storage, so it is often enabled only temporarily.

Full guide: A09 Security Logging and Alerting Failures.

Mishandling of Exceptional Conditions (A10) versus ordinary application errors

  • Security impact?
    • A10 Mishandling of Exceptional Conditions: Yes: data leak, bypass (fail open), state corruption, denial of service
    • Ordinary application error: No security impact, just a failure or wrong result
  • Example
    • A10 Mishandling of Exceptional Conditions: Authorization timeout leads to access being allowed
    • Ordinary application error: Report page crashes with a generic "please try again" message and nothing else happens
  • Example
    • A10 Mishandling of Exceptional Conditions: Transfer fails mid way and money is credited without debit record
    • Ordinary application error: A user uploads a corrupt image and gets a clear validation error
  • SOC interest
    • A10 Mishandling of Exceptional Conditions: Investigate, escalate
    • Ordinary application error: Usually operations or QA, not security

Simple example: An error page shows "Something went wrong" and logs details internally: ordinary, handled error. An error page shows the full SQL query and stack trace, or the app grants access after an error: A10 (and possibly A02 for the verbose error configuration).

How a SOC analyst distinguishes them: Ask three questions. (1) Was the error triggered deliberately (unusual inputs, one IP, many parameters)? (2) Did the error produce an unsafe outcome (data shown, access allowed, inconsistent state, outage)? (3) Did the handling violate fail closed? If the answer to question 2 or 3 is yes, treat it as A10.

Full guide: A10 Mishandling of Exceptional Conditions.

Quick Overlap Reference

  • Account takeover through predictable reset token
    • Root cause category: A04
    • Related category to mention: A07
  • Credential stuffing then IDOR
    • Root cause category: A07 and A01
    • Related category to mention: Both are separate failures
  • Old library exploited, web shell uploaded
    • Root cause category: A03
    • Related category to mention: A08 if the web shell file was not detected by integrity monitoring
  • Verbose stack trace in production
    • Root cause category: A02 (configuration)
    • Related category to mention: A10 (handling)
  • Fail open authorization
    • Root cause category: A10
    • Related category to mention: A01 (impact)
  • Attack missed because logs not collected
    • Root cause category: A09
    • Related category to mention: The attack’s own category
  • File upload allows .php
    • Root cause category: A06 (design allows dangerous type, CWE-434)
    • Related category to mention: A05 or A08 when executed or used as a web shell

Complete SOC Investigation Workflow for a Suspicious Web Request

This section follows one hypothetical case from the first alert to closure. It is an invented example that illustrates the method and does not describe a real organization.

The environment: A professional services company runs a client document portal on NGINX (Linux). The portal lets clients download their reports through /download?file=<name>. Wazuh agents on the web server collect NGINX access logs, the application’s JSON logs, FIM and auditd. PostgreSQL authentication logs from the database server are also collected.

Step 1: Alert Received in Wazuh

At 14:22 UTC the SOC queue shows built in rule 31106 "A web attack returned code 200 (success)." (level 6) from agent docs-web-01.

Representative alert (shortened):

{
  "timestamp": "2026-11-08T14:22:41.512+0000",
  "rule": {
    "level": 6,
    "description": "A web attack returned code 200 (success).",
    "id": "31106",
    "firedtimes": 1,
    "mitre": { "id": ["T1190"], "tactic": ["Initial Access"], "technique": ["Exploit Public-Facing Application"] },
    "groups": ["web", "accesslog", "attack"]
  },
  "agent": { "id": "033", "name": "docs-web-01", "ip": "10.50.1.21" },
  "manager": { "name": "wazuh-manager-01" },
  "decoder": { "name": "web-accesslog" },
  "data": { "protocol": "GET", "srcip": "198.51.100.77", "id": "200", "url": "/download?file=../../../../etc/passwd" },
  "location": "/var/log/nginx/access.log",
  "full_log": "198.51.100.77 - - [08/Nov/2026:14:22:41 +0000] \"GET /download?file=../../../../etc/passwd HTTP/1.1\" 200 2847 \"-\" \"curl/8.5.0\""
}

Field by field:

  • timestamp
    • Value: 2026-11-08T14:22:41
    • Why it matters: When Wazuh processed the event; compare with the log’s own time
  • rule.id
    • Value: 31106
    • Why it matters: Built in rule: a pattern from 31103, 31104 or 31105 matched and status was 200
  • rule.level
    • Value: 6
    • Why it matters: Medium importance in Wazuh’s scale; the level alone does not decide the incident
  • rule.mitre.id
    • Value: T1190
    • Why it matters: Exploit Public Facing Application
  • agent.name
    • Value: docs-web-01
    • Why it matters: Affected server
  • data.srcip
    • Value: 198.51.100.77
    • Why it matters: Client IP as seen by NGINX
  • data.protocol
    • Value: GET
    • Why it matters: HTTP method
  • data.url
    • Value: /download?file=../../../../etc/passwd
    • Why it matters: The ../ sequence is a path traversal pattern (matched by built in rule 31104)
  • data.id
    • Value: 200
    • Why it matters: HTTP status
  • full_log
    • Value: ends with 2847 "-" "curl/8.5.0"
    • Why it matters: Response size 2,847 bytes; user agent curl
  • location
    • Value: /var/log/nginx/access.log
    • Why it matters: Which log file produced the event

Step 2: Initial Triage (L1, first 10 minutes)

  1. Is the alert real? Yes, full_log shows the actual request.
  2. What asset? docs-web-01 hosts the client portal, which is internet facing and holds confidential client reports. High value.
  3. Is it a known tester? The analyst checks the approved penetration test calendar and allow list. The IP is not listed.
  4. Is it ongoing? A filter on the last 15 minutes for the IP shows requests are still arriving.
  5. First impression: A path traversal attempt returned 200. Status 200 alone is not proof, but the size of 2,847 bytes looks like a small text file, not the portal’s usual multi megabyte PDF reports.
  6. Decision: Escalate to L2 with a priority of High while continuing evidence collection.

Step 3: Identification of the Source IP

  1. data.srcip is 198.51.100.77. NGINX is directly internet facing here (no load balancer), so this is the real client IP. If a load balancer were in front, the analyst would check X-Forwarded-For in the load balancer logs.
  2. Reputation and ownership checks (with an approved threat intelligence tool): a hosting provider, no business relationship.
  3. Query: data.srcip:"198.51.100.77" over 7 days. First seen today at 14:05.

Step 4: Examination of the HTTP Requests

Query: data.srcip:"198.51.100.77" sorted by time. Representative results:

14:05:10 GET /                                                        200   18220  Mozilla/5.0
14:05:44 GET /login                                                   200    6310  Mozilla/5.0
14:06:02 POST /login                                                  302       0  Mozilla/5.0
14:06:03 GET /reports                                                 200   15400  Mozilla/5.0
14:06:20 GET /download?file=Q3_report_acme.pdf                        200 2311840  Mozilla/5.0
14:21:58 GET /download?file=../etc/passwd                             404     162  curl/8.5.0
14:22:20 GET /download?file=../../etc/passwd                          404     162  curl/8.5.0
14:22:41 GET /download?file=../../../../etc/passwd                    200    2847  curl/8.5.0
14:23:15 GET /download?file=../../../../var/www/portal/.env           200     944  curl/8.5.0
14:24:02 GET /download?file=../../../../home/deploy/.ssh/id_rsa       404     162  curl/8.5.0

What this shows:

  1. The IP logged in as a real client at 14:06 and downloaded a normal report (2.3 MB).
  2. From 14:21 it switched to curl and tried increasing ../ depth, a classic traversal search. The 404 results are failed attempts.
  3. At depth four, /etc/passwd returned 200 with 2,847 bytes and .env returned 200 with 944 bytes. Both sizes are consistent with those text files.

Step 5: Review of Application and Web Server Logs

  1. Application JSON log for the same minute (collected by Wazuh):
{"log_type":"app","event":"file_download","username":"client-acme-03","client_ip":"198.51.100.77","requested":"../../../../var/www/portal/.env","resolved_path":"/var/www/portal/.env","result":"served","bytes":"944"}
  1. Field explanation: username identifies the authenticated account; requested is the raw input; resolved_path shows the server turned the input into a path outside the reports folder; result: served confirms the file was sent.
  2. NGINX error log: no errors for these requests, meaning the application, not NGINX, served the files.

Step 6: Identification of the Suspicious Parameter and Behavior

  1. Parameter: file in /download.
  2. Behavior: User controlled path not restricted to the reports folder. The application resolves ../ and serves any file the web server user can read.
  3. Category: Path traversal, CWE-22, which OWASP 2025 maps to A01 Broken Access Control (the user accessed files outside their permitted scope).

Step 7: Correlation with Other Security Events

  1. Leaked secret check: The .env file contains the PostgreSQL password for the portal database (confirmed by the system owner).
  2. Database logs: Query agent.name:"docs-db-01" and full_log:*portal_app* shows a successful database login for user portal_app at 14:31 from 198.51.100.77. The database normally accepts connections only from the web server, but a firewall rule allowed the external IP range for a vendor, an additional misconfiguration (A02).
  3. Process events: auditd custom rule 100503 (described in the Injection guide) did not fire; no shells were spawned by the web server user.
  4. FIM: No new files in the web root (rule 100801 from the integrity monitoring guide did not fire).
  5. Other sources: No other IPs sent traversal patterns in the last 30 days (rule.id:(31104 or 31106) and data.url:*download*).

Step 8: Verification of Whether Exploitation Was Successful

  • Traversal was attempted
    • Evidence: 404 responses with increasing ../
    • Conclusion: Confirmed attempt
  • Traversal succeeded
    • Evidence: 200 with matching sizes; app log result: served, resolved_path outside folder
    • Conclusion: Confirmed exploitation
  • Secrets were obtained
    • Evidence: .env served (944 bytes) and contains DB password
    • Conclusion: Confirmed
  • Secrets were used
    • Evidence: Database login from attacker IP at 14:31
    • Conclusion: Confirmed
  • Server code execution
    • Evidence: No shell processes, no new files
    • Conclusion: Not observed (absence of evidence, stated with confidence level)

Step 9: Assessment of Business Impact

  1. Confidentiality: System files and database credentials exposed. Database access by an external party means client data may be exposed. Database audit logs must show which tables were read.
  2. Integrity: No evidence of modification yet; to be confirmed with database audit logs.
  3. Availability: Not affected.
  4. Business: Confidential client reports for multiple clients may be exposed; contractual and regulatory notification may be required.
  5. Accounts: The client account client-acme-03 was used by the attacker. Either the client’s credentials were stolen (A07) or the client is the attacker; to be determined.

Step 10: Incident Classification

  1. Type: Web application exploitation leading to credential exposure and unauthorized database access.
  2. OWASP mapping: Root cause A01 Broken Access Control (path traversal). Contributing: A02 Security Misconfiguration (database reachable from the internet), and possibly A07 if the client account was compromised.
  3. MITRE ATT&CK: T1190 Exploit Public Facing Application, T1552.001 Unsecured Credentials: Credentials In Files, T1078 Valid Accounts.
  4. Severity: Critical (confirmed data access with confirmed use of stolen credentials).

Step 11: Escalation and Response

  1. Escalation: Incident lead paged; application owner, database administrator, network team and client relationship manager informed. Privacy and legal informed because client data may be affected.
  2. Containment (recommended by SOC, executed by owners):
    1. Block 198.51.100.77 at the edge firewall and WAF (or with Wazuh Active Response if pre approved).
    2. Disable the client-acme-03 account and revoke its sessions.
    3. Rotate the database password and any other secret in .env.
    4. Remove the external firewall rule to the database.
    5. Temporarily disable /download or apply a WAF rule blocking ../ and encoded variants in the file parameter.
  3. Eradication and fix (development team): Map download requests to file IDs instead of paths, and enforce that resolved paths stay inside the reports folder.
  4. Evidence preservation: Export alerts, access and app logs, database logs; snapshot the web server if required by policy.

Step 12: Documentation and Closure

Incident record (summary):

  • Summary: Path traversal in /download allowed an authenticated client account to read server files, including database credentials, which were then used from the attacker IP
  • Timeline: 14:06 login, 14:21 traversal attempts, 14:22 /etc/passwd served, 14:23 .env served, 14:31 DB login, 14:40 containment started
  • Evidence: Alert 31106 JSON, access log lines, app log file_download events, DB authentication log, firewall rule export
  • Root cause: Missing path restriction in download feature (A01, CWE-22); database exposed to external range (A02)
  • Impact: Credentials exposed and used; client data exposure under assessment
  • Actions: IP blocked, account disabled, secrets rotated, firewall fixed, code fixed
  • Verification: Retest of traversal returns 400; new custom rule alerts on ../ in file parameter; no further DB logins from external IPs
  • Lessons: Add app log rule for resolved_path outside allowed folder; review all download features; enable database audit logging on client tables
  • Closure: Closed after verification and incident lead approval; follow up actions tracked

How the analyst moved from alert to a defensible conclusion: The alert only said "an attack pattern returned 200". Each conclusion was backed by a separate piece of evidence: the attempt by the 404 sequence, the success by response size and the application log, the impact by the database login. Each "not observed" claim (no code execution) was based on specific checks, not on assumptions.

Triage Guide for Common Web Security Alerts

The list below summarizes how a SOC analyst can approach alerts and reports that come up often in web application monitoring. Each entry describes what the signal may mean and what to check before escalating.

  • Rule 31106 for GET /search?q=<script>alert(1)</script> with status 200
    • What it may indicate: Reflected XSS attempt; a 200 on a search page is normal even when input is safely encoded
    • What the analyst checks first: Whether the page reflects input without encoding, repeated payloads from the same IP (rule 31154), and whether any payload was stored and viewed by other users
  • Rule 31151: many 4xx errors from one IP
    • What it may indicate: Scanning or reconnaissance
    • What the analyst checks first: Paths requested, user agent, and any 200 on sensitive paths or attack patterns
  • A customer reports an email change they did not make
    • What it may indicate: Account takeover (A07)
    • What the analyst checks first: Recent logins, IPs and devices for the account, failures before success, other accounts targeted by the same IP, session reuse
  • The database team sees a full table read by the web application account at night
    • What it may indicate: SQL injection (A05), stolen database credentials, or a legitimate batch job
    • What the analyst checks first: Web requests at the same time, scheduled jobs, and logins by the same database account from unexpected hosts
  • FIM reports a new .php file in an uploads folder
    • What it may indicate: Web shell upload (A06 design flaw, A08 integrity)
    • What the analyst checks first: The upload request, any requests to the new file, processes spawned by the web server user, and the file hash
  • Vulnerability Detection reports a critical CVE on many servers
    • What it may indicate: Exposure to a known vulnerability (A03), not yet an attack
    • What the analyst checks first: Internet exposure, known exploitation in the wild, exploit attempts in logs, and patch priority
  • Logs from a web server stop for two hours, then resume
    • What it may indicate: Maintenance, a misconfiguration, or an attacker stopping the agent (A09)
    • What the analyst checks first: Agent status events (504, 506), change records, and WAF or firewall traffic during the gap
  • 200 different users log in successfully from one IP
    • What it may indicate: A corporate gateway or proxy, or a successful credential stuffing wave
    • What the analyst checks first: Who owns the IP, the real client IPs behind it, post login actions, and confirmation from a sample of users
  • The WAF blocked thousands of requests, but Wazuh shows nothing
    • What it may indicate: Blocked requests never reached the web server, and WAF logs are not collected
    • What the analyst checks first: WAF logs for payload types and any allowed requests, then add WAF log collection to Wazuh
  • An authorization error is logged with an allow decision during an outage
    • What it may indicate: Fail open behavior (A10)
    • What the analyst checks first: Which users accessed which resources during the window; the flaw is reported even without malicious activity
  • Card numbers appear in an application debug log
    • What it may indicate: Sensitive data in logs (A09, CWE-532)
    • What the analyst checks first: Where the logs are stored, who can read them, and whether they were copied elsewhere, including the SIEM
  • The IIS worker process w3wp.exe starts PowerShell with an encoded command
    • What it may indicate: Command injection, a web shell or deserialization exploitation
    • What the analyst checks first: The decoded command, the IIS request at the same second, new web root files, outbound connections; escalate as Critical

OWASP Top 10:2025 Quick Reference

This summary lists every category with its main weakness, a typical attack, the strongest indicators, and the Wazuh detection approach.

  • A01 Broken Access Control
    • Main weakness: Server does not enforce permissions
    • Example attack: IDOR: change invoice ID; forced browsing; SSRF
    • Key detection indicators: Sequential IDs, 200 on admin paths, cross tenant reads
    • Primary log source: Access logs plus app logs with owner
    • Wazuh detection approach: Custom frequency and URL rules; 31151 for probing
    • Main business impact: Data exposure, unauthorized actions
  • A02 Security Misconfiguration
    • Main weakness: Insecure settings
    • Example attack: Exposed .env, default admin password
    • Key detection indicators: 200 on sensitive files, SCA failures, config changes
    • Primary log source: Access logs, SCA, FIM
    • Wazuh detection approach: SCA (19007, 19011), FIM (550), 31516, custom path rules
    • Main business impact: Secret leaks, server takeover
  • A03 Software Supply Chain Failures
    • Main weakness: Vulnerable or compromised components and pipelines
    • Example attack: Log4Shell; malicious npm package
    • Key detection indicators: CVE in inventory, exploit strings, build agent spawning shells
    • Primary log source: Vulnerability Detection, Sysmon or auditd, CI logs
    • Wazuh detection approach: Rules 23503 to 23506, custom process and CI rules
    • Main business impact: Code execution, poisoned releases
  • A04 Cryptographic Failures
    • Main weakness: Weak or missing cryptography
    • Example attack: Predictable reset tokens; MD5 hashes; HTTP login
    • Key detection indicators: Sensitive data in URLs, weak TLS, key file reads
    • Primary log source: Access logs, SCA, auditd
    • Wazuh detection approach: SCA TLS checks, custom URL, TLS and key access rules
    • Main business impact: Data and credential exposure
  • A05 Injection
    • Main weakness: Input executed by an interpreter
    • Example attack: SQL UNION SELECT; ;id command injection; XSS
    • Key detection indicators: SQL keywords, 500 bursts, DB errors, large 200s, web server shells
    • Primary log source: Access logs, app errors, DB audit
    • Wazuh detection approach: Built in 31103, 31104, 31105, 31106, 31152; custom process rules
    • Main business impact: Database theft, server compromise
  • A06 Insecure Design
    • Main weakness: Missing control at design stage
    • Example attack: 600 seat booking; security question recovery
    • Key detection indicators: Abnormal quantities, shared coupons, recovery sprays
    • Primary log source: App business logs
    • Wazuh detection approach: Custom JSON rules with same_field and different_field
    • Main business impact: Financial loss, fraud, takeover
  • A07 Authentication Failures
    • Main weakness: Weak login, session or recovery
    • Example attack: Credential stuffing; password spraying
    • Key detection indicators: Failures across many accounts, success after failures
    • Primary log source: App auth logs, Windows 4624/4625, Linux auth
    • Wazuh detection approach: 60122, 60204, 5763, 40112; custom spray rules
    • Main business impact: Account takeover
  • A08 Software or Data Integrity Failures
    • Main weakness: Trusting code or data without verification
    • Example attack: Skimming script added to checkout.js; insecure deserialization
    • Key detection indicators: New or changed web files, unsigned deploys, rO0AB markers
    • Primary log source: FIM, deployment logs
    • Wazuh detection approach: FIM 550, 553, 554; custom web root and deploy rules
    • Main business impact: Card theft, code execution
  • A09 Security Logging and Alerting Failures
    • Main weakness: Events not logged, protected or alerted
    • Example attack: Logs truncated; failed logins never logged
    • Key detection indicators: Log size reduced, event log cleared, silent sources
    • Primary log source: Wazuh internal events, Windows logs, auditd
    • Wazuh detection approach: 592, 60117, 593, 504, 506, 60112; source monitoring
    • Main business impact: Undetected breaches, no evidence
  • A10 Mishandling of Exceptional Conditions
    • Main weakness: Unsafe error handling
    • Example attack: Fail open on timeout; transfer without rollback
    • Key detection indicators: 500 and 503 bursts, stack traces, allow with error
    • Primary log source: Access and error logs, app logs
    • Wazuh detection approach: 31122, 31162, 31163, 30104; custom fail open rules
    • Main business impact: Bypass, fraud, outage

Glossary of Key Terms

  • Authentication: Proving who you are, for example with a password and MFA
  • Authorization: Deciding what an authenticated user may do
  • IDOR: Accessing an object by its ID without an ownership check
  • Injection: User input executed as part of a command or query
  • Parameterized query: A query where data is sent separately from the SQL structure
  • XSS: Script injected into a page and run in another user’s browser
  • SSRF: Tricking a server into making requests to places the attacker cannot reach
  • Credential stuffing: Using leaked username and password pairs on another site
  • Session token: A value that keeps a user logged in after authentication
  • CVE: Public identifier for a known vulnerability
  • CWE: Category identifier for a type of software weakness
  • SBOM: List of all software components and versions in an application
  • WAF: Web Application Firewall that inspects and filters HTTP traffic
  • Decoder (Wazuh): Component that extracts fields from raw logs
  • Rule (Wazuh): Logic that matches decoded events and creates alerts with a level
  • FIM: File Integrity Monitoring, detecting added, changed or deleted files
  • SCA (Wazuh): Security Configuration Assessment, checking settings against policies
  • False positive: An alert that looks malicious but is legitimate activity
  • Fail closed: Denying access when a security check cannot complete
  • Indicator of compromise (IOC): Evidence such as an IP, hash or domain linked to malicious activity

Frequently Asked Questions

What is the OWASP Top 10 2025?

It is the 2025 edition of OWASP’s awareness list of the ten most critical web application security risk categories. It was the eighth edition of the list. Each category groups many related CWE weaknesses. The categories are Broken Access Control, Security Misconfiguration, Software Supply Chain Failures, Cryptographic Failures, Injection, Insecure Design, Authentication Failures, Software or Data Integrity Failures, Security Logging and Alerting Failures, and Mishandling of Exceptional Conditions.

What changed in the OWASP Top 10 2025 compared with 2021?

Two categories are new: A03 Software Supply Chain Failures, which expands the old "Vulnerable and Outdated Components" category, and A10 Mishandling of Exceptional Conditions. Server Side Request Forgery was merged into A01 Broken Access Control. Security Misconfiguration moved up from fifth to second. Two categories were renamed: Authentication Failures, and Security Logging and Alerting Failures.

Can Wazuh detect all OWASP Top 10 attacks automatically?

No. Built in Wazuh rules detect common patterns in web access logs, such as SQL injection (31103), XSS (31105), path traversal and command patterns (31104), and repeated errors from one IP. Wazuh also provides FIM, SCA and Vulnerability Detection. Categories such as Broken Access Control, Insecure Design and most Authentication Failures in custom applications need application logs and custom rules. Some attacks, such as offline password cracking, leave no logs that Wazuh can see.

Which logs are needed to detect web application attacks?

At minimum, web server access logs. For reliable detection and investigation, organizations also need application logs in JSON (with user, object, action and result), web server error logs, WAF logs that capture request bodies, authentication logs, database audit logs for sensitive tables, and process telemetry (Sysmon or auditd) on web servers.

How do you confirm that a web attack was successful?

Confirmation needs evidence beyond the alert. Useful evidence includes response sizes that match real data instead of error pages, application logs showing the action completed, database audit records of unusual queries, new processes started by the web server user, outbound connections, and later use of stolen data or credentials. Without such evidence, the event remains an attempt or suspicious activity.

What is the difference between Broken Access Control and Authentication Failures?

Authentication Failures (A07) concern who the user is: the attacker is accepted as someone else, for example through credential stuffing. Broken Access Control (A01) concerns what the user may do: a correctly authenticated user reaches data or functions that are not theirs, for example by changing an object ID.

Where are custom Wazuh rules stored and how are they tested?

Custom rules go in /var/ossec/etc/rules/local_rules.xml or in a new file in /var/ossec/etc/rules/ on the Wazuh manager, using IDs between 100000 and 120000. Test them with /var/ossec/bin/wazuh-logtest, which reads saved rules without a restart. Restart the Wazuh manager to apply them to live alerts.

Is a vulnerability scanner finding the same as a security incident?

No. A finding shows that a vulnerability exists. An attack attempt shows that someone tried to use it. Exploitation means the attempt worked. An incident is an event with real or threatened harm that requires a formal response. A Wazuh vulnerability alert is evidence of exposure, not of compromise.

Conclusion

Read as a detection guide, the OWASP Top 10 for SOC analysts is a practical map of how web applications fail. Some categories, such as Injection, leave clear signatures in web access logs, and built in Wazuh rules detect them well. Others, such as Broken Access Control, Insecure Design and Mishandling of Exceptional Conditions, look like normal traffic. Detecting them depends on application logs with business context and on custom Wazuh rules.

Three habits make web attack investigations defensible. First, treat an alert as evidence that a log matched a pattern, not as proof of compromise. Second, classify each incident by root cause and name related categories where they apply. Third, separate responsibilities: the SOC detects, investigates and recommends containment; developers and administrators fix code and configuration; and the SOC verifies the fix before closing the incident.

To go deeper, start with the category that matches your most common alerts. The Injection guide and the Authentication Failures guide cover the categories with the strongest built in Wazuh coverage. The Broken Access Control guide and the Insecure Design guide show how to build visibility where built in rules cannot help.

References and Further Reading

  1. OWASP Top 10:2025 home
  2. OWASP Top 10:2025 introduction and changes
  3. OWASP A01:2025 Broken Access Control
  4. OWASP A02:2025 Security Misconfiguration
  5. OWASP A03:2025 Software Supply Chain Failures
  6. OWASP A04:2025 Cryptographic Failures
  7. OWASP A05:2025 Injection
  8. OWASP A06:2025 Insecure Design
  9. OWASP A07:2025 Authentication Failures
  10. OWASP A08:2025 Software or Data Integrity Failures
  11. OWASP A09:2025 Security Logging and Alerting Failures
  12. OWASP A10:2025 Mishandling of Exceptional Conditions
  13. OWASP Top 10 source repository (GitHub)
  14. OWASP Cheat Sheet Series
  15. Wazuh documentation: Rules syntax
  16. Wazuh documentation: Custom rules
  17. Wazuh documentation: Rules classification
  18. Wazuh documentation: Testing decoders and rules
  19. Wazuh documentation: Localfile configuration
  20. Wazuh documentation: Active response configuration
  21. Wazuh ruleset source, tag v4.14.10
  22. Wazuh built in web rules: 0245-web_rules.xml
  23. Wazuh built in web application rules: 0270-web_appsec_rules.xml
  24. Wazuh web access log decoders: 0375-web-accesslog_decoders.xml
  25. CWE-22 Path Traversal
  26. MITRE ATT&CK T1190 Exploit Public Facing Application
  27. MITRE ATT&CK T1078 Valid Accounts
  28. MITRE ATT&CK T1552.001 Credentials In Files