So I was browsing through the Vairocanasambodhi Sutra (Mahavairocana Sutra) which is one of the main texts of esoteric Buddhist sects like Shingon and came upon chapter 14 "Eight Secret Seals". And to my surprise it explains eight Mudras of Buddhist practice which appear to be quite the same as the Kuji-In Mudras used by the ancient Ninjas for enhancing their martial and psychic power.
You can read the Sutra here
https://www.bdkamerica.org/digital/dBET ... a_2005.pdf
I have read a lot of articles about Ninja and usually the opinion of scholars, academicians and Ninja practitioners is that these Mudra practice originated from Taoist or Shinto or Shamanic elements from either Japan or China, but it seems to be directly taken from Buddhist sutra. Could it be that the Ninjas were influenced by Shingon Buddhists? I think it is very plausible that Ninjas took advice from Shingon monks in the military arts.

