Question: are bills of attainder legal?
Answer: The United States Constitution forbids legislative bills of attainder: in federal law under Article I, Section 9, and in state law under Article I, Section 10. ... The text of the Constitution, Article I, Section 9, Clause 3 is "No Bill of Attainder or ex post facto Law shall be passed".