The Gulf of Tonkin incident comprises two alleged North Vietnamese torpedo attacks on US destroyers USS Maddox and USS Turner Joy in the Gulf of Tonkin in August 1964. The first attack, on 2 August 1964, occurred and is documented. The second alleged attack, on 4 August 1964, did not occur. A 2005 NSA declassified historical study by analyst Robert Hanyok concluded that signals intelligence had been selectively reported to produce a false picture of a second attack that never happened. The Johnson administration used both incidents to secure the Gulf of Tonkin Resolution, providing the legal basis for the Vietnam War. The fabrication of the second attack is confirmed by declassified intelligence records.