A new technique to assess network security