如何获取AWS中所有服务器的服务器名称/ID和内核版本的报告?

发布于 2025-01-13 09:33:22 字数 309 浏览 6 评论 0原文

  • 我正在使用 SSM 运行 uname -srm 来识别项目中一堆 AWS 账户中所有 EC2 实例的内核版本。

  • 我将 SSM 命令的结果存储在 S3 上

  • 接下来我将下载 S3 内容并对结果执行 grep 以查看是否正在使用内核 5.x

有没有更好的方法来自动执行此搜索?我只需要一份实例名称/ID、内核版本的报告。

我进行此搜索是为了确定哪些服务器受到 Dirty Pipe Linux 内核漏洞 (CVE-2022-0847) 的影响。

  • I am using SSM to run uname -srm to identify the kernel versions of all the EC2 instances in a bunch of AWS accounts in my project.

  • And I'm storing the results of SSM commands on S3

  • Next I'm downloading the S3 contents and doing a grep on the results to see if there's a kernel 5.x being used

Is there a better way to automate this search? I just need a report of instance name/id, kernel vsersion.

I am doing this search to identify which servers are affected by the Dirty Pipe Linux kernel vuln (CVE-2022-0847).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文