Quick search by citation:

10 U.S. Code § 1585 - Carrying of firearms

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.

(Added Pub. L. 85–577, § 1(1), July 31, 1958, 72 Stat. 455.)