Vigilantism

act of preventing and punishing crimes 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.