The document presents a protocol for external agent authentication and session key establishment in wireless sensor networks (WSNs) using public key techniques. It addresses various security threats faced by resource-constrained sensor nodes and proposes a public key-based authentication system that is efficient compared to traditional symmetric key methods. The study includes an analysis of existing protocols and introduces the PKASK protocol, which features registration, authentication, and session key establishment phases, aimed at enhancing security while considering the limitations of WSNs.