Avoiding detection and inflicting pain are among the techniques being taught following a surge in violent attacks.