
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 자산을 식별하고, 이를 매핑하여 신속하게 패치할 수 있습니다.
기능 ########
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
웹 예시:
.. image:: images/webinteractsh_result.png
이 프로젝트는 교육 목적으로만 사용해야 합니다. 이 프로젝트는 성숙된 수정 계획을 대체하지 않으며, 외부에 노출되거나 취약한 자산에 대한 완전한 범위를 제공하지 않습니다. Mitiga는 이 프로젝트 사용으로 인한 어떤 손해에 대해서도 책임을 지지 않습니다.