For a piece of square stock 1/4", 3/8", 1/2", 3/4". or 1", you might be able to use a square drive socket. For other sizes maybe a 12 point deep socket. Another idea might be a piece of plastic stock pressed over the square piece, maybe using heat and melting it to fit.