10 USC § 1585
Carrying of firearms
through Public Law 119-27, except Public Law 119-21
Under regulations to be prescribed by the Secretary of Defense, civilian officers and employees of the Department of Defense may carry firearms or other appropriate weapons while assigned investigative duties or such other duties as the Secretary may prescribe.