No, in your case the crime isn't the fact that you modified the rifle, the crime is that you modified it into an illegal version of the rifle. The crime is possession of a full auto rifle.
If I take a rifle that was setup for one caliber and modify it so it can shoot a different caliber, that's not illegal.
Same with firefox