An attack vector is a method used by hackers to illegally access a computer system. Hackers use numerous methods to breach a software. Some methods of an attack vector include malwares and viruses, malicious emails, and web links.
What is the difference between an attack vector and an attack surface?
An attack vector is a type of malicious method to gain unauthorized access to a computer.
An attack surface is the number of vulnerable points where an attack vector can penetrate to get access to your computer.