I immediately notice my memories being sorted through and have to bite back the instinct to defend myself with occlumency. The Sorting Hat is presumably a trustworthy confidant, or else nobles wouldn't trust their kids to it.