get the goods

Verb
  1. discover some bad or hidden information about
    • She got the goods on her co-worker after reading his e-mail