North Korea has threatened the US with countermeasures, after the US accused the country of cyber attacks.