The line here is always arbitrarily set, so you’d want to look up what it is at your specific company.
There are very likely laws defining where that line can be set, as Dippy’s comment suggests. It is very likely that the employer is legally obligated to pay an hourly employee for any time they require that employee to be on site, which would include employer-mandated security checks.