look for companies that either build prisons, manage prisons, supply security guards, supply food (they would probably also supply hospitals and schools), check if they are publically traded and buy the stocks of the one you see being the most profitable in the longterm.
you could also buy stocks in companies that have stock in them.