(CNN) The FBI's top two cybersecurity officials are planning to leave the bureau, the FBI confirmed Thursday.

David Resch, the executive assistant director in charge of the FBI's Criminal, Cyber, Response and Services Branch, is retiring after more than two decades of service, as is Scott Smith, who worked under him as the head of the Cyber Division.

The moves are not atypical for FBI agents who have hit the work milestones that the men recently did, making them eligible to receive retirement benefits. But they come as threats in the cyber world, like Russia's election interference and online foreign influence campaigns, have reached a point of alarm.

In a statement provided by the FBI, Resch expressed a continued appreciation for the bureau and confidence in its director, Christopher Wray.

"As I retire after 28 years of government service to transition into the private sector, I have full confidence that under Director Wray's steadfast leadership, the Bureau will remain the FBI the American people have depended on for 110 years," Resch said.

Read More