The American claimed his maiden win over a top-five player on Friday as he defeated Kei Nishikori 6-3 2-6 6-2 to reach the last four of a Masters 1000 event for the first time.
Australian Open champion Federer now awaits and should be fresh, having been given a walkover due to Nick Kyrgios having food poisoning.
In the other half of the draw, Stan Wawrinka beat Dominic Thiem in a final set tie-break to book his place in the semi-finals where he will meet Pablo Carreno Busta, after he overcame Pablo Cuevas.
The local fans will be more concerned with Sock's progress though and the 11th seed is confident he can push one of his heroes all the way.
He said: "He's the best to ever play. It will definitely be a challenge. It's a testament to him and his ability and skill and taking that much time off and coming back and winning the first major of the year and playing the tennis he's been playing this year.
"Obviously he's playing incredible tennis not only this year but this week. But like I said, on the flip side of that, I am playing confident tennis as well myself. And I think if I go out there and play the right tennis and play the right strategy, you know, I think I can give myself a shot, for sure."