An attacker was able to compromise a developer account and steal a portion of the LastPass source code recently, the company said. But no customer data was affected.