Penetration Testing Dove Colpire Piergiorgio Venuti

Penetration Testing: Where to Strike to Protect Your IT Network

Estimated reading time: 5 minutes

Introduction

In an increasingly interconnected and digital world, cybersecurity has become a top priority for companies of all sizes. One of the most effective techniques to identify vulnerabilities and improve security is penetration testing, also known as pen testing or ethical hacking. But in a complex network with different environments, which ones are the most suitable for pen testing efforts? Let’s explore together the differences between development, testing, and production environments, and find out where pen testing can make a difference.

What is Penetration Testing?

Before diving into specific network environments, it’s essential to understand what penetration testing is. In short, it’s a security assessment process that simulates a cyber attack to identify potential vulnerabilities in systems, networks, or applications. Security experts, known as “ethical hackers” or “white hat hackers,” use the same techniques and tools as cybercriminals, but with the goal of strengthening defenses rather than causing harm. Pen testing generally follows a structured methodology that includes phases of information gathering, vulnerability analysis, exploitation, access maintenance, and reporting.

The Environments of an IT Network

Before deciding where to perform pen testing, it’s crucial to understand the different environments present in a typical corporate IT network. Each environment has specific characteristics and security requirements. Here’s an overview of the main ones:

  1. Development Environment: This is where new applications and features are created and tested. The development environment is usually isolated from the rest of the network to allow developers to work freely without affecting other systems. Security is important in this environment, but the emphasis is on functionality and innovation.
  2. Testing/Staging Environment: Before being released into production, applications are thoroughly tested in an environment that replicates the production environment as closely as possible. Here, integration, performance, and compatibility are verified. Security takes on a more central role, as any vulnerabilities could propagate to the production environment.
  3. Production Environment: This is the “live” environment where end-users operate and real data is processed. Security is of vital importance, as any breach could compromise sensitive data, cause service disruptions, or damage reputation. The production environment is often the primary target of cyber attacks.

Other environments you might encounter include:

  1. Disaster Recovery (DR) Environment: Designed to take over in case of failures or disasters in the production environment, ensuring operational continuity. Security must be aligned with the production environment.
  2. Quality Assurance (QA) Environment: Dedicated to in-depth software quality testing, including functional, usability, and security testing.
  3. Sandbox Environment: An isolated environment used to test potentially dangerous applications or code without risk to the main network.

Where to Perform Penetration Testing?

Now that we have a clear understanding of the different environments, where should we focus pen testing efforts to maximize the impact on security? The short answer is: wherever possible, but with priority on the production environment. Here’s why:

Priority on the Production Environment

The production environment is your company’s front-end, where systems and applications interact with users, customers, and partners. This is where the most sensitive and critical data resides and where a cyber attack could cause the greatest damage. Breaches in production can lead to data theft, fraud, service disruptions, and reputational damage, with significant financial and legal consequences.

Performing regular penetration tests on the production environment is essential to:

  • Identify and fix vulnerabilities that could be exploited by malicious actors
  • Verify the effectiveness of existing security measures
  • Meet compliance requirements such as GDPR, PCI DSS, HIPAA, etc.
  • Maintain the trust of customers and partners by demonstrating a proactive commitment to security

Of course, pen testing in production must be carefully planned and executed to avoid service disruptions or damage. It’s crucial to work with professional testers and apply rigorous control measures.

Don’t Neglect Development and Testing

While the production environment is the priority, neglecting development and testing can lead to security gaps that propagate throughout the software lifecycle. Undetected vulnerabilities in development or testing can make production systems easy targets for attackers.

The benefits of penetration testing in development and testing environments include:

  • Early identification of vulnerabilities, when they are less costly to fix
  • Reduced risk of introducing vulnerabilities into the production environment
  • Increased awareness of security best practices among developers
  • Verification of the effectiveness of security controls before deployment

Typically, pen tests in development and testing are less invasive and more frequent than those in production. Vulnerability scanning tools and automated security tests can be integrated into Continuous Integration/Continuous Deployment (CI/CD) processes for constant monitoring.

A Holistic Approach to Penetration Testing

Ideally, penetration testing should be part of a holistic cybersecurity strategy that embraces all environments and levels of the IT infrastructure. In addition to development, testing, and production environments, consider including in your pen testing plan:

  • Networks and infrastructure: switches, routers, firewalls, servers, endpoints, etc.
  • Web and mobile applications
  • Cloud and virtual services
  • IoT and OT (Operational Technology) devices
  • Remote work and BYOD (Bring Your Own Device) environments

A comprehensive approach helps identify vulnerabilities that might be overlooked by focusing only on specific environments. It also allows testing the overall resilience of the organization against different attack vectors.

Collaborate with Security Professionals

Performing effective penetration tests requires specialized skills, experience, and tools. While some basic tests can be conducted internally, it’s highly recommended to collaborate with external security professionals for comprehensive pen tests. The benefits include:

  • Objectivity and external perspective, unbound by internal biases
  • Specific skills and experience in conducting pen tests
  • Access to state-of-the-art tools and resources
  • Compliance with ethical and legal standards
  • Ability to keep pace with evolving threats

When selecting a pen test provider, evaluate factors such as reputation, certifications (e.g., OSCP, CREST), experience in your industry, and post-test services like remediation support.

Conclusion

In an ever-evolving landscape of cyber threats, penetration testing is an indispensable tool to proactively identify and mitigate risks. By prioritizing the production environment, without neglecting development and testing, organizations can significantly strengthen their cybersecurity posture.

Remember that pen testing is not a “silver bullet” solution, but part of a 360-degree security strategy that also includes security awareness training, continuous monitoring, incident response, and regular updates. With the right approach, pen testing can make a substantial difference in protecting your most valuable digital assets.

Useful links:

Share


RSS

More Articles…

Categories …

Tags

RSS feed: Unknown Feed Unknown Feed

RSS feed: Full Disclosure Full Disclosure

  • Apache Struts2 Core Arbitrary Code Execution via OGNL Sandbox Escape November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01Description Apache Struts2 Core version 7.4.0 and below attempt to prevent arbitrary code execution via Object-Graph Navigation Language (OGNL) through several different mechanisms but only in a cursory fashion -- the libraries only guard against immediate calls evaluated by the OGNL engine via `SecurityMemberAccess`, but an allowed […]
  • Apache Struts2 Core TokenHelper Token Cryptographic Timing Side-Channel November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01Description The Apache Struts2 Core 7.4.0 and below performs session token comparisons cryptographically insecure early-exit comparison functions (e.g., `!=`, `memcmp`, byte-by-byte loops with `break`) that return as soon as the first mismatched byte is encountered. The execution time of the comparison is therefore proportional to the number […]
  • Apache Struts2 Spring Plugin Uses a Previously Closed Resource November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01Description The Apache Struts2 Spring Plugin opens a Spring `ApplicationContex` via a try-with-resources block and, outside of said block, then continues to use the closed resource, resulting in an uncaught `IllegalStateException`. This particular issue prevents proper functionality and indicates poor code quality and code review standards and […]
  • Apache Struts2 Core Integer Overflow November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01Description Apache Struts2 Core version 7.4.0 and below fails to properly prevent integer overflows, causing wrap-arounds and other issues on a downstream forced casting into types smaller than `BigInteger`. Importantly, this finding underscores why all applications using Struts and other such platforms should perform their own input […]
  • Apache Struts2 Core Cross-Origin Protection Exemption Miskeyed to a Deployment-Wide Path November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01Description Apache Struts2 Core version 7.4.0 and below's `FetchMetadataInterceptor`, `CoepInterceptor`, and `CoopInterceptor` each compare their `exemptedPaths` configuration -- a per-interceptor-reference, administrator-supplied set of paths intended to exempt specific actions from the corresponding cross-origin protection -- against `HttpServletRequest.getContextPath()`. `getContextPath()` is fixed for the entire deployed web...
  • Apache Struts2 REST Plugin Fails to Properly Parse Chunked Requests November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01Description The Apache Struts2 REST Plugin's (version 7.4.0 and below) `ContentTypeInterceptor.intercept(ActionInvocation)` only deserialises a request body and enforces the `struts.rest.content.maxLength` bound when `HttpServletRequest#getContentLength()` returns a positive value. `getContentLength()` returns `-1` whenever the `Content-Length` header is absent, which normal and appropriate for any Hypertext Transfer Protocol (HTTP)...
  • Apache Struts2 REST Plugin Untrimmed `Accept` Header Tokens Break Content Negation Fallback November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01Description The Apache Struts2 REST Plugin's `DefaultContentTypeHandlerManager.getHandlerForResponse(HttpServletRequest, HttpServletResponse)` splits the `Accept` header on commas and passes each resulting token directly to `findHandler(String)` without trimming leading or trailing whitespace. `findHandler(String)` only retries a trimmed lookup when a token contains a semicolon (`;`), so a token that merely carries […]
  • Apache Struts2 JSON Plugin Insecure Deserialisation -- Object Deserialisation Element-Count Limit Bypass November 2, 2026
    Posted by Daniel Owens via Fulldisclosure on Nov 01As of the current versions of the Apache Struts2 JSON Plugin (e.g., version 7.4.0 and the 7.5.0 snapshot dated 28 October 2026), attackers can bypass the element-count limit purported to protect Object deserialisation added to said code as part of the WW-5618 and S2-072 "hardening controls". Please […]
  • [0day-rubbish] NETGEAR RAX120 V1.2.5.18 authenticated SOAP InstallApp OS command injection to root-configured web-stack execution (6.8 Medium; conditionally 7.2 High with management exposure) October 29, 2026
    Posted by disclosure via Fulldisclosure on Oct 280day Rubbish Research Team is publicly disclosing a vulnerability in NETGEAR RAX120 (Nighthawk AX12) firmware V1.2.5.18, the WiFi 6 consumer router from NETGEAR (United States), built on the Qualcomm IPQ8074 platform. The administrative web plane of this firmware generation is a lighttpd server fronting the vendor's DNI-framework CGI […]
  • [0day-rubbish] Raritan PX3 PDU G4 firmware 4.3.14 command injection in the ping and traceroute diagnostics through an inverted hostname-validation return check (8.8) October 29, 2026
    Posted by disclosure via Fulldisclosure on Oct 280day Rubbish Research Team is publicly disclosing a vulnerability in the Raritan PX3 PDU G4, firmware version 4.3.14, the intelligent rack power distribution unit from Raritan, a Legrand company (United States). A low-privilege authenticated session converts one diagnostics request into operating-system command execution in the product's web-service context, […]

Customers