← All case studies Security Hardening

The Deal-Breaker

SaaS provider, enterprise contract negotiation

Failed Passed

Enterprise security audit

At risk Secured

Contract status

The situation

A SaaS provider was on the verge of signing a lucrative contract with a major US technology firm. During the due diligence phase, the deal hit a wall.

The tech firm's security audit had flagged weaknesses in the SaaS platform's Content Security Policy. The potential for script-based attacks — specifically cross-site scripting (XSS) — was deemed too high. There was no active breach, but the risk profile did not meet enterprise requirements. The client was told: fix this, or the deal is off.

This was not a security incident response. It was a security posture problem with a commercial deadline attached to it.

The investigation

A Content Security Policy is only as strong as the asset inventory it is built from. Before writing a single header, I mapped the platform's complete digital footprint.

  • Asset mapping

    Every script, stylesheet, font, and external resource loading on the site was identified and catalogued. Third-party integrations, analytics tools, CDN assets — nothing was assumed to be safe; everything was verified against its source and purpose.

  • Vulnerability assessment

    The specific weaknesses the auditors had flagged were identified and documented. The gaps in the existing policy were traced to their root causes — not noted as abstract risks but understood well enough to close permanently.

The fix

I implemented a strict Content Security Policy on a zero-trust model: every source must be explicitly whitelisted; everything else is blocked by default.

  1. 1.

    A tailored CSP was built that explicitly whitelisted only verified, trusted sources. No wildcards, no fallback permissions, no legacy exceptions left in place.

  2. 2.

    The policy was deployed in Report-Only mode first. This allows the browser to log violations without enforcing them — catching any breakages caused by the new policy before real users are affected.

  3. 3.

    Once all violations were reviewed and resolved, the policy was switched to Enforce mode. Any script or resource not on the whitelist is blocked outright.

The outcome

The new Content Security Policy satisfied the US technology firm's requirements. The enterprise security audit passed. The technical barrier that had threatened to collapse the deal was removed, and the contract negotiation proceeded.

The client's platform was not insecure in any conventional sense — there was no breach, no compromised data, no active threat. But their security posture did not meet enterprise-level scrutiny. It does now.

Security compliance is not only about preventing incidents. Sometimes it is the difference between winning and losing a contract worth significantly more than the remediation costs.

From the blog

Further reading

All articles →

Security holding back a deal or failing a compliance audit?

I diagnose the gaps, implement the fix, and produce the documentation your auditors need. Fixed price after diagnosis.