Bayliss always thought it was Munch, at least.
When Tim is ready to commit his murder at the end of
the series, he brings the case back up to Munch. He
even tells him that he always suspected him. All clues
from the episodes would point to John Munch, but it's
never clearly spelled out.