本 Cookbook 旨在测试并可选择性地修复 bash 的 “Shellshock” 漏洞,其正式名称为 cve-2014-7169。
一旦 Chef-client 在一个或多个主机上执行了此 Recipe,即可通过 knife search: 从 Chef 服务器检索所有存在 “Shellshock” 利用漏洞的节点列表:
knife search node 'bash:shellshock_vulnerable'
本 Cookbook 依赖于操作系统原生的包管理系统来提供已修补版本的 bash 包。
安装一个 OHAI 插件,该插件将自动审计节点是否存在 Shellshock 漏洞。该插件在 OHAI 中创建两个新值:
node['languages']['bash']['version'],一个字符串。由 bash --version 返回。
node['languages']['bash']['shellshock_vulnerable'],一个布尔值。如果节点存在漏洞则为 True。
作者: Cookbook Engineering Team ([email protected])
版权: 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.