In the wake of major hacks against firms such as Sony Pictures and Home Depot, US President Barack Obama will reportedly push for new cybersecurity legislation.

The US President has suggested that companies need to quickly share information about attacks within a month.

The White House said in a statement: "So under the new standard that we’re proposing, companies would have to notify consumers of a breach within 30 days."

"In addition, we’re proposing to close loopholes in the law so we can go after more criminals who steal and sell the identities of Americans — even when they do it overseas."

The new legislation also calls to prohibit firms from selling student information to third parties or otherwise using student data for their own benefit.

Furthermore, a federal standard would substitute a ‘patchwork’ of different state policies throughout the nation.

Obama also proposed measures to enable the prosecution of the sale of botnets, as well as authorising courts to shut down botnets accountable for DDoS attacks.

The measures were also aimed at preventing spyware sales and making the sale of stolen credit card data abroad a crime.

Most recently, the Twitter and YouTube accounts of the US military command were allegedly attacked by a pro-IS group, with a note: ‘American soldiers, we are coming, watch your back’.