When a Miami company developing security software for the U.S. Navy noticed lines of code for the program were being altered, it had no idea who was to blame.

But piece by piece, XTec Inc. claims it unraveled a scheme allegedly masterminded by former employee Larry Hembree to copy its software and sell a competing product to the Navy.