If the permit is lost you can apply to replace it online.
If it was stolen you need to go in person to replace it. You don't need to take the test etc.
https://mva.maryland.gov/drivers/Pages/md-drivers-license.aspx#lostlicenseorpermit
Lost Maryland License or Permit
You must obtain a duplicate driver’s license or permit online. The license or card will be mailed to the address on record at the MVA. Please click here.
Stolen Maryland License or Permit
If your license has been stolen, you must apply in person at an MVA branch office for a duplicate license providing there are no changes to the information on your license. Please follow the instructions here. Refer to the sources of proof for examples of documentation to prove your identity when you visit the MVA branch office.