No, they just took a normal weapon and mounted it.
> dangerous. And they can be easily destroyed
Literally all mounted weapons can be described like this.
> Currently there are no serious weapons that can be useful in space.
Absolutely incorrect. The US has deployed laser-based weapons since the early 2000s. Used for missile defense mostly. As you can imagine, they perform well in the vacuum of space.