Authorities accuse an Arizona man of hiding methamphetamine inside a stuffed animal and cereal boxes as he shipped packages of the drug to Massachusetts.

Federal investigators said they discovered 27-year-old Brandon Greenberg of Phoenix had mailed more than 20 packages to addresses in Somerville and Boston. The packages contained methamphetamine, authorities said.

Greenberg, who was indicted on federal charges of conspiring to distribute methamphetamine and distribution of methamphetamine, will appear in a Boston federal court Tuesday.

An affidavit filed in federal court by U.S. Postal Inspector Christopher Mullen said authorities from his office, the DEA, Boston police and Massachusetts State Police began investigating Greenberg and learned from November 2018 to July 31 that the Arizona man had shipped drugs to Massachusetts.

In April, Mullen obtained a search warrant to check one of the packages sent to Somerville.

“The parcel contained two Ziploc-style bags, one wrapped in a small blanket and the other secreted inside a stuffed bunny rabbit,” the investigator said.

The bags contained just under 940 grams of methamphetamine, according to federal records.

“Later in the investigation, agents conducted a controlled purchase of methamphetamine from Greenberg and seized 486 grams hidden inside three cereal boxes that were then placed in a package mailed by Greenberg,” authorities said.

Investigators executed a search warrant at Greenberg’s home in Phoenix and seized an additional 486 grams of methamphetamine from his bedroom, the U.S. Attorney’s Office said.