Before offering you the job, companies look for following details during a Legal verification process.
Your public records - Companies can easily access your court records and criminal history from any law enforcement agency.
Your work history - Companies will dig up your past employers, dates you worked with them, your role in each company, your pay, performance history, your conduct in the company and so on. And don't forget the drug test results!
Education Records - Companies will reach out to your university to match your credentials. This is a sure thing because forging degrees, fake certificates and bogus grades are actually the most common types of corporate frauds.
Address verification - Who lies about their address, right? The ones who are trying to hide their past, that's who.