Bills of attainder work every time (until they run into the Constitution).
Irrelevant since the removal of the security clearance was not “arbitrary”.