Metabadger helps prevent SSRF attacks on AWS EC2 by automating upgrades to the more secure Instance Metadata Service v2 (IMDSv2). It diagnoses current usage, prepares for upgrades, and allows disabling of the service where not needed to reduce attack surface. Metabadger prepares you to upgrade to v2 of the Instance Metadata service to safeguard against v1 attack vectors. It gives you the ability to specifically update your instances to only use IMDSv2. It also gives you the ability to disable the Instance Metadata service where you do not need it as a way to reduce attack surface. The AWS metadata service essentially gives you access to all the things within an instance, including the instance role credential & session token. Known SSRF vulnerabilities that exploit and use this attack as a pivot into your environment. The famous attacks you have heard about, some of which involved this method of gaining access via a vulnerable web app with access to the instance metadata service. Attacker could take said credentials from metadata service and use them outside of that particular instance. IMDSv2 and why it should be used: Ensuring that instances are configured to use IMDSv2. This is the recommended configuration for new instances. It is also recommended to disable the instance metadata service where it is not needed. This is to reduce the attack surface. Metabadger helps you do this. It helps you prepare for the upgrade to IMDSv2. It helps you update your instances to only use IMDSv2. It helps you disable the instance metadata service where you do not need it. This is to reduce the attack surface. Metabadger helps you do this. It helps you prepare for the upgrade to IMDSv2. It helps you update your instances to only use IMDSv2. It helps you disable the instance metadata service where you do not need it. This is to reduce the attack surface.
FEATURES
ALTERNATIVES
Centrally Manage Cloud Firewall Rules with AWS Firewall Manager
CloudDefense.AI is a Cloud Native Application Protection Platform (CNAPP) that safeguards cloud infrastructure and cloud-native apps with expertise, precision, and confidence.
CLI tool for deleting AWS resources in bulk with inspecting functionality.
An AWS Lambda auditing tool that provides asset visibility and actionable results through statistical analysis and security checks.
CloudScraper is a tool for enumerating cloud resources, including S3 Buckets, Azure Blobs, and Digital Ocean Storage Space.
Azucar is a multi-threaded plugin-based tool for assessing Azure Cloud security.
Access Undenied parses AWS AccessDenied CloudTrail events, explains the reasons for them, and offers actionable fixes.
PINNED

Mandos Brief Newsletter
A weekly newsletter providing cybersecurity leadership insights, industry updates, and strategic guidance for security professionals advancing to management positions.

PTJunior
An AI-powered penetration testing platform that autonomously discovers, exploits, and documents vulnerabilities while generating NIST-compliant reports.

CTIChef.com Detection Feeds
A tiered cyber threat intelligence service providing detection rules from public repositories with varying levels of analysis, processing, and guidance for security teams.

ImmuniWeb® Discovery
ImmuniWeb Discovery is an attack surface management platform that continuously monitors an organization's external digital assets for security vulnerabilities, misconfigurations, and threats across domains, applications, cloud resources, and the dark web.

Checkmarx SCA
A software composition analysis tool that identifies vulnerabilities, malicious code, and license risks in open source dependencies throughout the software development lifecycle.

Orca Security
A cloud-native application protection platform that provides agentless security monitoring, vulnerability management, and compliance capabilities across multi-cloud environments.

DryRun
A GitHub application that performs automated security code reviews by analyzing contextual security aspects of code changes during pull requests.