Presentation on theme: "EC521: Cybersecurity OpenVAS OpenVAS —A how-to guide about the most popular vulnerability test tool Team Members: Yingchao Zhu; Chen Qian; Xingyu Wu; XuZhuo."— Presentation transcript:
EC521: Cybersecurity OpenVAS OpenVAS —A how-to guide about the most popular vulnerability test tool Team Members: Yingchao Zhu; Chen Qian; Xingyu Wu; XuZhuo Zhang; Igibek Koishybayev; 1
Question: How to perform a normal scan with OpenVAS? EC521: Cybersecurity OpenVAS 4
How to find the command set? Solution: #openvas ‘double tab’ OpenVAS-Scanner: openvassd openvas-mkcert openvas-nvt-sync OpenVAS-Manager: openvasmd OpenVAS-Client: openvas-cli Greenbone-Security-Assistant: gsad EC521: Cybersecurity OpenVAS 5
openvas-setup openvas-check-setup openvas-nvt-sync openvas-nasl Reference: http: //www.openvas.org/setup-and-start.html https://www.digitalocean.com/community/tutorials/how-to-use-openvas-to-audit- the-security-of-remote-systems-on-ubuntu EC521: Cybersecurity OpenVAS 6 How to find the command set?
EC521: Cybersecurity OpenVAS XAMPP's name is an acronym for: X (to be read as "cross", meaning cross-platform) Apache HTTP Server MySQL PHP Perl It is a completely free, easy to install Apache distribution containing MySQL, PHP, and Perl. Reference: https://www.apachefriends.org/index.html Target -- XAMPP 7
EC521: Cybersecurity OpenVAS Set a target 8
EC521: Cybersecurity OpenVAS Create a task 9
EC521: Cybersecurity OpenVAS Get the result 10
Question: How to insert plugins into OpenVAS? EC521: Cybersecurity OpenVAS 11
EC521: Cybersecurity OpenVAS Network Vulnerability Tests NVTs The OpenVAS project maintains a public feed of more than 35,000 NVTs (as of April 2014) Command openvas-nvt-sync for online-synchronisation from the feed service. Based on NASL scripts (Nessus Attack Scripting Language) 15
EC521: Cybersecurity OpenVAS Q1: Locate required NVT scripts Security Tools INTERGRATED: Portscanner: NMAP, pnscan, strobe IPsec VPN scanning&fingerprinting: ike-scan Web server scanning: Nikto OVAL Interpreter: ovaldi web application attack and audit framework: w3af 16
Question: How to understand NASL Script language? EC521: Cybersecurity OpenVAS 30
EC521: Cybersecurity OpenVAS NASL Language NASL is a scripting language designed for the Nessus security scanner. Its aim is to allow anyone to write a test for a given security hole in a few minutes, to allow people to share their tests without having to worry about their operating system, and to guarantee everyone that a NASL script can not do anything nasty except performing a given security test against a given target. Reference: 31
32 NVT Structure # OpenVAS Vulnerability Test // # $Id$ // # Description: [one-line-description] // (copyright and writer information) if(description) // script_oid(FIXME); # see //http://www.openvas.org/openvas-oids.html script_version("$Revision$"); # leave as is, SVN will update this // … include("FIXME.inc"); # in case you want to use a NASL library # FIXME: the code. //
Metasploitable 2 Designed by HD Moore, Now owned by Rapid 7 (To test their well-known tool metasploit, for free) A special version of Ubuntu Linux A target machine with many built-in vulnerabilities A good platform to conduct security training, test security tools, and practice common penetration testing techniques. 33
Apache 2.2.8, Tomcat Password, Samba NDR Parsing, Heap Overflow, BIND libbind inet_network(), PHP , 5.2.6, 5.2.8, PHP Fixed security issue, VNC password is "password“, Samba 'reply_netbios_packet' Nmbd Buffer Overflow, cve , HTML Output Script Insertion XXS, Key algorithm rollover bug, DNS service BIND 9.4.2, MySQL a and so on… About 135 in All. 40 are critical vulnerabilities! 35 Vulnerbilities
37 OpenVAS Scan Report Sadly not as much result as it should be. (Using the full ultimate scan). Some NVTs don’t have the full function as the original program or CVE.
38 A Brief Example We can use this vulnerability to remote login into the target as the root, and execute shell commands using the rsh-client servise.( In Kali Linux, apt-get install rsh-client.)
39 Nmap NVT port scan No result in the Openvas NVT Nmap feed. It can’t list all the open ports while using the nmap in kali, we can get the full result. All the open ports are printed out in nmap as well as their protocol or function. NVT can’t take the place of the original program.
40 Is vulnerability working? Remote Login TCP ports 512 is known as "r" services, and have been misconfigured to allow remote access from any host (a standard ".rhosts + +" situation).Fisrt, install rsh- client. Then type in rlogin -l root , so…
41 Do something bad Since we are SSH with the remote target, why not generate the SSH (as we did in homework), so next time we can access unlimitedly!
42 Question: How to use OID to get NVT’s feed? Use OID To look for the NVT and more information with it
44 Summary 1. Our purpose of the lab generation 2. Completely use of the penetration tool 3. Practical use of OpenVAS For attacker: Exploit, Sniff For defender: Assess, Patch 4. Brief assessment of OpenVAS Open source Client-server structure Extended and flexible NVT feed Security and authentication