Is there such a thing as US federal criminal law?
The above is all correct, but the simple rule is that there must be an effect on interstate commerce (no matter how minimal) for the federal government to charge a crime. Sometimes that means a crime committed in two or more states, other times, as with computer crimes, you could just send information through several states. Courts have taken an increasingly liberal view of the interstate requirement, thus the tremendous growth of federal prosecutions.