North Korea has mastered hacking into both old and new financial systems to funnel billions of dollars to its nuclear weapons program, according to a new United Nations report.

North Korean agents have amassed about $2 billion by stealing money from financial institutions and cryptocurrency exchanges, a panel monitoring the enforcement of U.N. sanctions reported to the Security Council.

In addition, Kim Jong Un's regime has about "30 overseas representatives controlling bank accounts and facilitating transactions, including for illicit transfers of coal and petroleum," the panel said.

"Ongoing deficiencies in Member States' implementation of financial sanctions combined with DPRK's deceptive practices enabled the country to continue to access the international financial system," the panel said, using the acronym for the Democratic People's Republic of Korea. "Large scale attacks against cryptocurrency exchanges allow the DPRK to generate income in ways that are harder to trace and subject to less government oversight and regulation than the traditional banking sector."

Aggressive sanctions enforcement is central to President Donald Trump's effort to get Pyongyang to eliminate its nuclear weapons program. North Korea's foreign ministry on Tuesday renewed its threat to take a "new road" in negotiations with the U.S.

Tensions have steadily increased since Trump became the first sitting U.S. president to set foot in North Korea on June 30 and agreed to restart working-level talks in two to three weeks. North Korea kept its top diplomats away from a chance to meet with U.S. Secretary of State Mike Pompeo at a regional conference in Bangkok last week, while repeatedly testing missiles during his trip.

Another source of hard currency for North Korea may be an army of tech workers, according to the U.N. panel's report.

One U.N. member state told the panel that hundreds of North Koreans are deployed in Europe, Asia, Africa and the Middle East to work as software programmers and developers. They earn about $3,000 to $5,000 a month and pay most of their salaries to North Korean-controlled entities.