DevOps/Security Panel (part 2)
Kris Buytaert, Patrick Debois, David Mortman, Alex Hutton
BruCON 0x05 · Day 2
Overview
This BruCON panel discussion, "DevOps/Security Panel (part 2)," brought together prominent figures Kris Buytaert, Patrick Debois, David Mortman, and Alex Hutton to dissect the intricate relationship between DevOps methodologies and enterprise security. The talk delves into how the principles of automation, collaboration, and continuous delivery inherent in DevOps can be leveraged not just for operational efficiency but also for significantly enhancing an organization's security posture. The panel challenges traditional, often bureaucratic, security paradigms, advocating for a proactive, integrated approach that embeds security directly into the development and operations lifecycle.

Key moments
- 0:00 Configuration management and infrastructure as code
- 2:50 Automation reduces bureaucracy for compliance and metrics
- 4:00 Challenging security to be self-servicing and embedded
- 7:20 Abstraction for scalability: managing 75 system images vs. 1
- 13:00 Patch management in continuous delivery with testing
- 18:40 Achilles heel: security of centralized configuration management
- 24:00 Tips for migrating to a DevOps environment
- 30:00 Cybernetic feedback loop: automated active defense and response
DevOps/Security Panel (part 2)
Speakers: Kris Buytaert, Patrick Debois, David Mortman, Alex Hutton
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=X0tJMVPvMyE
Overview
This BruCON panel discussion, "DevOps/Security Panel (part 2)," brought together prominent figures Kris Buytaert, Patrick Debois, David Mortman, and Alex Hutton to dissect the intricate relationship between DevOps methodologies and enterprise security. The talk delves into how the principles of automation, collaboration, and continuous delivery inherent in DevOps can be leveraged not just for operational efficiency but also for significantly enhancing an organization's security posture. The panel challenges traditional, often bureaucratic, security paradigms, advocating for a proactive, integrated approach that embeds security directly into the development and operations lifecycle.
The core of the discussion revolves around moving security from an external, critical function to an intrinsic, enabling force within the DevOps workflow. Speakers explore the practical application of configuration management as "infrastructure as code," the power of abstraction, and the critical cultural shifts required for successful security integration. They highlight how automating processes, from initial provisioning to continuous patching and even active defense, can provide better visibility, enforce consistent security policies, and ultimately lead to faster, more resilient responses to security incidents. This conversation is particularly relevant in an era where rapid deployment and agility are paramount, making the traditional "security as a bottleneck" approach unsustainable.
Background
▶ Watch: Configuration management and infrastructure as code (0:00)
The genesis of DevOps lies in the need to bridge the chasm between development and operations teams, fostering collaboration and automation to accelerate software delivery. A cornerstone of this movement is configuration management (CM), which the panel identifies as one of the first tools associated with DevOps. Tools like Puppet, Chef, Ansible, and SaltStack allow organizations to define their infrastructure as code, ensuring that operating systems and machines are in a continuously known and desired state. This contrasts sharply with traditional shell scripting, which often struggles with platform inconsistencies (e.g., Ubuntu vs. CentOS) and only addresses initial installations. CM tools manage the entire lifecycle of a server, repeatedly enforcing the defined state and providing a crucial audit trail of changes.
The panel emphasizes the profound shift brought about by treating infrastructure "as code," which naturally extends software development practices like version control and testing to server management. This approach directly addresses long-standing pain points in traditional IT environments, characterized by manual processes, significant bureaucracy, and slow change cycles. Concepts like Six Sigma, ITIL, and ISO compliance, while demanding metrics and consistent processes, often resulted in heavy administrative overhead. DevOps, through automation, offers a pathway to achieve these requirements with far less bureaucracy, automatically generating metrics and enforcing policies.
A significant cultural and operational shift discussed is the move from treating servers as "pets" (unique, manually cared for, irreplaceable) to "cattle" (interchangeable, easily replaced, managed at scale). Alex Hutton illustrates this with a compelling example: moving from managing 75 distinct Windows system images to just one Windows and one Linux image, with CM tools like Puppet defining specific server roles (web, app, database). This abstraction dramatically reduces management overhead and simplifies patching. The core problem this panel seeks to solve is the historical isolation of security teams, often perceived as "special snowflakes" or external critics, rather than integrated partners in the development and operations process. The overarching goal is to embed security directly into the self-servicing, automated workflow, transforming it into an enabler rather than a gatekeeper.
Key Findings
▶ Watch: Challenging security to be self-servicing and embedded (4:00)
The panel discussion yields several critical findings regarding the integration of DevOps and security, highlighting both the opportunities and challenges:
- Automation for Enhanced Compliance and Auditing: DevOps tools inherently provide consistent, regular, and measurable processes. This capability significantly reduces the manual bureaucracy associated with compliance frameworks like ISO and ITIL. By generating metrics automatically (e.g., velocity metrics from Jira or documentation in Confluence), organizations can demonstrate adherence to policies more efficiently and reliably. The inherent audit trails in configuration management tools automatically track "who managed what, when, where," providing a robust record of changes.
- Empowering Self-Service Security: A central theme is the idea of security becoming a "servant" to the organization rather than a "special snowflake." By building self-service platforms that are pre-defined and managed by security, developers can provision systems that are secure by design. This prevents common issues like developers disabling security features (e.g., SELinux) on local machines, only to face problems in production. Security defines the secure platform upfront, making it easy for developers to use, thereby embedding security into their workflow seamlessly.
- The Power of Abstraction in Configuration Management: Abstraction, as highlighted by Alex Hutton, is a hugely powerful concept. Configuration management tools abstract away the complexities of underlying operating systems and package management. This allows for a massive reduction in the number of base images or configurations to manage. For example, moving from 75 distinct Windows images to a single image combined with Puppet manifests for defining roles (web server, database server) drastically simplifies patching and maintenance, reducing the risk of deploying incorrect or outdated images.
- Cultural Shift Towards Collaborative Security: The panel underscores the necessity of a profound cultural shift. Moving away from an antagonistic relationship between security and other teams, DevOps fosters a collaborative environment. This integration allows risk management conversations to incorporate financial value and impact, balancing loss distributions against time-to-market and technical debt. Security architecture becomes a shared responsibility, leading to more productive discussions and shared ownership of security outcomes.
- Robust Patch Management Through Continuous Delivery: Patch management, often a "shitstorm" in large enterprises, is significantly improved by DevOps principles. Implementing continuous delivery (CD) pipelines with automated tests allows organizations to apply patches to test environments. If tests remain successful, patches can be deployed to production with confidence. Strategies include managing different software repositories for various environments (e.g., ensuring
latestversions point to tested repos) or specifically pinning package versions. This approach mitigates the fear of "breaking stuff" that often stalls critical security updates.
- Security as an Enabler for Faster Response: DevOps transforms security from a reactive, auditing function to a proactive, enabling one. Automation, measurement, and control within the DevOps pipeline mean that security breaches can be addressed much faster. The ability to push out patches and fixes rapidly, as part of the mainstream process rather than an urgent, disruptive event, is a compelling argument for adopting these methodologies. This capability shifts the conversation from "we can't control it" to "it's becoming a more controlled process because it's automatable and measurable."
Technical Deep Dive
▶ Watch: Patch management in continuous delivery with testing (13:00)
The technical heart of the panel discussion revolves around the practical application of DevOps tools and principles to solve complex security and operational challenges.
Configuration Management (CM) as Infrastructure as Code:
The panel highlights CM tools like Puppet, Chef, Ansible, and SaltStack as foundational. These tools allow teams to define the desired state of their infrastructure (e.g., "install Apache," "ensure SSH is configured a certain way") in a declarative language. This infrastructure as code approach offers several advantages:
- Abstraction: CM tools abstract away OS-specific commands (e.g.,
apt-get install apache2vs.yum install httpd) into a universal "install apache" command. - Lifecycle Management: Unlike simple scripts, CM tools continuously enforce the desired state, detecting and remediating configuration drift.
- Version Control: Infrastructure definitions can be stored in Git or similar systems, enabling change tracking, rollbacks, and collaborative development.
- Auditing: CM tools inherently provide a detailed audit trail of all changes applied to systems, crucial for security and compliance.
Docker and Containerization:
The discussion touches upon Docker as a newer provisioning tool. Docker utilizes container-level virtualization, creating lightweight, portable images that encapsulate an application and its dependencies. This allows for a "fast cycling of new versioning," where entire systems can be rebuilt and replaced rapidly. While powerful for stateless applications (treating servers as "cattle"), the panel notes that systems involving persistent data are harder to continuously provision in this manner. Docker images, like code, can be pushed to repositories and downloaded, enabling quick deployment of service constellations. Alex Hutton draws a parallel to BSD jails, emphasizing its role as a "packaged root system."
Patch Management Strategies:
One of the most significant security benefits of DevOps is improved patch management. The panel outlines several strategies:
- Continuous Delivery (CD) Pipelines: Patches are treated like any other code change. They are applied to test environments, and if automated tests remain successful, they proceed through the pipeline to production. This reduces the fear of "breaking stuff" that often delays critical security updates.
- Repository Management: Organizations can manage different software repositories for different environments (e.g., a "stable" repo for production that only gets packages after thorough testing, while development might use a "latest" repo). CM tools can then be configured to
ensure latestfrom the appropriate repository. - Version Pinning: For highly sensitive applications or components, specific package versions can be hard-coded in CM manifests. While labor-intensive, this offers precise control.
- Freezing Environments: Beyond individual packages, organizations can freeze entire sets of packages from their internal repositories, ensuring all systems pull identical versions. Containerization (freezing the entire OS as an image) is another approach to achieving this.
- External Dependencies: The panel cautions about external dependencies (e.g., APIs, cloud services) that change independently. It's crucial to version control and specify these dependencies in CM where they have a significant impact. The example of OpenSSL is raised; while it has a good reputation for updating to
latest, its critical nature means some level of version control or careful tracking might be warranted.
Security of Configuration Management Infrastructure:
A critical point raised is the Achilles' heel of CM tools: the centralization of information. If sensitive data, such as database passwords, is stored directly in CM and a system under management (e.g., a web server) is compromised, it could potentially gain access to all attributes stored in the CM system.
Mitigations discussed include:
- Access Control Lists (ACLs): Tools like Puppet allow setting ACLs on files or data, restricting which systems can access specific information.
- Local-Only Mode: Running CM tools in a local-only mode, where relevant configurations are pushed to clients without a persistent connection to a central database, can reduce the attack surface.
- Filtering Proxies: For REST-based CM APIs, a filtering proxy could be placed in front to control which information is exposed to different systems.
- Securing the CM Server: The CM server itself becomes a big juicy target or a central point of failure/attack. It must be locked down, heavily secured, and meticulously monitored, akin to a Certificate Authority (CA). The argument is that a "known known weakness that I can manage" is preferable to "a bunch of unknowns."
Automated Response and Cybernetic Feedback Loops:
Alex Hutton introduces the concept of a cybernetic feedback loop for active defense. Drawing a parallel to tools that watch logs and add offending IPs to iptables, he suggests using log aggregation systems (like Logstash or Splunk) to detect malicious behavior. This detection could then trigger automated configuration changes via CM tools. For instance, if an attack is detected, CM could automatically modify ACLs on network devices (Cisco, Checkpoint) or storage systems to block the threat.
Patrick Debois provides an example from Etsy, where CM is used to fix known states of problems during a MySQL database crash. This moves beyond just provisioning to using CM as a response system.
However, a significant caution is raised: whatever you automate, you can automate your problem. A misconfigured automated response could lead to a massive denial of service (DoS) or break "a thousand servers all the same way at the same time." Responsible use, segmentation, and starting with small, validated sets are crucial.
Validation and Testing of Infrastructure:
Beyond just deploying configurations, the panel stresses the importance of validation:
- Continuous Integration (CI) for CM: Applying CI tests to CM recipes and cookbooks (e.g., using SaltStack or Kitchen Sink) ensures syntactic correctness and reduces the chance of deploying damaging configurations.
- Version Control for Manifests: Keeping CM manifests under version control allows for easy rollbacks to previously known, working states.
- Post-Deployment Validation: After a configuration change or patch, running a set of commands or unit/functional tests to verify the system is in the desired state. This addresses the fact that "config management can lie" if the checks themselves are flawed. These validation tests can be more extensive than continuous monitoring checks, which might be costly or have a performance impact if run constantly.
This technical deep dive illustrates how DevOps principles, when applied rigorously, provide a powerful framework for building more secure, resilient, and auditable IT environments.
Demo / Proof of Concept
▶ Watch: Achilles heel: security of centralized configuration management (18:40)
This panel discussion focused on theoretical concepts, best practices, and strategic implications of integrating DevOps with security, rather than demonstrating specific tools or proof-of-concept exploits. The speakers engaged in a conversational format, sharing experiences, insights, and high-level approaches without an explicit live demo.
Defensive Implications
▶ Watch: Cybernetic feedback loop: automated active defense and response (30:00)
The insights from this panel offer a robust roadmap for security professionals seeking to adapt to and thrive in a DevOps-driven world. The defensive implications are profound, suggesting a fundamental shift in strategy:
- Embrace Infrastructure as Code (IaC): Defenders must advocate for and adopt configuration management (CM) tools to define, version, and continuously enforce the desired state of infrastructure. This means treating servers, network devices, and even security tools as code. This approach inherently improves security by:
- Eliminating Configuration Drift: Ensuring systems remain in a known, secure state.
- Enabling Rapid Auditing: Providing an automatic, detailed audit trail of all changes.
- Improving Consistency: Reducing human error and ensuring uniform security configurations across the environment.
- Facilitating Rollbacks: Allowing quick reversion to a previous secure state if a change introduces vulnerabilities.
- Automate Compliance and Auditing: Leverage CM and logging tools (Jira, Confluence, Splunk, Logstash) to automate the generation of metrics, documentation, and audit trails. This significantly reduces the manual burden of compliance (e.g., ISO, ITIL) and provides real-time visibility into the security posture, moving away from bureaucratic "paper checks."
- Shift-Left Security and Self-Service Platforms: Security teams must move from being gatekeepers to enablers. This involves integrating security into the development and operations pipeline from the earliest stages. By providing self-service platforms that are pre-configured with secure defaults and managed by security, developers are empowered to build securely from the outset, reducing shadow IT and preventing the introduction of vulnerabilities due to local deviations (e.g., disabling SELinux).
- Prioritize Automated Patch Management: Implement continuous delivery (CD) pipelines that include automated testing for patches and security updates. This allows for rapid, confident deployment of critical fixes, reducing the window of vulnerability. Strategies like managing different software repositories for various environments and version pinning for critical components should be adopted to ensure control and stability.
- Secure the DevOps Toolchain as Critical Infrastructure: Recognize that centralized CM servers and other core DevOps tools (CI/CD platforms, artifact repositories) become high-value targets. Defenders must apply the highest levels of security to these systems, including robust access controls (e.g., ACLs), strong authentication, continuous monitoring, and potentially network segmentation. Sensitive credentials should not be stored directly in CM without proper encryption and access management.
- Cautiously Explore Automated Security Response: While automation carries risks, defenders should explore and experiment with automated security responses based on detected events (e.g., triggering configuration changes via CM in response to a log-based detection). This should be done incrementally, starting with well-understood, low-risk scenarios, with robust testing, monitoring, and clear rollback procedures to mitigate the risk of "automating the problem."
- Foster a Collaborative Security Culture: The most critical defensive implication is the need for a cultural shift. Security professionals must actively engage with development and operations teams, moving from an antagonistic relationship to one of collaboration and shared responsibility. Educating teams on the security benefits of DevOps (e.g., faster breach response, reduced manual toil, better risk management) and demonstrating success will build trust and buy-in, making security an integrated part of the value stream.
Key Takeaways
- Infrastructure as Code (IaC) is a Security Enabler: Leveraging configuration management tools (e.g., Puppet, Chef, Ansible, SaltStack) to define, version, and continuously enforce infrastructure states is fundamental for maintaining a strong security posture, providing audit trails, and detecting configuration drift.
- Security Must Become Self-Service and Integrated: Security teams should empower developers by providing pre-defined, secure platforms and embedding security controls directly into the DevOps pipeline, rather than acting as an external gatekeeper. This "shift-left" approach prevents security issues earlier in the lifecycle.
- Abstraction Simplifies Security Operations: Utilizing abstraction through CM tools reduces complexity, making it easier to manage and patch a diverse infrastructure (e.g., single base image with manifests for different server roles), leading to more consistent and scalable security.
- Automated Patching and Validation are Crucial: Implementing continuous delivery pipelines with automated testing for patches and post-deployment validation significantly reduces the time to remediate vulnerabilities and minimizes the risk of introducing new issues during updates.
- Cultural Transformation is Paramount: Successful integration of security into DevOps requires a shift from an antagonistic relationship to one of collaboration, shared responsibility, and mutual learning between security, development, and operations teams.
- Automation Requires Responsibility and Robust Controls: While automated responses and active defense offer powerful capabilities, they must be implemented cautiously with thorough testing, monitoring, and rollback mechanisms to prevent widespread issues. The CM infrastructure itself must be rigorously secured.
About the Speaker(s)
- Kris Buytaert: An open source consultant and self-proclaimed "evangelist" for solutions like Puppet and Chef, Kris Buytaert is known for his work in the open source and DevOps communities. His contributions to the panel highlighted practical applications of configuration management in real-world scenarios.
- Patrick Debois: Widely credited with coining the term "DevOps," Patrick Debois is a pioneer in the field. His insights on the panel underscored the importance of cultural integration, the concept of "self-servicing" platforms, and managing the entire lifecycle of systems, emphasizing the human and organizational aspects of DevOps adoption.
- David Mortman: As an expert in risk management and security, David Mortman brought a crucial perspective on the financial implications of security decisions. He advocated for integrating risk management into business conversations, using quantitative data to balance security investments against time-to-market and technical debt, and fostering collaborative security efforts.
- Alex Hutton: A prominent figure in information security, Alex Hutton contributed valuable perspectives on abstraction, the "pets vs. cattle" metaphor for server management, and the potential for cybernetic feedback loops in automated defense. He also revealed his affiliation with Splunk during the discussion on log analysis, highlighting the power of data in security operations. His insights often challenged traditional security mindsets, advocating for embracing change and managing risk effectively.