“and all civil officers of the United States…”
It does apply to the Secretary of Defense.
Good catch, but remarkably fuzzy at the edges as to what qualifies an appointee as "an officer." If they had set it to "all officers requiring Senate confirmation" that would have been much more workable.