Microsoft is paying more than $25 million to settle federal corruption charges involving a bribery scheme in Hungary and other foreign offices.
The U.S. Securities and Exchange Commission said Microsoft will pay about $16.6 million to settle charges that it violated the Foreign Corrupt Practices Act. While the case centered on Hungary, the SEC said it also found improprieties at Microsoft offices in Saudi Arabia, Thailand, and Turkey.
The Justice Department said Microsoft will also pay an $8.75 million criminal fine stemming from the Hungarian bid-rigging and bribery scheme.
Federal prosecutors said that from 2013 through 2015, a senior executive and other employees at the Hungary office took part in a scheme to “inflate margins in the Microsoft sales channel” in connection with Microsoft software licenses sold to Hungarian government agencies.
Savings were falsely recorded as discounts and used for corrupt purposes, the prosecutors said.
Microsoft President Brad Smith said in a letter to employees Monday that the misconduct was “completely unacceptable” and involved a small number of employees.
Smith outlined changes to prevent public sector discounts from being used improperly and said the company is expanding its use of artificial intelligence to flag suspicious transactions.
More must-read stories from Fortune:
—The fall and rise of VR: The struggle to make virtual reality get real
—The Internet as we know it needs ‘a complete replacement’
—Nintendo has a bold plan for competing with streaming
—Why an EU investigation into Amazon could change the way the e-tailer works
—Listen to our new audio briefing, Fortune 500 Daily
Catch up with Data Sheet, Fortune‘s daily digest on the business of tech.