Putin signed the law on "the conditions for foreign investment in economic enterprises with strategic importance for the defence of the country and the security of the state", the Kremlin said in a statement.
 
The law has been under discussion for two years and has raised concern among the foreign investor community in Russia as it will widen the powers of the FSB security service, successor to the KGB, in business transactions.
 
Putin is due to hand power to president-elect Dmitry Medvedev on Wednesday after eight years in power.
 
Medvedev is then expected to name Putin prime minister on Thursday.
 
Grozny attack
 
Meanwhile, a bomb attack on a security checkpoint in Russia's oil-important Chechnya province has killed five policemen, police said 
 
The attack occurred just outside the capital Grozny on Sunday, the latest blow to a fragile peace established under Putin.
 
Ramzan Edilov, head of the police department of Staropromyslovsky district, said: "Five interior ministry personnel were killed as a result of an explosion.
 
"According to provisional information, the device was homemade, as nuts, bolts and ball bearings were found at the scene.
 
"The search for the criminals is underway, they will be found and liquidated."
 
Another policeman also died on Sunday from gunshot wounds after two police vehicles came under automatic-weapon fire on the outskirts of the capital.
 
The suppression of Chechen separatists has been touted as one of the main achievements of the eight-year government of Putin, who launched the second Chechen war in 1999.
 
The first war, launched against pro-independence fighters by President Boris Yeltsin in 1994, was widely regarded as a stain on the latter's presidency.
 
An estimated 100,000 civilians and 10,000 Russian soldiers were killed in the two wars.