Medical system prevents attack