Although it forbids establishing military bases, testing weapons and conducting military maneuvers on celestial bodies, the treaty does not expressly ban all military activities in space, nor the establishment of military space forces or the placement of conventional weapons in space.
Well, I guess I never bothered to learn about it more than a general "don't weaponize space" sentiment. It expressly forbids weapons of mass destruction in space, but I guess less powerful weapons are fine.