The story
Originated in several discussions in 2000-2001 on Internet forums devoted to firearms, in which a poster bragged about his firearm expertise while claiming to be a "Sergeant of a three-man Rapid Tactical Force" at an American mall, trained in "ninjitsu". He was soon nicknamed "the mall ninja".
Etymology from Wiktionary, CC BY-SA 4.0.