The Office of Foreign Assets Control, or OFAC, is the part of the US Treasury Department that administers and enforces economic sanctions. It maintains lists of sanctioned individuals, groups and countries and prohibits US persons and companies from dealing with them. Its rules matter for ransomware because some attackers are on sanctions lists or connected to sanctioned entities.
OFAC has published guidance saying that paying a ransom to a sanctioned party can create legal exposure, and that this can apply even when the payer did not know who they were paying. The guidance also describes factors it considers, such as whether the incident was reported to law enforcement and whether the victim cooperated.
This summary is general information, not legal advice. Whether a particular payment is permitted depends on the specific facts, who the recipient is and the current rules, which change over time. Sanctions rules also differ between countries.
Anyone considering a ransom payment should first involve legal counsel and the incident response team, check current OFAC guidance directly and consider contacting law enforcement. Document the decision process and the checks that were made.