(CNN) Prosecutors with the New York district attorney's office interviewed Donald Trump's former personal attorney Michael Cohen in recent weeks as part of their investigation of the Trump Organization's handling of hush money payments, according to people familiar with the matter.

Officials from the district attorney's office, led by Cyrus Vance, interviewed Cohen at the federal prison in Otisville, New York, where he is serving a three-year sentence after pleading guilty to multiple crimes including campaign finance violations tied to payments to two women alleging affairs with Trump a decade ago. Trump has denied having affairs with the women.

The district attorney opened the investigation last month and sent subpoenas to the Trump Organization and American Media Inc. seeking documents and records relating to payments made to Stormy Daniels and Karen McDougal to silence their allegations ahead of the 2016 presidential election.

The investigation is looking into whether the Trump Organization violated a New York state law involving false business records. Investigators are exploring whether the real estate company falsified its records in describing the reimbursement to Cohen for the payments.

Prosecutors met with Cohen shortly after they opened their investigation, according to one of the people familiar with the matter. Cohen is one of several people with knowledge of the payments who would be of interest to investigators, but he has credibility issues for any potential case. Cohen pleaded guilty last year to lying to Congress about plans to build a Trump Tower in Moscow.

Read More