 Following the October Revolution, Ulanovsky returned to Russia and enlisted in the Red Army.He served as the deputy-commander of an armored train (under anarchist revolutionary Anatoli Zhelezniakov) and took part in fighting against White armies in Ukraine and Crimea.After the Russian Civil War, he joined Soviet military intelligence and served as a secret agent in, among other places, Buenos Aires and Shanghai.