DEPRECATED: Chef cookbook to audit & remediate "Shellshock" (BASH-CVE-2014-7169) https://supermarket.chef.io/cookbooks/bash-shellshock
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tim Smith fb894cca0c Use SPDX standard license string
Signed-off-by: Tim Smith <tsmith@chef.io>
2017-04-24 23:30:56 -07:00
attributes Update URLs 2015-09-10 22:01:01 -07:00
files/default/plugins Update URLs 2015-09-10 22:01:01 -07:00
recipes Update Copyright 2015-09-10 21:04:59 -07:00
spec use chefspec 4 format 2015-09-10 17:20:56 -07:00
tasks Add rakefile and maintainers files 2015-09-29 20:01:37 -07:00
test/integration/default/serverspec Resolve rubocop warnings 2015-09-09 22:25:55 -07:00
.foodcritic Move foodcritic exclusions to a .foodcritic file 2015-09-10 17:08:16 -07:00
.gitignore Minor updates 2016-01-20 10:47:18 -08:00
.kitchen.docker.yml Use kitchen-docker for testing 2015-11-03 12:10:11 -08:00
.kitchen.yml Minor updates 2016-01-20 10:47:18 -08:00
.rubocop.yml Minor updates 2016-01-20 10:47:18 -08:00
.travis.yml Remove RVM from Travis since we use Ruby in ChefDK 2015-11-30 17:03:10 -08:00
Berksfile Update format 2015-09-09 22:25:08 -07:00
CHANGELOG.md Release 1.0.1 2015-10-20 09:31:23 -07:00
chefignore Minor updates 2016-01-20 10:47:18 -08:00
CONTRIBUTING.md Add contributing and testing doc 2015-09-09 22:24:33 -07:00
Gemfile Minor updates 2016-01-20 10:47:18 -08:00
LICENSE Minor updates 2016-01-20 10:47:18 -08:00
MAINTAINERS.md Add rakefile and maintainers files 2015-09-29 20:01:37 -07:00
MAINTAINERS.toml Add rakefile and maintainers files 2015-09-29 20:01:37 -07:00
metadata.rb Use SPDX standard license string 2017-04-24 23:30:56 -07:00
Rakefile Use kitchen-docker for testing 2015-11-03 12:10:11 -08:00
README.md Update requirements section and authors 2015-09-29 20:01:58 -07:00
TESTING.md Add contributing and testing doc 2015-09-09 22:24:33 -07:00

bash-shellshock Cookbook

Build Status Cookbook Version

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 'bash:shellshock_vulnerable'

Limitations

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

Requirements

Platforms

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

Chef

  • Chef 11+

Cookbooks

Attributes

  • No user-configurable attributes

Recipes

bash-shellshock::default

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

bash-shellshock::audit

  • 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.

bash-shellshock::remediate

  • 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")

License & Authors

Author: Cookbook Engineering Team (cookbooks@chef.io)

Copyright: 20014-2015, 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

    http://www.apache.org/licenses/LICENSE-2.0

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.