Security Makes Strange Bedfellows: Using Legal and Procurement To Secure Software

Noel Dunne, Paco Hope (Cigital)

BruCON 0x06 · Day 1

Overview

This talk, "Security Makes Strange Bedfellows: Using Legal and Procurement To Secure Software," presented by Paco Hope of Cigital and Noel Dunne, delves into a non-traditional yet highly effective approach to software security. Rather than solely relying on technical controls or post-development penetration testing, the speakers advocate for leveraging the financial, legal, and political layers – dubbed "Layer 9" – to embed security requirements directly into vendor contracts and procurement processes. This strategy aims to shift security left, addressing vulnerabilities at the source and much earlier in the software acquisition lifecycle.

Watch on YouTube

Visual summary for Security Makes Strange Bedfellows: Using Legal and Procurement To Secure Software by Noel Dunne, Paco Hope
Visual summary for Security Makes Strange Bedfellows: Using Legal and Procurement To Secure Software by Noel Dunne, Paco Hope

Key moments

  1. 1:30 Introducing Layer 9: Legal, Financial, Political Security
  2. 3:30 The 'Lowest Bidder' dilemma in software procurement
  3. 5:30 Vendors ask: 'Where in the contract is security?'
  4. 11:30 Security always 'the last to know' about new sites
  5. 30:40 Empowering legal teams with real-world security incidents
  6. 36:30 Layer 9 security in action: Host vs. Dev vendor conflict
  7. 40:40 Quid pro quo: Virtual bug bounty saves millions on contracts
  8. 53:00 Q&A: Ensuring contract security terms are effectively applied

Security Makes Strange Bedfellows: Using Legal and Procurement To Secure Software

Speakers: Noel Dunne; Paco Hope (Cigital)

Conference: BruCON

YouTube: https://www.youtube.com/watch?v=9HejCkjbEEU

Overview

This talk, "Security Makes Strange Bedfellows: Using Legal and Procurement To Secure Software," presented by Paco Hope of Cigital and Noel Dunne, delves into a non-traditional yet highly effective approach to software security. Rather than solely relying on technical controls or post-development penetration testing, the speakers advocate for leveraging the financial, legal, and political layers – dubbed "Layer 9" – to embed security requirements directly into vendor contracts and procurement processes. This strategy aims to shift security left, addressing vulnerabilities at the source and much earlier in the software acquisition lifecycle.

Paco Hope, a seasoned security consultant, and Noel Dunne, an in-house security expert, articulate how this proactive engagement with legal and procurement teams can transform the security department from a "department of no" into a strategic business enabler. By providing legal and procurement with the necessary tools, context, and "ammunition," organizations can enforce secure development practices, reduce remediation costs, and ultimately acquire more robust and secure software. The core premise is that by making security a contractual obligation, organizations can avoid the costly and often confrontational cycle of discovering critical flaws in already-delivered software.

The talk highlights why this approach matters: traditional security engagement often occurs too late, leaving organizations vulnerable to fundamental flaws that are expensive and time-consuming to fix. By intertwining security with the business's foundational processes of buying and building software, companies can achieve a scalable and sustainable security posture. This innovative perspective empowers security teams to influence decisions at a strategic level, ensuring that security is not an afterthought but a fundamental requirement baked into every vendor relationship.

Background

▶ Watch: Introducing Layer 9: Legal, Financial, Political Security (1:30)

The speakers open by dispelling a common "fairy tale" about software procurement: the notion that organizations always select the "best" software through a rigorous competition, leading to secure and reliable solutions. In reality, as Paco Hope quips, many find themselves "trusting my life to a massive rocket built by the lowest bidder." The traditional procurement process, from initial business need to vendor selection and contract negotiation, often sidelines security. Security teams are typically brought in at the very end, after software has been delivered, with the unenviable task of "securing that now" – a point at which fundamental flaws are deeply entrenched and expensive to remediate.

This late engagement creates a pervasive problem illustrated by a recurring scenario: a vendor delivers software, and upon finding critical vulnerabilities, the security team is met with the vendor's defense, "where in the contract does it say this is supposed to be secure?" This situation, Paco notes, is not uncommon, citing instances where he has personally witnessed such conversations. A poignant example involved a client developing slot machines, where an 80-page specification dedicated only 1.5 pages to software requirements, focusing instead on physical attributes. This oversight led to a situation where the vendor delivered undocumented, un-commented code, costing the client millions to reverse-engineer and document post-delivery.

Noel Dunne recounts his own "late to the party" experiences, such as being asked to pen test a new website three or four days before its go-live date – an impossible task given the lead times for external testing. This reactive posture led to security teams being blamed for project delays when they inevitably found "fundamental flaws." Further investigation revealed that for every 50 externally hosted websites following proper registration, another 50 were operating outside the organization's visibility, many with "basic security 101 flaws" like cross-site scripting (XSS) and SQL injection. This highlighted that security was "always the last to know," necessitating a fundamental change in approach.

The security team's goals were clear: to affect change, enable the business (rather than constantly saying "no"), and add tangible value beyond mere "tick-box exercises." However, significant challenges stood in their way. Their organization dealt with "a thousand vendors" and "75-80,000 employees," with various business units independently procuring software. A small security team of "four or five guys or ten guys" could not possibly oversee every contract. Furthermore, many existing contracts were long-term (some up to five years), making immediate changes difficult. Even where security clauses existed, they were often outdated or focused on network access rather than software quality. A critical cultural issue was the assumption that security spending should be proportionate to the software's development cost, not its business value. Noel provided an example of a marketing website in China that cost "$1,000 US dollars" to build but was hacked "within like a few minutes" due to default credentials. Business units resisted spending "$4 or 5 grand" on security for such a low-cost asset, despite the potential "50 million pounds" in business value it represented. This underscored the need for a scalable, impactful strategy that made security understandable and relevant to business stakeholders.

Key Findings

▶ Watch: Vendors ask: 'Where in the contract is security?' (5:30)

The central finding of this talk is the profound effectiveness of integrating security into the legal and procurement processes, a strategy the speakers term "Layer 9 security." By moving security upstream to the contractual phase, organizations can proactively mandate secure development practices, thereby mitigating risks and reducing costly post-delivery remediation.

A crucial discovery was that procurement and legal teams are not adversaries but potent allies. When properly equipped with specific, actionable language and real-world examples of security failures, these teams can enforce security requirements during contract negotiations. This empowers them to challenge vendor claims of inherent security, transforming abstract security concepts into tangible business risks that vendors must address.

The speakers found that tailoring contractual language to different vendor categories (ee.g., hosting providers, bespoke software developers, SaaS providers) significantly improved negotiation efficiency and relevance. Generic security clauses often led to unnecessary back-and-forth, whereas segmented requirements addressed specific risks pertinent to each vendor type. This "bucket" approach streamlines the process and ensures that security demands are appropriate and focused.

Perhaps the most compelling finding was the power of "quid pro quo". By demonstrating value to vendors, such as through responsible disclosure of zero-day vulnerabilities found in their products, the security team could create leverage. Paco Hope recounted a scenario where the quiet disclosure of a critical SQL injection vulnerability in a major middleware product, affecting numerous high-street retailers, enabled procurement to negotiate "seven figures" in savings on future contracts. This "virtual bug bounty" transformed a security finding into direct financial benefit for the organization, making security a clear profit center rather than a cost.

Finally, the talk highlighted the distinction between general IT security compliance and software security. While ISO 27001 compliance is valuable for IT operations, it does not guarantee secure software development. The speakers advocate for referencing frameworks like the Building Security In Maturity Model (BSIM), which specifically measures how security is integrated into the software development lifecycle, as a more relevant contractual requirement for software vendors. These findings collectively demonstrate that Layer 9 security is not just a theoretical concept but a practical, scalable, and financially beneficial approach to securing software.

Technical Deep Dive

▶ Watch: Empowering legal teams with real-world security incidents (30:40)

The core of Layer 9 security lies in defining and enforcing software development lifecycle (SDLC) security requirements directly within vendor contracts. The speakers emphasized moving beyond generic security clauses to specific, actionable demands tailored to the type of service being procured.

For bespoke software development, the contractual language focuses heavily on the vendor's internal security practices. Key requirements include:

  • Static Code Analysis (SCA): Vendors are required to perform SCA on their code. Crucially, the contract mandates sharing the results of these analyses. This moves beyond a simple "we do SCA" claim, demanding transparency. When vendors claimed to use such tools but still delivered vulnerable code (e.g., with basic XSS), demanding the actual reports was a critical step in demonstrating non-compliance.
  • Unit Testing: Contracts stipulate that vendors must conduct comprehensive unit testing, implying a commitment to quality and functional correctness that often correlates with fewer security defects.
  • Code Review: Vendors are expected to perform internal code reviews, ensuring that security considerations are part of their development process, not just an external audit.
  • Penetration Testing: For delivered services, the contract requires the vendor to undertake penetration testing and to share the results, including remediation plans.

For off-the-shelf products from major vendors like IBM, Adobe, or Microsoft, direct contractual changes are often impossible due to standard terms and conditions. In these cases, the focus shifts to responsible disclosure. If the client's internal security team, using static analysis, identifies vulnerabilities not only in their custom code but also in the underlying vendor middleware, the contract can outline a process for discreetly reporting these to the vendor. This avoids public disclosure on platforms like Bugtraq or Full Disclosure, fostering a collaborative relationship that can be leveraged later.

The strategy involves categorizing vendors into "buckets" to apply relevant security requirements. Examples include:

  • Hosting Providers: Requirements revolve around ISO 27001 certification, robust security policies, and commitment to timely patching and updates of operating systems and middleware. The talk recounted a specific incident where a hosting vendor, contractually obligated to patch, was blocked by a development vendor who feared service disruption. The legal teams, armed with contractual terms, resolved this conflict, allowing patching to proceed without direct security team intervention – a prime example of Layer 9 in action.
  • On-Premise or Remote Support Vendors: Clauses address Bring Your Own Device (BYOD) policies, secure access to the corporate network, and protocols for remote bug fixing and development.

A critical component of this technical deep dive is the provision of Guidance Notes to Legal and Procurement. These notes explain why each security requirement is necessary, often citing specific, real-world examples of past failures. For instance, a requirement for robust input validation might be justified by mentioning a previous incident where "17,000 customer records were lost because this guy way back a few years ago did this really badly." This "ammunition" empowers legal teams to push back effectively when vendors resist security clauses. Furthermore, these guidance notes help legal and procurement identify "good" vendor responses (e.g., referencing OWASP secure coding guidelines or BSIM) versus "bad" ones.

The talk highlighted the importance of resisting vendor attempts to mitigate code-level vulnerabilities with network-level controls. When vendors suggest "just put a firewall rule in" or "we'll whitelist some IP addresses," a strong contract allows the client to insist on actual software fixes, preventing the accumulation of technical debt and ensuring security at the application layer. This proactive, contractually enforced approach ensures that security is integrated at the earliest possible stage, directly impacting the technical quality and resilience of the software itself.

Demo / Proof of Concept

▶ Watch: Layer 9 security in action: Host vs. Dev vendor conflict (36:30)

While the talk itself did not feature a live, interactive demonstration of a specific exploit or tool, the speakers frequently referenced the strategic use of proofs of concept (PoCs) and security findings as persuasive tools.

Paco Hope explicitly mentioned that sometimes, when vendors are reluctant to acknowledge or fix a vulnerability, the security team must "waste a bunch of time creating an exploit creating some kind of proof of concept some sort of demo" to convince them. This highlights that while the preference is to avoid this effort, demonstrating the tangible impact of a flaw is occasionally necessary to overcome vendor skepticism or resistance.

Noel Dunne also described how to make security issues more "relevant" to business users. Instead of simply reporting an "alert one" (e.g., a cross-site scripting vulnerability), the security team would aim to render "some stupid or some political sort of comments" or "a stupid image" through the exploit. This visual and impactful demonstration helps business stakeholders understand the real-world consequences beyond a technical classification, providing the necessary impetus for action.

Furthermore, the "quid pro quo" strategy, leveraging the discovery of zero-day vulnerabilities in widely used middleware, functions as a powerful, albeit indirect, "proof of concept" of the security team's capabilities. By quietly disclosing these critical bugs to the affected vendors, the client company demonstrates its advanced security expertise and its commitment to responsible practices. This act, while not a public demo, serves as a compelling "proof" of the security team's value, which can then be monetized through contract negotiations. Thus, while not a traditional "demo" section, the talk clearly articulates how PoCs and security findings are strategically deployed to drive security outcomes within the Layer 9 framework.

Defensive Implications

▶ Watch: Q&A: Ensuring contract security terms are effectively applied (53:00)

Implementing Layer 9 security offers several crucial defensive implications for organizations aiming to strengthen their software supply chain and overall security posture:

  1. Shift Security Left to the Contractual Phase: The primary defensive strategy is to integrate security requirements directly into vendor contracts and procurement processes. This ensures that security is a foundational element from the outset, rather than a reactive measure. Organizations should develop standardized, but adaptable, contractual language that mandates secure development practices.
  1. Empower Legal and Procurement Teams: Security professionals must educate and equip their legal and procurement counterparts with the necessary knowledge and "ammunition." This includes providing clear explanations of security risks, real-world examples of past incidents (e.g., "17,000 customer records were lost"), and guidance on how to interpret vendor responses. Regular, dedicated meetings with legal and procurement teams are essential to maintain alignment and address emerging issues.
  1. Categorize Vendors and Tailor Requirements: Recognize that a one-size-fits-all approach is ineffective. Organizations should categorize vendors (e.g., hosting, bespoke software development, SaaS, remote support) and develop specific, relevant security requirements for each category. This prevents friction during negotiations by avoiding irrelevant demands and focuses efforts on the most impactful controls.
  1. Demand Transparency and Evidence: Contracts should explicitly require vendors to provide evidence of their secure development practices, such as Static Code Analysis (SCA) reports, unit test results, code review documentation, and penetration test reports. This moves beyond mere claims of security to verifiable proof.
  1. Reject Compensating Controls for Core Flaws: When contractual obligations exist, defenders should firmly reject vendor proposals to mitigate application-level vulnerabilities with network-level compensating controls (e.g., Web Application Firewalls (WAFs), IP whitelisting). The emphasis must remain on fixing the underlying code defects to build inherently secure software, rather than merely masking symptoms.
  1. Leverage Security Findings for Business Advantage: Security teams should understand the potential financial and strategic value of their discoveries. By responsibly disclosing zero-day vulnerabilities in third-party software to vendors, organizations can build goodwill and create leverage for future contract negotiations, potentially saving "seven figures" in costs. This transforms security from a pure cost center into a value-generating function.
  1. Focus on Software Security Maturity: When evaluating vendors, look beyond general IT security certifications like ISO 27001. Instead, prioritize vendors who demonstrate maturity in secure software development, referencing frameworks like OWASP and the Building Security In Maturity Model (BSIM). These frameworks provide a more accurate measure of a vendor's ability to produce secure code.
  1. Cultivate a "Department of Yes" Mindset: Security should be seen as an enabler, not a blocker. By proactively embedding security into business processes, the security team can facilitate innovation and growth securely, positioning themselves as strategic partners rather than obstacles. This collaborative approach fosters stronger internal and external relationships, leading to better overall security outcomes.

Key Takeaways

  • Integrate Security into "Layer 9": Proactively embed security requirements into legal contracts and procurement processes to shift security left, addressing vulnerabilities at the earliest stages of software acquisition.
  • Empower Legal and Procurement: Provide legal and procurement teams with tailored contractual language, real-world examples of security failures, and clear guidance to effectively negotiate and enforce security clauses with vendors.
  • Categorize Vendors for Relevant Requirements: Develop distinct security requirements for different types of vendors (e.g., hosting, bespoke software development) to ensure contractual terms are appropriate, efficient, and prevent unnecessary disputes.
  • Leverage Security Discoveries for Business Value: Use internal security findings, including responsible disclosure of zero-day vulnerabilities in third-party products, as powerful negotiation tools to achieve financial savings (e.g., "seven figures" in contract reductions) and better terms.
  • Prioritize Source Code Fixes Over Compensating Controls: Insist that vendors remediate underlying software vulnerabilities rather than relying on network-level solutions like WAFs, especially when contractual obligations for secure code are in place.
  • Be the "Department of Yes": Position the security team as an enabler that helps the business achieve its goals securely, fostering collaboration with internal stakeholders and external vendors to build stronger, more resilient software and services.

About the Speaker(s)

Paco Hope is a security consultant from Cigital, a company specializing in helping organizations make their software secure. With a long tenure in the security field, Paco has authored several books and holds prominent certifications including CISSP and CSSLP. He also contributes to the development of exam questions for these certifications, highlighting his deep expertise in security principles and practices.

Noel Dunne brings over 17 years of experience in security, with approximately 15 of those years focused on application and software security, particularly in building websites. Describing himself as a "recovering security consultant," Noel now works in an in-house capacity. He is part of a team that has discovered "some of the coolest zero-day exploits" in software, though these remain largely unheard of due to his organization's policy of responsible and discreet disclosure.

Reviews

  • Heather Calloway (CISO) — MUST SEE ★★★★★

→ Top-rated talks at BruCON 0x06

All talks from BruCON 0x06