The security of minimally invasive surgery with an autonomous flexible endoscope