More than a dozen people were charged on Thursday over an alleged train-heist operation that stole more than $22m in cargo, including popular shoes and power tools, from major retailers.

A federal indictment unsealed on Thursday alleges that an organized group targeted more than three dozen trains carrying Nike sneakers, Crocs footwear, power tools and other consumer goods imported into the United States through Los Angeles and Long Beach, home to the country’s busiest ports.

The indictment alleges the men disabled trains at planned locations by busting the brakes, then unloaded goods onto trucks. The merchandise was allegedly sold to an unnamed company that would resell it for profit.

Train shipments to stores and customers around the country have become a prominent target for large-scale theft in recent years, particularly at major US ports that receive hundreds of millions of dollars in shipments each day. The robberies have drawn attention from major retailers, including Amazon.

“The scale of the theft is staggering,” said first assistant United States attorney Bill Essayli, who promised to prosecute future efforts to steal merchandise.

In group chats, the men shared photos and videos of themselves breaking into train cars and posing with cash and stolen goods. They also shared AI photos captioned “Los Trenes”, which means the trains in Spanish, showing glamorized scenes of men throwing boxes of shoes from trains into nearby cars as police helicopters descended overhead.

The 13 men were indicted on charges of conspiracy and theft of interstate railroad cargo. Two were also charged with violence against railroad carriers. If convicted, they could face five to 20 years in federal prison.