The CIA did not typically work inside the American legal system. The agency was chartered by an American law—the National Security Act of 1947—and its employees were subject to prosecution in the United States if they defied orders, carried out unauthorized operations, or lied under oath. But the CIA’s espionage and paramilitary operations overseas were conducted in secret and were not subject to review by American courts.