The Justice Department is investigating whether Standard & Poor's improperly rated dozens of mortgage securities in the years before the financial crisis, The New York Times reported on Thursday, citing sources familiar with the matter.

The investigation began before S&P, a unit of McGraw-Hill, downgraded the long-term U.S. debt from a AAA rating to AA-plus this month, the paper said.

In the mortgage investigation, the Justice Department has been asking about instances in which S&P analysts wanted to assign lower ratings to mortgage bonds but may have been overruled by S&P business managers, the Times reported.

Justice Department spokesman declined to comment on the story upon being contacted by Reuters. S&P did not immediately respond to phone calls seeking comment outside regular U.S. business hours.

It was unclear whether the Justice Department investigation also involves the other two ratings agencies, Moody's Corp and Fimalac SA's Fitch, or only S&P, the newspaper said.

The paper quoted Ed Sweeney, a spokesman for S&P, in an e-mail that the agency had received several requests from different government agencies over the last few years and that it was cooperating with these requests.

The Times said that despite the outcry over the ratings agencies' failures in the financial crisis, investors still rely heavily on ratings from the three main agencies for their purchases of sovereign and corporate debt, as well as other complex financial products.

Companies and some countries, though not the United States, pay the agencies to receive a rating. For decades, the government issued rules that banks, mutual funds and others could rely on a AAA stamp of approval for investing decisions -- which bolstered the agencies' power, the newspaper said.

A successful case or settlement against a giant like S&P could accelerate the shift away from the traditional ratings system, the Times said.

For instance, the Dodd-Frank financial reform overhaul sought to decrease the emphasis on ratings, but bank regulators have been slow to spell out how the reform would work.

S&P has been under fire from lawmakers, market players and the U.S. Treasury Department since its decision to cut the U.S. credit rating.

The U.S. Securities and Exchange Commission was also reviewing whether S&P followed all of its policies leading up to the credit downgrade, according to sources familiar with the review.

Key committees in Congress may also hold hearings about the downgrade and reforms of the ratings industry.

(Reporting by Soham Chatterjee in Bangalore and JoAnne Allen in Washington; Editing by Philip Barbara and Ramya Venugopal)