Hi,
They do it after the interview:
- HR will check your transcripts after you get the offer
- Security service will check your background, if you have equities in other companies, employment records, etc. They may call prior employers undercover to check some info, but they will be just checking the details of your employment, not your performance.
Best,