Security Audit — socket — write-tests