A raw packet is a network message constructed directly at a protocol layer, such as IP, rather than sent through higher-level tools that handle details like HTTP requests. Programs may use raw sockets to build or inspect packet headers and payloads. On Linux, raw socket operations generally require the CAP_NET_RAW capability.
Raw packets matter in security because they can support network diagnostics and specialized protocols, but they may also be used for probing or attempts to bypass ordinary application-level controls. Creating a packet does not mean it reached a destination: operating-system permissions, routing, and network egress filters can still block it. Defenders should restrict raw-socket privileges where unnecessary, enforce outbound controls independently of proxies, and monitor unusual or denied network activity.


