Network Security VAPT Checklist



Network Security VAPT Checklist

Lets talk about the scope first. If you are given a 500 machines to perform VAPT, then here is your scope. Single machine can have 65535 ports open. Any single port can deploy any service software from the world. For example FTP can be run on smartftp, pureftpd etc. Any single FTP software version (for example pureftpd 1.3.3a) can have number of vulnerabilities available. So if you multiply all of these, then it is impossible for any auditor to go ahead and probe all ports manually and find services manually. Even if he/she is able to do it, it is impossible to check all vulnerabilities that are pertaining to a single port of a single machine. Hence we have to rely on scanners such as nexpose, nessus, openvas, coreimpact etc. Here are some quick tools and test cases that one can perform on commonly found ports in the network pentest.


Ø  Identify live hosts
  • ·         Ping
  • ·         Hping
  • ·         Nmap

Ø  Identify OS type
  • ·         Nmap
  • ·         Xprobe2
  • ·         Banner grabbing using telnet, nc (netcat)

Ø  Port scan
Ø  Nmap full SYN scan with verbose mode and service detection and disabling ping scan. Export normal and greppable output for future use.

nmap -Pn -p- -sV X.X.X.X -v -sS -oG nmap_grepable_SYN -oN nmap_normal_SYN

Ø  Nmap top 1000 UDP scan with verbose mode and service detection and disabling ping scan. Export normal and greppable output for future use.

        nmap -Pn -top-ports=1000 -sV X.X.X.X -v -sS -oG nmap_grepable_UDP -oN     nmap_normal_UDP

Ø  VA (Vulnerability Assessment)

Ø  Use nessus with below profile
  • ·         DoS disabled
  • ·         Web scan enabled
  • ·         SSL scan on every ports instead of known ports
  • ·         Enable TCP and UDP scan
  • ·         Only give open ports’ list in the configuration that were found by nmap including TCP and UDP rather than full ports in order to save time particularly number of IPs are more and less time for audit and report.
Ø  Use Nexpose
Ø  Use OpenVAS
Ø  Use nmap scanner on specific open ports using below command.
·         For example port 22 (SSH) is open and you want to run all scripts pertaining to SSH then use below command:

o   Nmap -Pn -sS -p22 --script ssh* -v

Note: In case if you are not sure about exact script name you can use * in order to run all scripts that starts with the ‘ssh’ keyword.
Ø  Audit SSL
  • ·         Use openssl, sslyze tools to find below issues within SSL.
  • ·         Self-signed certificate
  • ·         SSL version 2 and 3 detection
  • ·         Weak hashing algorithm
  • ·         Use of RC4 and CBC ciphers
  • ·         Logjam issue
  • ·         Sweet32 issue
  • ·         Certificate expiry
  • ·         Openssl ChangeCipherSec issue
  • ·         POODLE vulnerability
  • ·         Openssl heartbleed issue

Ø  Check for default passwords in server/device/service documentation
·         Lets say during your port scan or VA you found some services running on the server for example: cisco, brocad fabric OS, sonicwall firewall, apache tomcat manager. Then for these services Google what are the default configuration administrative username and password. Try those in your login and check your luck.
Ø  Hunting some common ports
·         DNS (53) UDP
  •   Examine domain name system (DNS) using dnsenum, nslookup, dig and fierce tool
  •  Check for zone transfer
  •  Bruteforce subdomain using fierce tool
  •  Run all nmap scripts using following command: nmap -Pn -sU -p53 --script dns* -v
  • Banner grabbing and finding publicly known exploits
  • Check for DNS amplification attack

·         SMTP (25) TCP
  • Check for SMTP open relay
  • Check for email spoofing
  • Check for username enumeration using VRFY command
  • Banner grabbing and finding publicly known exploits
  • Send modified cryptors and check if SMTP gateway is enable to detect and block it?
  • Run all nmap script using following command: nmap -Pn -sS -p25 --script smtp* -v

·         SNMP (161) UDP
o   Check for default community strings ‘public’ & ‘private’ using snmpwalk and snmpenum.pl script.
o   Banner grabbing and finding publicly known exploits
o   Perform MIG enumeration.
§  .1.3.6.1.2.1.1.5 Hostnames
§  .1.3.6.1.4.1.77.1.4.2 Domain Name
§  .1.3.6.1.4.1.77.1.2.25 Usernames
§  .1.3.6.1.4.1.77.1.2.3.1.1 Running Services
§  .1.3.6.1.4.1.77.1.2.27 Share Information
·         SSH (22) TCP
  •  Banner grabbing and finding publicly known exploits
  • Check if that supports sshv1 or not.
  • Bruteforce password using hydra and medusa
  •  Check if it supports weak CBC ciphers and hmac algorithms using ssh2-enum-algos.nse nmap script.
  •  Run all nmap scripts using following command: nmap -Pn -sS -p22 --script ssh* -v
·         Cisco VPN (500) UDP
  • Check for aggressive and main mode enable using ikescan tool.
  • Enumeration using ikeprobe tool
  • Check for VPN group and try to crack PSK in order to get credentials to login into the VPN service through web panel.
·         SMB (445,137,139) TCP
  • Check SAMBA service using metasploit use auxiliary/scanner/smb/smb_version
  •  Get reverse shell using meterpreter reverse tcp module.
  •  Check for SMB related vulnerability using ‘smb-check-vulns’ nmap script.
  •  Reference: https://myexploit.wordpress.com/control-smb-445-137-139/

·         FTP (21) TCP
  •  Run all nmap script using following command: nmap -Pn -sS -p21 --script ftp* -v
  •  Check for cleartext password submission for ftp login
  •  Check for anonymous access using username and password as anonymous:anonymous
  • Banner grabbing and finding publicly known exploits
  • Bruteforce FTP password using hydra and medusa

·         Telnet (23) TCP
  • Banner grabbing and finding publicly known exploits
  • Bruteforce telnet password
  • Run following nmap scripts
§  telnet-brute.nse
§  telnet-encryption.nse
§  telnet-ntlm-info.nse

·         TFTP (69) UDP
  • TFTP Enumeration
    •  tftp ip_address PUT local_file
    • tftp ip_address GET conf.txt (or other files)
    • tftp – i GET /etc/passwd (old Solaris)
  •  Bruteforce TFTP using TFTP bruteforcer tool
  • Run tftp-enum.nse nmap script
  • Banner grabbing and finding publicly known exploits

·         RPC (111) TCP/UDP
  • Banner grabbing and finding publicly known exploits
  •  Run following nmap scripts
    •  bitcoinrpc-info.nse
    • metasploit-msgrpc-brute.nse
    • metasploit-xmlrpc-brute.nse
    •  msrpc-enum.nse
    • nessus-xmlrpc-brute.nse
    •  rpcap-brute.nse
    •  rpcap-info.nse
    •  rpc-grind.nse
    • rpcinfo.nse
    • xmlrpc-methods.nse
  • Perform RPC enumeration using rcpinfo tool
  • Check for the NFS folders so that data could be exported using showmount -e command.

·         NTP (123) UDP
  • Perform NTP enumeration using below commands:
    • ntpdc -c monlist IP_ADDRESS
    •  ntpdc -c sysinfo IP_ADDRESS
  • Run all nmap scripts using nmap -Pn -sS -p21 --script ntp* -v

·         HTTP/HTTPs (443,80,8080,8443) TCP
  • Banner grabbing using burp response
  • Run Nikto and dirb
  •  Run all nmap scripts using following command nmap -Pn -sS -p21 --script http* -v
  •  Banner grabbing and finding publicly known exploits

·         SQL Server (1433,1434, 3306) TCP
  •  Banner grabbing and finding publicly known exploits
  • Bruteforce and perform other operation using following tools:
  • Piggy
  • SQLping
  • SQLpoke
  • SQLrecon
  • SQLver
o   Run following nmap scripts:
  • ms-sql-brute.nse
  • ms-sql-config.nse
  • ms-sql-dac.nse
  •  ms-sql-dump-hashes.nse
  • ms-sql-empty-password.nse
  • ms-sql-hasdbaccess.nse
  • ms-sql-info.nse
  •  ms-sql-ntlm-info.nse
  • ms-sql-query.nse
  • ms-sql-tables.nse
  • ms-sql-xp-cmdshell.nse
  • pgsql-brute.nse
o   For MYSQL default username is root and password is

·         Oracle (1521) TCP
  • Enumeration using following tools
    • Tnsver [host] [port]
    • Tnscmd
  •  perl tnscmd.pl -h ip_address
  • perl tnscmd.pl version -h ip_address
  • perl tnscmd.pl status -h ip_address
  • Enumeration & Bruteforce using below nmap scripts:
    • oracle-brute.nse
    • oracle-brute-stealth.nse
    • oracle-enum-users.nse
    • oracle-sid-brute.nse
    • oracle-tns-version.nse
·         RDP (3389) TCP
  •  Perform enumeration via connecting and checking login screen. Gather all active user’s name and domain/group name.
  • Perform RDP cryptography check using RDP-sec-check.pl script.
  • Run following nmap script:
  • rdp-enum-encryption.nse
  • rdp-vuln-ms12-020.nse
·         SIP (5060)
  •  Enumeration through following commands:
    • Sipflanker - python sipflanker.py 192.168.1-254
    • Sipscan - Smap - smap -l IP_Address
·         Banner grabbing and finding publicly known exploits


The above points mentioned explains the possible challenges and how to perform VA/PT. There are many that are available on web..

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Nice blog about VAPT audit, Contact Cyberops Infosec If you need to secure your website.
    Best Regards
    Mukesh Choudhary
    Cyber Security Expert in India

    ReplyDelete
  3. My cousin recommended this blog and she was totally right keep up the fantastic work!


    vapt security testing

    ReplyDelete
  4. Thanks for detailed blog the blog post is informative.I really appreciate your effort in posting such blog.You may also visit to the Global tech council t find the best deal.

    For more detail, you may visit to our office or contact on the detail below-

    Address-255 Constitution Drive, #B-1003 Menlo Park, CA 94025
    Phone: +1-(323) 984-8594
    Email: hello@globaltechcouncil.org
    Website- network security engineer

    ReplyDelete
  5. Thank you for sharing valuable information. Nice post. I enjoyed reading this post. The whole blog is very nice, found some good stuff here Thanks..Also visit 24x7 Security Operations Centre, aims to provide you with the best cyber security solution for your business needs.

    ReplyDelete
  6. Great blog post. I am very much satisfied with your post! Proper and helpful information. I take care of this kind of information much.

    VAPT Certification

    ReplyDelete
  7. what ever the information you describing really its very nice,this blog contains sufficient information. TO Know more About VAPT Testing in Chennai

    ReplyDelete
  8. Avenging Security PVT LTD. one of the leading Top Vapt Companies in Jaipur India. If you are looking for a company that offers best vapt services in India with affordable prices, then think about us!

    ReplyDelete
  9. ISO 45001 Certification in Malaysia is an international standard that provides guidelines on how to implement an occupational health and safety management system to ensure employee safety. ISO 45001 in Malaysia is expected to be applicable to all organizations regardless of its size, type, and nature. It is also proposed that the requirements will be integrated into an organization’s own management processes. Call @ +60 19-3999853

    ReplyDelete
  10. We are one of the leading Penetration Testing Companies In Jaipur India. If you are looking for a company that offers penetration testing services in India with affordable prices, then think about us!

    ReplyDelete
  11. Your blog is unique if we compared it with other blogs. Keep writing with the same uniqueness and I'll keep reading because I understood VAPT Singapore is compulsory for every brand.

    ReplyDelete
  12. Great post, Thank you for sharing with us. It is really helpful information about Cyber Security Penetration Testing Courses

    ReplyDelete
  13. I found your blog and it was really useful as well as informative thanks for sharing such an article with us. We also provide services related to certificación vapt

    ReplyDelete
  14. hello welcome too my website very high traffic in fast page

    ReplyDelete
  15. hello welcome too my website very high traffic in fast page
    mian amir

    ReplyDelete

  16. Certainly! If you're looking for a comment that can be used on a website, it would be helpful to know the context or topic. However, I can provide you with a generic and positive comment that you can use or modify based on your needs:

    "Wow, I'm truly impressed by the content on this website! The information is insightful, well-presented, and incredibly engaging. It's evident that a lot of effort has gone into creating such valuable content. Keep up the fantastic work! I'll definitely be coming back for more."

    Feel free to provide more details, and I can tailor a comment specifically for the context you have in mindmian amir

    ReplyDelete

Post a Comment

Popular posts from this blog

Payment Gateway Security Testing Checklist

How to dump Database using Sqlmap