Its a good question....
What a Muslim must do if Islam is attacked?
Peace anjjan
No ... your paraphrasing is an inanity! Islam cannot be attacked. Muslims can be, or innocents can be. Fighting to defend ourselves and fighting to defend innocents is our instruction.
Bad behaviour of Muslims is enough to damage the image of Islam ... but Islam cannot be under attack as such.