Improved and fixed the security docs

(cherry picked from commit fcb5a1fb355dfa3ae146db0578a69cc1ff5e6656)