A replay attack is a network security breach where an attacker intercepts and retransmits a valid data transmission to trick a system into unauthorized operations. This type of attack exploits the lack of temporal authentication in protocols, making it crucial to implement mechanisms like timestamps or nonces to prevent such vulnerabilities.