Neal Stephenson's excellent (if a little over-long) book Termination Shock suggests another option for dealing with attacking drones. Not going to leave a spoiler here though.
For me, it seemed that with Prey Chrichton had to sacrifice a lot of realism to cram the nanotech shaped pegs into the dinosaur shaped hole he was going for.