A pre-shared key is used for authenticating the peers and also used in protecting the DH key exchange because it's possible to man in the middle the DH exchange.
Does this mean that if an attacker knows the pre-shared key he can man in the middle the initial IKE phase 1 negotiation so the encryption keys for the ipsec connection are compromised?