Two are sentenced for defense tasks online