A teenage hacker launched an attack on a chatroom user that brought chaos to America's busiest seaport in what police believe to be the first electronic attack to disable a critical part of a country's infrastructure.