A North Korean hacker who attempted to infiltrate the ranks of a US tech company has been caught red-handed.