Minor correction: in 1947, when the AK was developed, World Wide Socialist Revolution, as you put it, was not on the agenda for quite some time. The idea of Soviet autarky (“establishing socialism in one particular country”) has been adopted by Stalin as far back as in 1924, the World Revolution slogan has been removed from the USSR Constitution when it was revised in 1936, and by 1943 Stalin has done away with Comintern, the organization which was conceived (by Lenin and Trotsky, originally) with the aim of propagating revolution to capitalist countries.
In 1947, USSR was indeed preparing for a possible World War III against the US and UK, but the general idea of this war, at least in the East, was that of a conflict of nations. That said, guerilla tactics and the involvement of irregular fighting forces had proved to be quite effective during WWII, and so, of course, the new weapon had to be designed with such uses in mind.