French security services have detained a civil servant suspected of having tried to pass sensitive government information to a North Korean spy, a judicial source said on Monday.