Thou shall not steal is very relevant and is a proscription of socialism.
The socialist says give me your vote and I will take from your neighbour what is his and give it to you. This theft he calls 'redistribution of wealth'.
(Then is the thief similarly engaged in redistribution of wealth when he breaks in to your house and removes your goods.)
Ergo the 10 commandments preclude the evil of socialism.