You draw the system, mark where data crosses a boundary, list threats per element and decide a mitigation for each. It is cheapest when done at design time.