1. A method for detecting a hijacking of computer resources, located in an internal network implementing security and confidentiality criteria specific to this internal network, connected to an external network with no such security and confidentiality criteria, through a connection ( 104 ) managed by a service provider, comprising the steps of: storing a connection parameter implemented by the computer resources to communicate with the external network; processing the stored connection parameter based on an irreversible function to generate a unique code that corresponds to said stored connection parameter but which does not allow the identification of said parameter from the corresponding generated code; and sending said generated code to a server located on the external network so that the server can analyze the activity of the computer resources from said unique code and detect any hijacking of the computer resources.