← Back to blogs
Digital Engineering

Hardening for Success: How We Passed a Big 4 Penetration Test on the First Attempt

JUL 11, 2026•5 MIN READ•Project Supply Team
Hardening for Success: How We Passed a Big 4 Penetration Test on the First Attempt

In the modern digital landscape, the phrase "Big 4 Penetration Test" strikes both dread and determination into the hearts of CISOs, DevOps engineers, and infrastructure architects. These audits are not merely checklist exercises; they are grueling, multi-week, deep-dive investigations conducted by some of the most sophisticated security researchers in the industry. Passing one on the first attempt—with zero critical findings—is not luck. It is the result of a deliberate, holistic approach to security hardening that treats the attack surface not as a perimeter to be defended, but as a dynamic environment to be secured by design.

The Paradigm Shift: Defense-in-Depth vs. Perimeter Security

For years, many organizations relied on the "Castle and Moat" mentality. Secure the network, put up a firewall, and hope for the best. Modern penetration testers—particularly those from the Big 4—have long since bypassed such antiquated notions. They operate under the assumption that the perimeter is already compromised.

To pass these tests, we shifted our architecture toward Zero Trust Architecture (ZTA). This principle implies that no entity, inside or outside the network, is trusted by default. Every request, whether it originates from a public-facing API or an internal microservice, must be authenticated, authorized, and continuously validated.

1. Identity and Access Management (IAM) as the Bedrock

The most common vector for initial compromise is credential theft or misconfigured IAM roles. Our hardening strategy focused on three specific technical pillars:

  • Principle of Least Privilege (PoLP): We meticulously audited every IAM policy in our cloud environment. We moved away from managed policies (like AdministratorAccess) and developed custom, resource-specific IAM policies using Infrastructure as Code (IaC).
  • Ephemeral Credentials: We eliminated long-lived access keys for developers and automated systems. By implementing STS (Security Token Service) with short-lived session tokens, we ensured that even if a secret were exfiltrated, its utility would expire within minutes.
  • MFA Everywhere: Multi-Factor Authentication was enforced not just at the console level, but at the CLI and programmatic access levels. We utilized hardware security keys (FIDO2) for high-privilege access, rendering traditional phishing attacks largely ineffective.

Technical Table 1: Comparative Security Posture Analysis

Hardening Focus AreaTraditional ApproachHardened (Passing) ApproachImpact on Pen Test Result
IAM ManagementLong-lived API keysRole-based, ephemeral sessionsPrevents credential persistence
Network SecurityOpen internal subnetsMicro-segmentation with mTLSStops lateral movement
Patch ManagementManual, ad-hoc patchingImmutable infrastructure (AMI rotation)Eliminates known CVE exposure
Data ProtectionEncryption at rest onlyEncryption in transit + at rest + field-levelPrevents unauthorized data access
Logging/MonitoringCentralized logsAutomated SIEM alerting + anomaly detectionDrastically reduces MTTD (Detection)

The Infrastructure Hardening Lifecycle

The success of our security hardening was heavily tied to our CI/CD pipeline. By integrating security tooling directly into the deployment process—often called "Shift Left" security—we prevented vulnerabilities from ever reaching production.

Infrastructure as Code (IaC) Scanning

Before any cloud resource was provisioned, our IaC templates (Terraform/CloudFormation) were scanned by static analysis tools (e.g., Checkov, tfsec). We enforced policies that prohibited public S3 buckets, unencrypted databases, and security groups that allowed broad SSH access (port 22).

Immutable Infrastructure

We adopted an immutable approach to server management. Instead of patching running servers—which leads to configuration drift and hidden security gaps—we updated our base images. If a server needed a kernel update, we built a new hardened AMI, rolled it out via our deployment pipeline, and decommissioned the old instances. This practice ensured that every server in our environment was in a known, validated state.

Deep Dive: Advanced Threat Mitigation

Lateral Movement Prevention

Big 4 penetration testers excel at lateral movement. Once they compromise a low-value target, they look for ways to escalate privileges or move to sensitive databases. We mitigated this by enforcing mTLS (mutual TLS) between all internal services. By using a Service Mesh, we ensured that service A could only talk to service B if they held valid certificates issued by our internal Certificate Authority (CA).

Database Security

We treated databases as the crown jewels. Beyond standard encryption, we implemented:

  1. Network Isolation: Databases were placed in private subnets with no route to the Internet Gateway.
  2. Secret Management: We used a centralized secret vault to store database credentials. The application code never hardcoded credentials; it requested them dynamically from the vault at runtime.
  3. Advanced Auditing: We enabled granular auditing on the database engines, logging not just logins, but individual queries affecting sensitive tables.

Technical Table 2: Critical Hardening Technical Controls

Control CategoryImplementation StrategyTechnical Benefit
Egress FilteringRestrict outbound traffic via NAT GatewaysPrevents reverse shells to C2 servers
Runtime ProtectionDeploy eBPF-based security agentsDetects abnormal syscall behavior
Secret RotationAutomated Lambda-driven rotationNullifies impact of leaked secrets
Data MaskingDynamic masking for non-prod environmentsReduces PII exposure risk
WAF ConfigurationManaged rulesets + custom rate limitingMitigates OWASP Top 10 automated attacks

The Human Factor: Building a Security-First Culture

Even the most robust technical controls can be undermined by human error. Throughout the lead-up to the penetration test, we conducted internal "Purple Team" exercises. We invited our development teams to witness how a security researcher would attempt to break their code. By making the threat real, we moved from "Security is a roadblock" to "Security is a quality metric."

Lessons from the Field

  1. Never rely on obscurity: Do not assume that because an endpoint is "hidden," it doesn't need robust authentication. Attackers will find it via reconnaissance.
  2. Validate assumptions: We regularly performed internal vulnerability scans (Nessus/OpenVAS). We didn't wait for the Big 4 firm to tell us we had an outdated dependency; we knew about it and had a plan to patch it.
  3. Defense is iterative: We didn't finish hardening; we maintained it. Every sprint included a security review component.

Concluding Thoughts: Beyond the Pass/Fail

Passing a Big 4 penetration test is a milestone, not an end state. The true value lies in the rigorous discipline required to get there. By adopting IaC, embracing immutability, and strictly enforcing the principle of least privilege, we created an environment where security was not an external layer, but a fundamental characteristic of the system itself. This resilience serves as our primary defense, ensuring that when the next threat emerges, our infrastructure is prepared to detect, resist, and recover.

FAQs

A "Big 4" penetration test refers to an assessment conducted by one of the four largest accounting and professional services networks (Deloitte, PwC, EY, and KPMG). These firms employ highly skilled cybersecurity teams that use advanced, industry-standard methodologies to simulate real-world attacks, ensuring organizations meet stringent regulatory and security compliance standards.

Big 4 testers don't just run automated scans; they perform deep-dive manual testing. They look for "vulnerability chaining," where small, seemingly insignificant weaknesses are combined to gain unauthorized access. Most organizations fail the first time because they focus only on automated scan results rather than fixing architectural and configuration flaws.

Defining the scope is paramount. You must clearly identify which assets are in scope (e.g., specific web apps, cloud environments, or network segments). If you don't define the boundaries, you may end up spending time and budget securing assets that aren't critical, while overlooking the ones that pose the greatest risk to your business.

Patching is the process of updating software to fix known vulnerabilities. Hardening is a more holistic approach that involves closing all unnecessary ports, disabling unused features, enforcing strict access controls, and modifying configurations to minimize the overall attack surface—making it much harder for an attacker to gain a foothold.

It depends on your goals. Some organizations choose to keep the exact timing a secret from the broader IT staff to test their detection and response capabilities (a "grey box" or "black box" approach). However, the lead security and executive teams must always be aware of the engagement to manage risks and ensure business continuity.

A good engagement includes a communication plan. If a critical vulnerability is found that poses an immediate risk of a data breach, the testers will typically notify your primary contact immediately so that you can remediate it before they proceed. This cooperative approach is a hallmark of professional-grade assessments.

No. A vulnerability scan is an automated process that identifies known flaws in your systems against a database of vulnerabilities. A penetration test is a human-led, goal-oriented simulation of an attack. While scans are essential for "hygiene," penetration tests provide the strategic insight into how a real attacker would actually breach your defenses.

Tags
Digital EngineeringArtificial Intelligence
LET'S WORK TOGETHER

Have a project in mind?Let's make it real.

Tell us what you're building. We'll bring the design, technology, and thinking to make it happen.

Fill up the following form to start a conversation with our team