The criminal defense used in this scenario is alibi. The defendant is claiming that they were in a different location during the time of the crime and providing evidence to support their claim. The time clock records and security cameras at the defendant's place of work are used to prove the alibi and clear their name.