Antibodies are not the full story.
The really important part of the immune system are the T Cells, it is only the T-cell that can cleverly sense and destroy pathogens inside infected cells using “sensors” which detect foreign protein fragments.
THIS is a link to a good explanation in the BMJ.