The Bankers were poised to pick up a point from a game with the score at 0-0, but a last-minute mistake by Michael Kibwage gifted the 2009 league champions a penalty.
The former AFC Leopards defender brought down Stephen Waruru inside the area in the third minute of added time, and that proved the turning point of the match in favour of Sofapaka.
As he did in the reverse fixture earlier in the season, Umaru Kasumba took the spot kick successfully and secured the win, which saw Batoto ba Mungu go joint top of the KPL table with Gor Mahia, albeit having played four more matches.
After the match, Baraza praised the Bankers, but was happy to have secured the three points nonetheless.
"It has gone the way we wanted and we have gotten the points we fought for. What I can say is that KCB really played well. Unfortunately, their defender made the mistake that led to the goal,” Baraza told Goal .
“Maybe it was written in the sky (referring to the penalty won at the dying moments of the match like it was in the first leg encounter in Machakos too) because it repeated itself like before. Ours is just to congratulate the boys as they did what they were asked to do on the pitch,” added Baraza.
The victory was Sofapaka's second consecutive away win since beating Zoo FC a week before. The next opponent for Baraza and his charges are Kariobangi Sharks on April 18.