Federal prosecutors are conducting a criminal investigation into whether Goldman Sachs Group Inc. or its employees committed securities fraud in connection with its mortgage trading, people familiar with the probe say.

The investigation from the Manhattan U.S. Attorney's Office, which is at a preliminary stage, stemmed from a referral from...