She told the court she conducted an internal investigation into whether staff had leaked the NZ First leader's private information after it had become public.
Raines, who has worked at the ministry for 38 years, said she looked into everyone who had viewed Peters' records and scrutinised all phone and email communication between staff and media.
The inquiry identified 41 people who'd had some involvement with the case, but only 11 with enough information to possibly be the source, she said. All 11 were then interviewed.
"There was no evidence to indicate that any staff member in the ministry was the source of the leak to the media," Raines told the court.
But Peters' lawyer Brian Henry pressed the matter: "Do you agree that if someone set out deliberately to do this they would use all of their knowledge to try to leave no footprint behind?"
"I'm sure that's correct," Raines replied. She also agreed that face-to-face conversations or those over a burner phone could not be tracked.
Henry put it to Raines that the "source at the top of the chain to the media" had to be one of a "very small group" of MSD staff or the two National Party ministers, Paula Bennett and Anne Tolley.
"Possibly," Raines said.
"Well, if it didn't come from that group ... where could it have come from?" Henry asked.
Raines said although there was a "good possibility" that one of them was the source, it's possible someone else also knew the information.
"I guess, to speculate, somebody could have heard a conversation," Raines said. "They could have picked up a piece of paper off a printer."
The hearing continues next week with State Services Commissioner Peter Hughes and former MSD chief Brendan Boyle to give evidence.
- RNZ