On 23 May 1941, "Shoreham" intercepted the German merchant ship "Oder", which had left Massawa earlier that day, near Perim. "Oder" scuttled herself. "Shoreham" was refitted in Bombay in April–May 1941, after which she moved back to the Persian Gulf. On 25 August 1941 Britain and the Soviet Union invaded Iran. "Shoreham" was assigned to the attack on Abadan, covering the landing of the 24th Indian Infantry Brigade which was tasked with taking the oil refineries in the city. The landings took the Iranians by surprise, and "Shoreham" sank the which was berthed in the port. After the invasion was completed "Shoreham" returned to the Red Sea, serving as anti-aircraft guard ship at Suez, and in January 1942 transferred to the Eastern Fleet, based at Colombo. "Shoreham" was refitted at Bombay from October 1942 to February 1943 and then moved to the Mediterranean, joining the Levant Command.