The key difference is that a firewall filters network traffic while endpoint security is more about protecting physical devices from malicious attacks.