
we are providing DevOps and security teams script to identify cloud workloads that may be vulnerable to the Log4j vulnerability(CVE-2021-44228) in their AWS account. The script enables security teams to identify external-facing AWS assets by running the exploit on them, and thus be able to map them and quickly patch them
.. image:: images/Mitiga_logo.png
我们为 DevOps 和安全团队提供脚本,用于识别其 AWS 账户中可能受 Log4j 漏洞 (Log4Shell) 影响的云工作负载。 我们目前支持 "CVE-2021-44228" 和 "CVE-2021-45046" RCE 漏洞。该脚本使安全团队能够通过对外部 AWS 资产执行漏洞利用来识别它们,从而能够映射它们并快速修补它们。
特性 ########
<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html>_cPython 3.6 及以上版本
安装所需的 Python 包: .. code-block:: console
pip3 install -r requirements.txt
扫描资源的 AWS 权限: .. code-block:: json
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ec2:DescribeInstances", "ec2:DescribeSecurityGroups", "elasticloadbalancing:DescribeLoadBalancers", "elasticloadbalancing:DescribeListeners", "elasticloadbalancing:DescribeRules", "elasticloadbalancing:DescribeTargetGroupAttributes", "elasticloadbalancing:DescribeTargetGroups", ], "Resource": "*" } ] }
执行脚本之前
########
您需要一个服务器来等待来自易受攻击端点的 DNS 请求,
在本演示中,我们使用:interactsh <https://github.com/projectdiscovery/interactsh>,这是一个外部工具。您可以使用 interactsh 客户端或 Interactsh 网页应用 <https://app.interactsh.com/#/>
获取用于 DNS 请求的 URL 地址。使用 'interactsh',您可以在客户端应用中找到它: .. image:: images/interactshdomain.png 或使用网页应用: .. image:: images/webinteractsh.png
使用以下参数执行 main.py 脚本:
查找易受攻击的端点 ######## 易受攻击的端点应向您的服务器发送 DNS 请求,格式如下:
cli 示例:
.. image:: images/interactshresult.png
web 示例:
.. image:: images/webinteractsh_result.png
本项目仅用于教育目的。该项目不能替代成熟的修复计划,也不能完全覆盖对外或易受攻击的资产。Mitiga 不对因使用本项目造成的任何损害承担责任。