Payloads: What a Packet Carries and an Attack Delivers
A network packet carries instructions about how to handle it, along with contents that need to be carried. Those contents are its payload. They may be part of an ordinary, harmless exchange. Security reports also use payload for the code or content delivered to carry out an attack.
One Layer's Contents Can Include Another Layer's Instructions
A header supplies handling information for a particular set of communication rules, called a protocol. The payload is what that protocol carries.
For example, the Internet Protocol version 6 (IPv6) specification defines an IPv6 packet as its header plus a payload. The payload can include extra control headers and information from a transport protocol, which manages the exchange between the sending and receiving systems.
- Stop ransomware and malware before they reach your files.
- Bank and shop in a browser built to keep transactions private.
- Cover five devices, from Windows and Mac to phones.
So the payload isn't necessarily just a person's words or photograph. It may carry another protocol's instructions as well as the data that an application sent. The meaning depends on which layer of the packet you are describing.
An Exploit Opens a Route; a Payload Has a Job
In an attack discussion, payload commonly means code or content delivered to perform an intended action. It might collect information, establish remote control, fetch more code or damage data.
An exploit takes advantage of a weakness. The payload performs the chosen follow-on work. Rapid7's Metasploit glossary distinguishes these roles. They needn't be separate files, and not every attack uses a software exploit.
Suppose an attacker uses a flaw to make a computer run a program that encrypts files. Exploiting the flaw gives the attacker a way to run code. The program's payload behavior scrambles the files so their owner cannot read them. MITRE describes this data-encryption technique as an impact that may support ransom demands.
The program could also arrive but never run, or start and fail before encrypting the files. Finding the delivered program therefore doesn't establish that the files were damaged.
A single piece of malware, or harmful software, can combine delivery, spreading and damaging behavior. Payload describes its intended work; the term doesn't require the program to spread copies of itself.
A Virus, a Worm, or a Trojan? The Difference Matters
The First Component May Fetch the Next
Some designs divide the work into stages. Rapid7's payload documentation describes a small initial component that brings in a later one. Its single-stage designs carry out their work without that same two-part transfer.
The first component an investigator finds may therefore be a loader. Its immediate job is to obtain the next component, whose behavior supplies another part of the attack.
Headers: The Hidden Instructions Traveling With Your Data

Malicious Code: The Unwanted Instructions in Useful Software

Exploits: How a Weakness Becomes a Working Attack

QUOTE:
"Amateurs hack systems, professionals hack people."
