Taking the BDSM out of PCI-DSS through open source solutions

Erin Jacobs, Zack Fasel

BruCON 0x05 · Day 1

Overview

In this candid and insightful talk from BruCON, Erin Jacobs and Zack Fasel, partners at Urban Security, tackle the perennial challenge of PCI-DSS (Payment Card Industry Data Security Standard) compliance. Their presentation, humorously titled "Taking the BDSM out of PCI-DSS," aims to demystify the standard and, more importantly, demonstrate how organizations can achieve robust compliance and enhanced security through open-source solutions. The speakers, bringing a unique blend of compliance and offensive security expertise, highlight the common pain points associated with PCI-DSS—namely, its complexity, high cost, and the perception that it’s a compliance-only framework rather than a security enabler.

Watch on YouTube

Visual summary for Taking the BDSM out of PCI-DSS through open source solutions by Erin Jacobs, Zack Fasel
Visual summary for Taking the BDSM out of PCI-DSS through open source solutions by Erin Jacobs, Zack Fasel

Key moments

  1. 4:00 Introduction, speakers, and talk agenda
  2. 14:00 Benefits of open source solutions for PCI compliance
  3. 18:00 Introducing Open PCI Project and common difficult requirements
  4. 25:00 Logging: The biggest PCI challenge and open source tools
  5. 32:00 Open source for FIM and patch management challenges
  6. 38:00 Addressing 2FA, antivirus, and other PCI compliance "gotchas"
  7. 54:00 Q&A: Cardholder data in logs and defining PCI scope

Taking the BDSM out of PCI-DSS through Open Source Solutions

Speakers: Erin Jacobs, Partner, Urban Security; Zack Fasel, Partner, Urban Security

Conference: BruCON

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

Overview

In this candid and insightful talk from BruCON, Erin Jacobs and Zack Fasel, partners at Urban Security, tackle the perennial challenge of PCI-DSS (Payment Card Industry Data Security Standard) compliance. Their presentation, humorously titled "Taking the BDSM out of PCI-DSS," aims to demystify the standard and, more importantly, demonstrate how organizations can achieve robust compliance and enhanced security through open-source solutions. The speakers, bringing a unique blend of compliance and offensive security expertise, highlight the common pain points associated with PCI-DSS—namely, its complexity, high cost, and the perception that it’s a compliance-only framework rather than a security enabler.

The core premise of their talk revolves around the idea that while PCI-DSS is often seen as a burden that drains IT and security budgets, it can be leveraged as a driver for positive security change, particularly for smaller and mid-sized businesses. They argue against the prevalent notion that expensive commercial products are the only path to compliance, advocating instead for the strategic adoption of open-source tools and community-driven knowledge sharing. This approach not only significantly reduces costs but also offers greater flexibility, control, and the potential to elevate an organization's overall security posture beyond mere checkbox compliance.

Jacobs and Fasel introduce the "Open PCI Project," an initiative designed to provide cross-platform, scalable, and security-enhancing open-source guidelines and walkthroughs for addressing specific PCI requirements. They emphasize that while PCI-DSS is what it is—a non-negotiable standard for protecting cardholder data—the implementation doesn't have to be agonizing. By focusing on areas where organizations commonly struggle, such as logging, file integrity monitoring, patch management, and two-factor authentication, they provide practical, actionable advice for navigating the complexities of PCI-DSS with intelligence and efficiency.

Background

▶ Watch: Introduction, speakers, and talk agenda (4:00)

The Payment Card Industry Data Security Standard (PCI-DSS) was jointly created in 2004 by major card brands to optimize the security of credit, debit, and cash card transactions and protect cardholder data. It dictates specific policies and procedures for any system that stores, processes, transmits, manages, or is directly connected to Cardholder Data Environments (CDEs). The standard categorizes organizations into four levels of compliance, with Level 1 requiring an on-site assessment by a Qualified Security Assessor (QSA), while Levels 2-4 typically involve self-assessment questionnaires (SAQs). The speakers note that PCI-DSS version 3.0 was on the horizon at the time of their talk, bringing changes like increased responsibility for outsourced services.

Despite its critical role in protecting sensitive financial data, PCI-DSS is widely "hated" by internal teams and even many QSAs. The primary reasons cited by Jacobs and Fasel include its perceived complexity, the agony of implementation, and the potentially devastating impact on IT and security budgets. Many organizations have also faced challenges with inexperienced QSAs lacking the technical competency to accurately evaluate controls in diverse environments. Furthermore, the scope of PCI-DSS can be incredibly broad, encompassing almost any system interacting with cardholder data, making scope reduction a primary goal for many businesses.

A significant problem highlighted by the speakers is the lack of practical, actionable guidance on implementing PCI-DSS controls, particularly for open-source solutions. Online resources are often dated, incomplete, or focused solely on commercial, expensive products. The speakers observe that while the foundational problems with PCI compliance are not new, the conversation around effective, cost-efficient solutions, especially open-source ones, remains largely absent. This gap often leads organizations, particularly small to mid-sized businesses, to overspend on proprietary solutions or struggle significantly with compliance, often without genuinely improving their security posture. The "Open PCI Project" was conceived to fill this critical void, offering tried and tested, cross-platform guidelines that elevate security alongside compliance.

Key Findings

▶ Watch: Introducing Open PCI Project and common difficult requirements (18:00)

The central finding presented by Erin Jacobs and Zack Fasel is that while PCI-DSS compliance is often perceived as an expensive, complex, and vendor-driven endeavor, a strategic shift towards open-source solutions can dramatically alleviate these burdens. They identify that the most common and challenging areas for organizations seeking PCI compliance are often those where open-source tools can provide viable, cost-effective, and flexible alternatives to commercial offerings. This approach not only helps organizations meet compliance requirements but also fosters a deeper understanding of their security controls and allows for greater customization to unique environments.

Their research and experience reveal that many prevalent issues in PCI compliance, such as robust logging, file integrity monitoring, and two-factor authentication, are frequently addressed with overpriced commercial products. These solutions often come with vendor lock-in, rigid implementations, and significant annual costs, which are unsustainable for smaller entities or organizations with limited budgets. The speakers advocate for investing in intelligent people and leveraging the inherent flexibility and cost savings of open-source software, rather than simply "throwing money at a vendor" to check a box.

The "Open PCI Project" emerges as a key finding and contribution. It aims to compile and disseminate cross-platform, scalable, and security-elevating guidelines and specific walkthroughs for open-source solutions that address PCI requirements. This project directly confronts the issue of theoretical guidance and premium-focused solutions, striving to empower IT and security administrators with practical, step-by-step instructions. By focusing on community collaboration and knowledge sharing, the project seeks to build a repository of solutions that are not only compliant but also genuinely enhance an organization's overall security posture, turning PCI-DSS into a driver for security improvement rather than just a regulatory hurdle.

Technical Deep Dive

▶ Watch: Logging: The biggest PCI challenge and open source tools (25:00)

Jacobs and Fasel delve into several critical PCI-DSS requirements that frequently pose significant challenges for organizations, demonstrating how open-source solutions can effectively address them. They highlight that while some requirements like implementing firewalls or changing default passwords are generally well-understood, others demand more sophisticated and often costly solutions.

Logging and Monitoring (PCI Requirement 10)

This is identified as the number one problem organizations face, often leading to significant expenditure on commercial Security Information and Event Management (SIEM) systems like Splunk. The speakers acknowledge Splunk's capabilities but emphasize its prohibitive cost for many organizations.

Core Logging Requirements: PCI-DSS mandates logging and monitoring of all access to network resources and cardholder data. At a minimum, this includes:

  • All individual user access to cardholder data.
  • All actions taken by individuals with root or administrative privileges (e.g., sudo commands on Linux, local admin actions on Windows).
  • Access to all audit logs.
  • Invalid logical access attempts (login failures).
  • Initialization and clearing of audit logs.
  • Changes to identification and authentication mechanisms.
  • Creation and deletion of system-level objects.
  • File integrity changes, antivirus alerts, and intrusion detection alerts.

Open-Source Solutions for Centralized Logging:

  • Log Generation: Systems must generate relevant events. For Windows, this involves configuring specific Group Policies to capture necessary administrative actions and system changes.
  • Log Shipping:
  • Linux/Mac/Networking: Syslog is the ubiquitous solution.
  • Windows: More challenging due to event log format. Solutions include using a Windows Event Collector to centralize logs before forwarding them, or deploying individual agents on each Windows host.
  • Log Storage and Processing: This is where commercial SIEMs shine, but open-source alternatives offer powerful capabilities:
  • Fluentd: Highlighted by the speakers as a strong open-source alternative to Splunk, though it may require more effort to install and configure. The Open PCI Project aims to provide detailed guides for this.
  • OSSEC: Can act as a log collector and perform initial log processing.
  • Roll Your Own: For simpler needs, syslog combined with command-line tools like grep can be used to process logs, meeting the PCI requirement that doesn't mandate a specific product.
  • Log Monitoring: PCI requires regular review of logs. This doesn't necessarily mean manual review of every entry; automated scanning for anomalies is acceptable. The project aims to provide specific event IDs and query strings for identifying security-relevant events and anomalies.

File Integrity Monitoring (FIM) (PCI Requirement 11.5)

FIM is crucial for detecting unauthorized modifications to critical system files, configuration files, and content files.

  • Open-Source FIM Tools:
  • OSSEC: Again, a favored solution that can monitor file integrity changes and forward alerts to a central syslog server for further processing.
  • Tripwire: Another option mentioned for file integrity monitoring.
  • PCI Nuance: PCI-DSS requires FIM checks at least weekly. This flexibility allows for creative, homegrown solutions. For instance, an organization could remotely access a file share, run MD5 hash checks on critical files, output the results to a file, and then diff it against a baseline to generate alerts for changes. While live monitoring offers better security, a weekly hash check can meet the compliance checkbox without requiring a complex, always-on commercial solution.

Patch Management (PCI Requirement 6.2)

Patch management is deemed "the hardest [expletive] thing" to address with open-source, especially in a cross-platform environment. PCI requires patching not only the operating system but also all third-party applications.

  • Linux: Relatively straightforward with package managers and repository-based updates. Chef and Puppet are excellent for configuration management and deploying updates across Linux fleets.
  • Windows: More challenging. WSUS (Windows Server Update Services) is a Microsoft-provided solution (not open-source, but built-in). For third-party applications, an open-source tool like wpackage can facilitate integration with WSUS.
  • Mac: The speakers found Chef and Puppet to be among the few viable options.
  • Call for Help: This is an area where the speakers explicitly call for community development, recognizing a significant gap for a reliable, scalable, cross-platform open-source patch management solution. Organizations might consider investing in commercial solutions here if open-source alternatives are too complex or time-consuming to implement effectively.

Two-Factor Authentication (2FA) (PCI Requirement 8.3)

PCI mandates 2FA for all remote access to the CDE. This typically involves "something you know" (password) and "something you have" (token, certificate, device) or "something you are" (biometrics).

  • Certificates: While meeting the "something you have" requirement for PCI, the speakers caution about the security implications if a certificate-holding machine is compromised.
  • Cloud Telephony: Services like Twilio or Plivo can be used to build custom SMS-based 2FA solutions, where a code is sent to a phone for verification.
  • OATH (Open AuTHentication): This is highlighted as a robust open standard for 2FA, focusing on HMAC-based hashes. Google Authenticator is a widely used OATH-based software solution. Organizations can enroll multiple devices (jump boxes, VPNs) with a central OATH authenticator.
  • Hardware Tokens: YubiKey (while not fully open-source) offers hardware tokens that can be OATH-compatible.
  • Central Authenticator: Implementing OATH often involves a central authentication server, which can be RADIUS-based or use custom plugins. Open-source RADIUS servers, including those compatible with YubiKey, are available.

Antivirus (AV) (PCI Requirement 5)

PCI requires deploying antivirus software on "all systems commonly affected by malicious software." This clause provides some flexibility.

  • Challenges: Antivirus can significantly impede performance, especially on high-performance mainframes or custom-built Linux kernels that may not be "commonly affected."
  • Alternative Interpretations/Solutions:
  • Anomaly Detection: Instead of traditional signature-based AV, monitoring for rogue processes and unusual system behavior can serve as a form of "malicious software" detection.
  • System Re-wiping: In highly controlled environments, a compromised system might be entirely re-imaged rather than cleaned.
  • Application Whitelisting: Solutions like Windows' built-in AppLocker, SELinux, or AppArmor can restrict what software is allowed to run, effectively preventing unknown malicious code.
  • ClamAV: A free and open-source signature-based antivirus engine that can be deployed on systems where traditional AV is required and performance impact is manageable.

Random PCI "Fun Issues"

The speakers also touch on other common "gotchas":

  • Shared Passwords: PCI prohibits shared user passwords but allows shared service account passwords under specific controls. For local administrative accounts, which are often shared, QSAs frequently issue findings. Solutions include unique local admin accounts, physical controls (e.g., password in a sealed, safe envelope, though this is reluctantly mentioned as a QSA-recommended, but absurd, option), or using YubiKey for single-press password entry where the human doesn't "know" the password.
  • Change Control: A perennial challenge, especially for system administrators. While developers are often better at implementing it, open-source change control solutions are emerging for smaller organizations.
  • Segregation of Roles: Difficult for small and mid-sized businesses with limited staff, requiring creative solutions and careful documentation.
  • Primary Function Per System: In resource-constrained environments, systems often perform multiple functions, potentially increasing scope. Virtualization can help, but careful design is needed.
  • Managing Crypto Keys: Often poorly handled, especially SSL/TLS keys. PCI requires robust protection and control over these keys, with requirements like not allowing a single person to have full knowledge of a key. Again, YubiKey is mentioned as a potential aid for securely storing and accessing keys without direct human knowledge.

Demo / Proof of Concept

▶ Watch: Addressing 2FA, antivirus, and other PCI compliance "gotchas" (38:00)

While the talk itself did not feature a live, interactive demonstration of specific open-source tools in action, the speakers introduced the "Open PCI Project" as their ongoing proof of concept and community resource. The project, hosted at openpciproject.com (and urbansecurity.com), is intended to be a repository of specific walkthroughs and guidelines for implementing open-source solutions to meet PCI-DSS requirements.

Erin Jacobs and Zack Fasel explicitly stated their goal to provide practical, step-by-step instructions that an IT or security administrator can follow to get solutions up and running. They acknowledged that the website was initially a placeholder, with content being actively developed and uploaded following their conference talks. The project serves as a collaborative effort to demonstrate the feasibility and effectiveness of open-source alternatives, moving beyond theoretical discussions to concrete, actionable implementations for various platforms and PCI controls.

Defensive Implications

▶ Watch: Q&A: Cardholder data in logs and defining PCI scope (54:00)

The defensive implications of Jacobs and Fasel's talk are profound, particularly for organizations grappling with the costs and complexities of PCI-DSS. Their central message empowers defenders to view PCI compliance not as a punitive measure, but as a strategic opportunity to elevate overall security using accessible and flexible open-source solutions.

Firstly, the talk encourages a critical evaluation of commercial security products. Defenders are urged to question whether expensive vendor solutions are truly necessary for every PCI requirement, especially when robust, community-supported open-source alternatives exist. By opting for open-source, organizations can significantly reduce their security budget expenditure, freeing up resources to invest in skilled personnel rather than recurring licensing fees. This shift allows for greater control over the security architecture, enabling customization and adaptation to unique environmental needs, rather than being locked into rigid vendor implementations.

Secondly, the emphasis on the "Open PCI Project" provides a crucial resource for security teams. Instead of struggling to find dated or incomplete guidance, defenders can leverage a centralized, community-driven repository of tried-and-tested walkthroughs. This fosters knowledge sharing and collaboration, allowing organizations to learn from collective experience and implement solutions that are both compliant and security-enhancing. For instance, understanding how to configure Fluentd as a cost-effective Splunk alternative for log management, or leveraging OSSEC for both log processing and file integrity monitoring, directly equips defenders with actionable strategies.

Finally, the speakers advocate for a proactive and assertive stance when dealing with QSAs. Defenders should be prepared to challenge interpretations, present their open-source implementations confidently, and even seek second opinions if a QSA's technical competency or guidance seems questionable. Conducting limited scope pre-assessments with a QSA can help clarify boundaries and avoid costly surprises during a full compliance audit. By thoroughly understanding the "letter of the law" and knowing their environment inside and out, security teams can use PCI-DSS as a driving force to gain internal resources and time for implementing genuinely secure and well-managed systems, rather than merely chasing checkboxes.

Key Takeaways

  • Open Source for PCI Compliance is Viable: Many critical PCI-DSS requirements, such as logging, file integrity monitoring, and two-factor authentication, can be effectively and affordably met using open-source solutions, reducing reliance on expensive commercial products.
  • Beyond Checkbox Compliance: Leveraging open-source tools offers greater flexibility and control, allowing organizations to customize solutions that not only meet PCI requirements but also genuinely enhance their overall security posture.
  • Community Collaboration is Key: Initiatives like the "Open PCI Project" are vital for sharing knowledge, providing practical implementation guides, and collaboratively developing open-source solutions for common PCI challenges, especially for areas like cross-platform patch management where gaps currently exist.
  • Strategic Resource Allocation: Organizations should prioritize spending on intelligent security personnel who can implement and manage open-source tools, rather than solely on product licenses. This allows for more adaptable and robust security architectures.
  • Challenge and Understand Your QSA: Organizations should be prepared to question their Qualified Security Assessor's interpretations, understand the nuances of PCI requirements, and advocate for their chosen open-source implementations. Pre-assessments can help clarify scope and expectations.
  • PCI as a Security Driver: Instead of viewing PCI-DSS as a burden, security teams can utilize it as a strategic leverage point to gain budget and resources for implementing fundamental security controls and improving their environment.

About the Speaker(s)

Erin Jacobs is a partner at Urban Security, bringing extensive experience in the realm of PCI-DSS. Having worked with various consultancies since 2007 and served internally as a CISO in a financial institution, she possesses a deep understanding of the challenges associated with PCI implementation from both a consultant's and an implementer's perspective. Her expertise spans diverse environments, from small businesses to large enterprises with millions of users, giving her a comprehensive view of how PCI controls apply in unique contexts.

Zack Fasel is also a partner at Urban Security, complementing Erin's compliance background with a strong focus on offensive security. This duality allows them to approach PCI-DSS from a holistic perspective, bridging the gap between the "letter of the law" and practical security realities. Together, they advocate for a philosophy of "always question, always challenge," encouraging their audience to critically evaluate information and solutions, including their own. Their combined expertise makes them uniquely qualified to discuss how to make PCI compliance not just achievable, but genuinely beneficial for an organization's security.

Reviews

→ Top-rated talks at BruCON 0x05

All talks from BruCON 0x05