Which component acts as the electrophile in the synthesis of the Sudan-1 azo dye?
It was mentioned in the comments but I shall mention it again.

Attack does not have to mean nucleophilic attack. In your case, the attack is electrophilic, the electrophile phenyldiazonium attacking the naphtholate.