Git Product home page Git Product logo

ansible-meltdown-spectre's Introduction

ansible-meltdown-spectre

Ansible Playbook to run the Red Hat spectre-meltdown check script for CVE-2017-5754 CVE-2017-5753 CVE-2017-5715.

Aka: Spectre and Meltdown Kernel side-channel attacks.

Usage

  1. Set your inventory under [Check]
  2. Ensure ansible_user variable is set for a valid user, use host variables if needed.
  3. Make sure ansible_become_pass has a valid password IF password-less sudo is not enabled.
  4. Make sure ScriptUrl variable is set appropriately.
  5. Make sure ScriptGpgSigUrl variable is set correctly - if you want to verify the GPG2 signature of the script.

You can run the playbook like so:

ansible-playbook -i inventory site.yml

Playbook will automatically download the check script and verify the GPG2 signature if the ScriptGpgSigUrl variable is defined.

Hosts that are vulnerable will show up as failed with a message of what vulnerabiliy was found. Additionally under the highlight vulnerabilites task, you will see the vulnerability that was found as a changed task.

TASK [highlight vulnerabilites] ******
ok: [store1] => (item=Spectre1)
ok: [oldgw] => (item=Spectre1)
changed: [oldgw] => (item=Spectre2)
ok: [oldgw] => (item=Meltdown)
changed: [store1] => (item=Spectre2)
ok: [store1] => (item=Meltdown)

TASK [Error if vulnerabilities] ******
fatal: [store1]: FAILED! => {"changed": false, "failed": true, "msg": "found vulnerabilites: Spectre2"}
fatal: [oldgw]: FAILED! => {"changed": false, "failed": true, "msg": "found vulnerabilites: Spectre2"}

References

Red Hat Knowledge article: https://access.redhat.com/security/vulnerabilities/speculativeexecution

What is Spectre and Meltdown: https://www.redhat.com/en/blog/what-are-meltdown-and-spectre-heres-what-you-need-know

Disclaimer

I wrote this on my own time for my own purposes. This playbook is not official, not endorsed, not supported, nor maintained by Red Hat.

ansible-meltdown-spectre's People

Contributors

gonoph avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-meltdown-spectre's Issues

execute script task doesn't check if executed properly

There could be an instance where execute of the script exits with a valid code, but doesn't actually complete correctly. There could also be an instance where script runs, but is not able to see the debugfs (for whatever reason).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.