No, it’s never been declared illegal like it was in the USA (Article 1, Sections 9 and 10); it just hasn’t been used since then.
Churchill was apparently considering attainder for the purpose of expediting the execution of Adolf Hitler and other Nazis during and after WWII.
Attainders by confession, verdict and process were abolished in the United Kingdom by the Forfeiture Act 1870.