A network attack in which an intruder gains access to a network and stays there, undetected, with the intention of stealing data over a long period of time is known as which of the following
A. Denial-of-service attack
B. Man-in-the-middle attack
C. Zero-day attack
D. Advanced persistent threat (APT)