Taking part in the Malay Emergency, Defender carried out a coastal bombardment on the Johor coast, following which she steamed up the Johor River for 9 miles reminding any hostile watchers of the Royal Navy presence.