A convicted murderer serving a life sentence for killing four people with a claw hammer has been accused of attacking a fellow inmate with a hammer.