Vietnam will compensate businesses hit by anti-China riots, which exploded across the country last week over a territorial dispute in the South China Sea.

Factories were torched and at least four workers were killed, according to the Metallurgical Corporation of China, after thousands of people attacked factories and businesses in Vietnam. Hanoi has promised to provide financial assistance to the businesses affected by the violence, including tax relief, rent waivers and early lines of credit, according to a government statement late Wednesday.

The tax relief measures will include a maximum 30 percent cut in special consumption tax for 2014, as well as a two-year delay in payments for taxes that arose before this month, the government said, adding that Vietnam will also remove barriers to hiring foreign workers.

Prime Minister Nguyen Tan Dung has already called on the finance ministry to push insurance firms to accelerate damage assessments and payments to affected companies. 

Anti-China riots erupted last week after Beijing deployed a massive oil rig in a disputed part of the South China Sea that Hanoi also claims. A number of Taiwanese firms were mistakenly attacked because the crowds mistook them for firms owned by mainland Chinese. 

However, at the ongoing World Economic Forum on East Asia in Manila, Dung also said Thursday that Vietnam is looking at "defense options" against China such as legal action against China’s deployment of the oil rig, Reuters reported.

Thousands of Chinese and Taiwanese workers were evacuated from the country amid the violence, although most companies based in the affected areas have now resumed operations.