Three sophisticated hackers broke into the computer systems of JPMorgan Chase, Dow Jones and 10 other ­finance-related companies — and used the data to run a pump-and-dump stock scheme, illegal online ­casinos and other scams that netted them hundreds of millions of dollars, the feds charged on Tuesday.

“By any measure, the data breaches of these firms were breathtaking in scope and in size. The defendants allegedly stole personal information of over 100 million customers, including 83 million customers from one bank alone, the single largest theft of customer data from US financial institutions ever,” US Attorney Preet Bharara said, referring to the 2014 hack of JPMorgan Chase.

Gery Shalon, 31, and Ziv Orenstein, 40, Israeli citizens in custody in that country; Joshua Aaron, 31, a US citizen believed to be on the lam in Russia, and other co-conspirators allegedly used 200 different IDs, including more than 30 fake passports issued by the United States and other nations.

The false identities allowed them to operate the stock swindle, which brought in tens of millions of dollars that they then laundered through 75 shell companies and accounts in more than a dozen countries, Bharara said.

“In our view, the conduct alleged in this case shows a brave new world of hacking for profit. It is no longer hacking merely for a quick payout. Rather, it is hacking in support of a diversified criminal conglomerate. It is hacking to locate victims, it is hacking to spy on the competition, it is hacking to maximize profit. In short, it is hacking as a business model,” Bharara said.

“In a way, it was securities fraud on cyber steroids.”

The feds said the scammers also made hundreds of millions of dollars in illegal online casinos and also ran an illegal bitcoin exchange. Another defendant, Anthony Murgio, was charged previously over the bitcoin exchange.

All three men were charged in July with related crimes, though the hacking crimes were not specified then.

The criminal businesses generated hundreds of millions of dollars in illicit proceeds, which Shalon concealed in bank accounts around the world, Bharara said.

In emails released by the government, Shalon bragged that his sale of shares in one company was “a small step towards a large empire. We buy them very cheap, perform machinations, then play with them.”

He also wasn’t worried about getting caught because he was operating primarily in Israel.

“There is nothing to be afraid of in Israel,” he said.

Shalon also said he was getting a passport in another name.

And he mocked Americans for falling for the pump-and-dump scam, saying that buying stocks in the United States is “like drinking freaking vodka in Russia.”

Speaking about hacking into executives’ emails for “secrets,” he said, “Yes, this is a very cool idea . . . We need to think how we can do it.”

Shalon also boasted about one successful hack, saying they had gotten “probably 9 million unique” customer records. “We got what you wanted, so now show me how WE make out of it 100mil [$100 million] a year.”

While the JPMorgan hack was successful in getting some customer information, others were less so.

In April 2014, Shalon tried to used the “heartbleed” computer bug — a cyber vulnerability — to access Fidelity, a major Boston-based financial institution — but was quickly found out and shut out of the company’s systems, ­according to the indictment.

“We have no indication that any Fidelity customer accounts, customer information or related systems were affected by this matter,” Vincent Loporchio, a company spokesman, said in an ­email.

Last month, two Dow Jones publications, the Wall Street Journal and Barron’s, said they discovered they had been hacked. A Dow Jones rep said the company was cooperating in the probe.

The three scammers were charged in​ a 23-count, 68-page ­indictment unsealed Tuesday in Manhattan federal court ​with computer hacking, securities and wire fraud, identity theft, Internet gambling and money laundering.

Meanwhile, a related indictment unsealed Tuesday in Atlanta charged Shalon, Aaron and a third, unidentified person in a scheme to hack into E-Trade ­Financial Services Corp. and Scottrade Financial Services Inc. to steal personal information from millions of customers with the intent to build their own ­securities brokerage.

US Attorney John Horn in Atlanta said Shalon and the unidentified hacker used online chats to discuss their plan, and that they had some success cold-calling investors and had discussed selling their database to another bank.

Horn said the contact info of more than 10 million E-Trade and Scottrade customers was compromised in the late-2013 attack.

Charges related to those companies were included in the New York indictment, but the companies were not identified by name.

With AP