There’s a full-time job for defending our planet from aliens. NASA’s official title for this position is ‘Planetary Protection Officer’, and it’s existed since after the US signed the Outer Space Treaty in 1967. The job involves keeping Earth and other planets safe from contaminates, and it pays up to $187k. Source Source 2

Catharine Conley, NASA’s sole planetary protection officer