Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

The bash-shellshock cookbook has been deprecated

The bash-shellshock cookbook has been deprecated and is no longer being maintained by its authors. Use of the bash-shellshock cookbook is no longer recommended.


bash-shellshock (2) Versions 1.0.0

Audits & remediates the Shellshock vulnerability

cookbook 'bash-shellshock', '= 1.0.0'
cookbook 'bash-shellshock', '= 1.0.0', :supermarket
knife supermarket install bash-shellshock
knife supermarket download bash-shellshock
Quality 100%

bash-shellshock Cookbook

This cookbook is designed to test and optionally remediate the bash "shellshock" bug, more formally known as cve-2014-7169.

Once Chef-client has executed this recipe on one or more hosts, a list of all nodes that are vulnerable to the "Shellshock" exploit can be retrieved from the Chef server via knife search:

knife search node 'languages_bash_shellshock_vulnerable'


This cookbook relies on the OS-native packaging system to provide patched versions of the bash package.



  • Tested on CentOS 6.5
  • Tested on Ubuntu 12.04
  • Should work on a wide variety of other systems

Cookbook Dependencies:


  • No user-configurable attributes



  • Audits and remediates Bash-CVE-2014-7169 ("Shellshock")


  • Installs an OHAI plugin that will automatically audit nodes for the Shellshock vulnerability. This plugin creates two new values in OHAI:

node['languages']['bash']['version'], a string. Returned from bash --version.
node['languages']['bash']['shellshock_vulnerable'], a boolean. True if node is vulnerable.


  • If the node is marked vulnerable by the audit recipe, this recipe will attempt to upgrade bash via the native packaging system. Includes the audit recipe.
  • Audits and remediates Bash-CVE-2014-7169 ("Shellshock")



  • Includes a Chefspec suite. This can be run with rspec.

Test Kitchen / Serverspec

  • Includes Test-kitchen support for Ubuntu 12.04 and Centos 6.5 operating systems. The .kitchen.yml file defaults to the Vagrant driver. Universal Serverspec tests valid for both operating systems are included.

License and Author

Author:: Chef Software, Inc (
Author:: Charles Johnson (
Author:: Nicolas Rycar (
Author:: Julian Dunn (

Copyright:: 2014, Chef Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Dependent cookbooks

ohai ~> 2.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

1.0.0 (October 29th, 2014)

  • Initial release

Foodcritic Metric

1.0.0 passed this metric