Chapter 10. Setting Up Virtual Test Lab Environments

Keeping skills up to date is extremely important in most professions; it is no different for penetration testing. Penetration testing skills take time to develop and to top it off the information security landscape changes on a daily basis. With this in mind, it is not difficult in this day and age to obtain a semi-powerful computer system with 4-16 gigs of RAM and a four or six core processor. Equipment such as this allows a penetration tester to build out full-fledged virtual networks that can be used as practice labs. In this chapter, we review building such environments. We will attempt to emulate the types of secured networks we might see in use, using limited system resources.

We will discuss the following items in this chapter:

  • Emulating a simple network with a firewall
  • Setting up a multi-tiered DMZ
  • Emulating more complex networks in a virtual environment

Why bother with setting up labs?

It may seem that experimenting in a more comprehensive testing environment will always be the best choice once you have your labs built out, but in fact, you may only be adding unnecessary complexities that may divert or completely ruin the test.

Let's take a look at setting up a web server to run a simple web application. We will need to determine what we are testing before we choose our lab environment. Some of the questions that should be asked include:

  • Are there any specific services that are required to ensure the testing accurately emulates an environment as seen in real world testing?
    • Load Balancing?
    • Specific versions of software?
    • Firewalls?
  • Are there any factors that will cause the results to be an inaccurate representation of what occurs in true production environments?
  • Does your lab provide you with the hands-on experience necessary to duplicate your findings in the real world; if not, what needs to be changed to make it so?

Hopefully this quick list of basic questions will prepare you for the considerations that should be taken into account when choosing which type of lab is preferable and for which task. There are many scenarios that can be tested with a simple virtual guest machine speaking to another; on the other hand there are some scenarios that will require the usage of tens and even hundreds of systems to accurately represent the experience you will have in a real world environment. Regardless of how you choose to build out your lab it should always allow you to make modifications or to build upon existing systems. It should also be simple to manage and update as needed.

Note

Taking snapshots of systems that have been freshly built can be an effective and efficient method of ensuring the necessary operating system builds are ready when needed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.96.247