A ninja , shinobi no mono or shinobi was a spy and infiltrator in pre-modern Japan. Antecedents may have existed as early as the 12th century. Subsequent legends to the contrary, there is little evidence that ninja were assassins.