A payload is the part of a transmission or a program that performs its intended function, as distinct from the headers, wrappers, and delivery machinery that exist only to carry it. The current HTTP specification draws the same line when it separates requirements on what a message conveys from requirements on how it is conveyed.
Security writing attaches the term to an attack often enough that it has picked up a hostile connotation nothing in its meaning requires. Used in cybersecurity, the word names the same structural idea as the payload of a network packet or an API request, and what changes between those cases is whether the function being performed was authorized.
What a Payload Means Outside Security
Transport supplied the term, where a vehicle's payload is the cargo it exists to carry, as opposed to the fuel and structure needed to get that cargo anywhere. Computing kept the distinction and applied it layer after layer, wherever something is wrapped for delivery.
IPv6 gives the most precise case, since RFC 8200 defines a packet as a header followed by its payload, and sets the Payload Length field to everything after that fixed 40-octet header, counting extension headers inside the payload even though they are not upper-layer data.
Even inside that one specification, the boundary moves, since the Payload Length field counts extension headers while the pseudo-header used for a TCP checksum takes the same figure and subtracts them, and the portion the fragmentation rules actually divide is named the Fragmentable Part instead of the payload. The document also has to carve out the Encapsulating Security Payload, which carries the word in its name and is explicitly not treated as an extension header for that purpose.
The 2022 revision of HTTP went the other way entirely, retiring the terms payload and payload body in favor of content, partly to match field names already in use and partly to avoid confusion with the frame payloads of HTTP/2 and HTTP/3.
What Makes a Payload Malicious?
What separates a malicious payload from an ordinary one is nothing in the code itself, since the routine that backs up a database can also destroy one, and a remote shell serves an administrator and an intruder equally well. The difference sits with authorization, held by whoever owns the system the code runs on, which is why one binary can be a tool on one host and an intrusion on the next.
Effects fall into a handful of recurring categories, among them establishing persistent remote access, harvesting credentials, encrypting files for extortion, consuming compute for mining, and destroying data outright. Sorting by effect is more useful than sorting by family name, because a single piece of malicious code frequently carries several and selects among them after it has profiled the host it landed on.
How Payload Delivery Works
The phrase payload delivery covers a chain rather than a single step, and the chain breaks into parts that can each be defended separately. A carrier arrives first, whether an email attachment, a file on a shared drive, a compromised software update, or a page the browser loads on its own. Something then causes execution, which may be a person opening the file, a macro firing, a scheduled task, or an exploited flaw. A retrieval stage frequently follows, fetching the bulk of the code from an address the first stage already knows.
Each of those steps is a separate opportunity for a defender, since blocking the carrier at the mail gateway, denying macro execution by policy, and refusing outbound connections to unrecognized hosts are three independent controls. A chain that survives all three still has to execute something, which is the point at which runtime security applies.
When There Is No Payload to Find
The limiting case is no file at all, which is the subject of joint guidance on living off the land techniques published by ten agencies across five countries, led by CISA with the NSA and FBI. The tools an attacker uses in that model are the ones already installed on the machine.
Two findings in that guidance belong together, since the approach stays effective with little or no investment in tooling by the actors using it, while weaknesses in network defense leave administrators finding it difficult to separate malicious activity from legitimate behavior. No payload file arrives in that case, so there is nothing for a scanner to examine.
Detection by content was already under strain before that case arrived, because packing, encryption, and recompilation change a payload's bytes wholesale while leaving its function intact.
Execution is the one step a payload cannot skip, whatever shape it arrived in. Raven Runtime Prevention reads that action as it happens and halts it before the effect lands. See it at Runtime Prevention.

