The FBI thwarted a potential terrorist attack planned for New Year's Eve, the US Justice Department released on Friday.