A Reuters report said that legislation to this effect had been proposed by Democrat Senator Jeanne Shaheen and given the tick of approval by the Senate Armed Services Committee.
The report hinted that the same strictures on source code reviews would apply to any foreign companies whose software was in use by the US armed forces. And if a review did throw up any anomalies, then the use of that software would be limited to non-classified areas.
The new rules on source code disclosure have been added to the Senate's version of the Defence Department's spending bill which is known as the National Defence Authorisation Act.
US companies have, in the past, allowed inspection of their source code in order to obtain sales contracts. In June 2017, it was reported that McAfee, Cisco, IBM and SAP were acceding to demands by Moscow for source code inspections.
In October last year, Russia was allowed to review the source code of software from Hewlett Packard Enterprise known as ArcSight which is used by the US military for cyber defence.
The inspection was done by the Russian defence agency Echelon which has close military ties. ArcSight is now owned by British mainframe company Micro Focus which bought HPE's software assets in a sale completed in September last year.
Also, Microsoft allowed China to inspect the source code of its operating system, Windows, a process that took two years, before it was allowed to build a product — Windows 10 China Government Edition — that could be sold to the Chinese public sector.
Not even 10 days after the report about ArcSight was published, the chief executive of American security giant Symantec, Greg Clark, said that while he was willing to sell his company's products in any country, “that is a different thing than saying, ‘Okay, we’re going to let people crack it open and grind all the way through it and see how it all works’.”
Symantec changed policy on source code inspections by other countries in 2016.
In what is the exact opposite, Russian security company Kaspersky Lab said it would allow source code review by independent third parties. Use of Kaspersky software has been banned in the US public sector since September 2017.