Under 18 U.S.C. § 951, it is generally illegal to act in the United States as an agent of a foreign government without providing notice to the Attorney General. Although the defendant must act on behalf of a foreign government (as opposed to other kinds of foreign entities), the acts need not involve espionage; rather, acts of any type suffice for liability.