Penetrative testing in Ubuntu can be done using the oscap tool.
Download the latest vulnerability list using the command
wget https://security-metadata.canonical.com/oval/com.ubuntu.$(lsb_release -cs).usn.oval.xml.bz2
Evaluate the vulnerability using the oscap command
oscap oval eval --report report.html com.ubuntu.$(lsb_release -cs).usn.oval.xml
--
Technologies: