Vigilantism

the act of enacting perceived justice summarily and without legal authority

A vigilante is a civilian or organization acting in a law enforcement capacity (or in the pursuit of self-perceived justice) without legal authority.