The US Congress has approved a spending bill that includes legislation aimed at keeping military software safe from foreign hacking.
The bill, which was approved on Wednesday, requires tech companies to disclose if they allowed countries such as China and Russia to look closely at software sold to the US military, Reuters reports. Allowing foreign powers to examine the source code of software could aid them in attacking government systems, according to security experts.
The legislation also creates a database of software that's been examined by foreign states considered to be a cyber security risk. The database will be searchable by other government agencies and available to public records requests.
"This disclosure mandate is the first of its kind, and is necessary to close a critical security gap in our federal acquisition process," Sen. Jeanne Shaheen, the New Hampshire Democrat who drafted the bill, told Reuters.
"The Department of Defense and other federal agencies must be aware of foreign source code exposure and other risky business practices that can make our national security systems vulnerable to adversaries."
President Donald Trump is expected to sign the bill.
The legislation was passed by Congress a little more than a month before executives from Facebook, Twitter and Google will face another round of questioning by lawmakers about Russian interference in US elections, at a hearing.
On Tuesday, Vice President Mike Pencefor US cybersecurity issues on former President Barack Obama, saying that the Trump administration "inherited a cyber crisis."
: Who's out of toner now, punk?
: Too bad we still need it.