BrianClarke, from the Prison Officers Association, said the attack happened as guards were dealing with a prisoner who was on "special conditions" and required three officers to look after him.
Dundee have already paid a similar fee to Livingston for striker Leigh Griffiths and have also snapped up Brian Kerr from Inverness, Steve Clarke from Clyde and Chris Casement from Ipswich this summer.