Under the program , US officials work with foreign port authorities to seek out high-risk cargo before it can reach the United States .