Punishing someone for an action that did not used to be a crime is an example of an ex post facto law. habeas corpus. a necessary and proper law. a bill of attainder.
Answer: ex post facto law This law allows actions to be held as crimes even if they were legal when committed. Thus, this law changes the consequences or punishments of the actions regardless if they were legal or neutral.