惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

SecWiki News
SecWiki News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
I
Intezer
月光博客
月光博客
Cyberwarzone
Cyberwarzone
雷峰网
雷峰网
Security Latest
Security Latest
量子位
博客园 - 聂微东
小众软件
小众软件
NISL@THU
NISL@THU
C
Cisco Blogs
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
Y
Y Combinator Blog
V
V2EX
博客园 - 三生石上(FineUI控件)
P
Privacy & Cybersecurity Law Blog
F
Full Disclosure
Cisco Talos Blog
Cisco Talos Blog
Microsoft Security Blog
Microsoft Security Blog
S
Security @ Cisco Blogs
The Register - Security
The Register - Security
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
IT之家
IT之家
Webroot Blog
Webroot Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
aimingoo的专栏
aimingoo的专栏
腾讯CDC
S
Schneier on Security
L
LINUX DO - 最新话题
Latest news
Latest news
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
A
Arctic Wolf
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Secure Thoughts
S
Securelist
Stack Overflow Blog
Stack Overflow Blog
T
Troy Hunt's Blog
Recorded Future
Recorded Future
I
InfoQ
The Cloudflare Blog
H
Heimdal Security Blog
Hugging Face - Blog
Hugging Face - Blog

Wiz Blog | RSS feed

Meet Wiz for M365: Bringing SaaS into the Security Graph How to Harden GitHub Actions: An Updated Guide Bringing Security Visibility to Vercel with Wiz Axios NPM Distribution Compromised in Supply Chain Attack Tracking TeamPCP: Investigating Post-Compromise Attacks Seen in the Wild The Wiz Blue Agent, now Generally Available Beyond the Badge: What Achieving Microsoft’s Certified Software Designation Means for Your Cloud Security Introducing the Green Agent: AI-Powered Remediation for the Cloud Three’s a Crowd: TeamPCP trojanizes LiteLLM in Continuation of Campaign KICS GitHub Action Compromised: TeamPCP Strikes Again in Supply Chain Attack Introducing the Wiz Red Agent- AI-Powered Attacker Introducing Wiz AI Application Protection Platform (AI-APP) Introducing Wiz Agents & Workflows: Security at the Speed of AI AI Runtime Threat Detection: From Input to Real-World Impact Trivy Compromised: Everything You Need to Know about the Latest Supply Chain Attack It’s Official: Wiz Joins Google Understanding and Reducing AI Risk in Modern Applications Introducing Wiz Tenant Manager: Multi-Tenant Management for Federated Organizations The Agile FedRAMP Playbook, Part 4: Reactive Risk Management through Enriched Incident Response Wiz Achieves CPSTIC Certification in Spain Seeing AI Clearly: Building Visibility Across Modern AI Applications The Agile FedRAMP Playbook, Part 3: Preventative Risk Management by building Secure by Design Wiz Leads the 2026 Latio Application Security Report with awards in 4 categories Building an Agentic Cloud Security Ecosystem: A Reference Architecture with Wiz MCP and Infosys Cyber Next The Agile FedRAMP Playbook, Part 2: Proactive Risk Management with Continuous Monitoring Cloud-native Security for your Windows environment: Announcing the Wiz Runtime Sensor for Windows Would You Click ‘Accept’? Automatically detecting malicious Azure OAuth applications using LLMs Wiz Named a Leader in The Forrester Wave™: Cloud Native Application Protection Solutions, Q1 2026 From Detection to Remediation: It’s Time to Rethink AppSec Around Exploitability and Root Cause Fixes The Agile FedRAMP Playbook, Part 1: Why Risk is Your Best Starting Point Introducing AI Cyber Model Arena: A Real-World Benchmark for AI Agents in Cybersecurity Wiz + Spotify Backstage: Security at the Developer’s Desk Building AI Security Together: New Ways to Partner with Wiz for AI Security in 2026 Hacking Moltbook: The AI Social Network Any Human Can Control The Year in Wiz Research: 2025 Most Read Blogs WizExtend is Here: AI and Cloud Security Insights in Your Daily Workflow From Detection to Remediation: Wiz in Your JetBrains IDE Agentic Browser Security: 2025 Year-End Review CodeBreach: Infiltrating the AWS Console Supply Chain and Hijacking AWS GitHub Repositories via CodeBuild A 90-Day Action Plan to Turn Resolutions into Results with Wiz Introducing the Wiz Partner Alliance: A New Chapter for Partner Success Preparing for Post-Quantum Cryptography Wiz Recognized as a 2025 Customers’ Choice in the Gartner® Peer Insights™ Voice of the Customer for CNAPP Expanding the Zero Critical Club to set a new standard for AppSec and SecOps teams Snipping the Long Tail of Shai-Hulud 2.0 Protecting Against Zero-Day Vulnerabilities with SOC-Level ASM Alert MongoBleed (CVE-2025-14847) exploited in the wild: everything you need to know The Kenna Transition: Your Strategic Shift to Exposure Management From MCP to Vibe Coding: Full Endpoint Visibility in Wiz AI Security Bringing Oracle Cloud Identity to Wiz Zero‑Days in the Age of AI: Behind the Scenes of ZeroDay.cloud 2025, with a Record High of CVEs in Critical Cloud Infra Gogs 0-Day Exploited in the Wild Code to Cloud Attacks: From Github PAT to Cloud Control Plane Top AWS re:Invent Announcements for Security Teams in 2025 React2Shell: Technical Deep-Dive & In-the-Wild Exploitation of CVE-2025-55182 React2Shell (CVE-2025-55182): Everything You Need to Know About the Critical React Vulnerability Wiz Product Announcements at re:Invent 2025: Expanding Visibility from Code to Cloud Introducing Wiz SAST: Where Code Risk Meets Cloud Context Wiz Becomes Fastest Security ISV to Reach $1 Billion in AWS Marketplace Lifetime Sales It's Here! Wiz Exposure Management is Now GA Shai-Hulud 2.0 Aftermath: Trends, Victimology and Impact Service Catalog is Here: Expand Risk Visibility for Your Service and Its Dependencies, Simplify Issue Ownership WizOS: Powering Secured Image Adoption with AI 3 OAuth TTPs Seen This Month — and How to Detect Them with Entra ID Logs Mastering Software Governance with Hosted Technologies Inventory Shai-Hulud 2.0 Supply Chain Attack: 25K+ Repos Exposing Secrets Get Certified on Wiz Defend for Threat Detection and Response Blueprint for Security: A Guide to Code, Governance, and Response Frameworks Google Unified Security Recommended Program Names Wiz Among First 3 Strategic Partners Introducing Posture Issues: Transform Security Findings into Actionable Outcomes Empower and Accelerate Your SOC with the Blue Agent Exposure Report: 65% of Leading AI Companies Found with Verified Secret Leaks Wizdom 2025 Product Announcements: Extending the Cloud Operating Model When AI Becomes the Heart of Security: Powering a Future You Can Trust AI-Powered Wiz: From Agents to Everyday Intelligence Defend Agentless Workload Detection: Bringing Visibility to Blind Spots in Threat Detection Securing AI Agents with Wiz AI-SPM Introducing Wiz ASM: Context-Driven Attack Surface Management Securing Critical Infrastructure in the Cloud Era: A Policy and Technology Blueprint How CISOs Should Plan Security Budgets for 2026 Beyond the Checkbox: How Wiz Transforms SOC 2 into a Security Powerhouse Bringing Visibility to Kubernetes: Unified Inventory and Network Insight The Foundation Modern AppSec Is Still Missing: Code to Cloud, Rebuilt the Right Way Dismantling a Critical Supply Chain Risk in VSCode Extension Marketplaces Introducing HoneyBee: How We Automate Honeypot Deployment for Threat Research RediShell: Critical Remote Code Execution Vulnerability (CVE-2025-49844) in Redis, 10 CVSS score Defending against database ransomware attacks AI Security 101: Mapping the AI Attack Surface Introducing zeroday.cloud: First-of-its-kind cloud and AI hacking competition Unifying Cloud Risk and Network Defense: Wiz and Check Point The emerging use of malware invoking AI Wiz achieves FedRAMP High authorization Wiz + HCP Terraform: Close the IaC-to-Cloud Infrastructure Security Gap Beyond CVEs: The Exploitation of Everyday Misconfigurations Wiz Research Discovers One in Five Organizations Exposed to Systemic Risks in Vibe-Coded Applications - Here's How to Secure Them Introducing Wiz Incident Response: Your Expert Partner for Cloud Security Incidents Shai-Hulud: Ongoing Package Supply Chain Worm Delivering Data-Stealing Malware DORA Compliance in the Cloud Era: Insights from Deloitte and Wiz How Wiz Customers like Brex and FICO See AI Changing Security Wiz Recognized as a Leader in the 2025 IDC MarketScape for ASPM
IMDS Abused: Hunting Rare Behaviors to Uncover Exploits
Hila Ramati, Gili Tikochinski · 2025-09-22 · via Wiz Blog | RSS feed

Introduction

In the world of cloud security, the Instance Metadata Service (IMDS) is a fundamental building block. It’s designed to provide virtual machines with a simple way to securely get temporary credentials and critical data without hardcoding secrets. But what happens when that convenience is turned against us?

Over the years, threat actors have learned to turn IMDS into a stepping stone for credential theft, lateral movement, and privilege escalation. This post is about how we used a data-driven methodology to uncover and stop anomalous IMDS usage, and how that approach led us to discover a zero-day vulnerability being exploited in the wild in a popular web service.

What is IMDS?

The Instance Metadata Service is a server running on every cloud compute instance that provides temporary, short-lived credentials and other data to be used by applications running on cloud compute. This allows them to securely access cloud services without needing to hardcode credentials on the machine. While Azure and AWS call this service IMDS, in GCP it’s known as the VM metadata service.

Here’s a basic example of how IMDS is used: Suppose you have an EC2 instance in an AWS environment running an application that needs to access an S3 bucket. Instead of hardcoding AWS credentials into your application or environment variables, the application can retrieve temporary credentials from the instance metadata. From within the EC2 instance, the application can make an HTTP request like this:

This returns temporary credentials associated with the IAM role assigned to the instance. These credentials can then be used to securely interact with AWS services like S3, RDS, or DynamoDB. This allows your application to authenticate securely without storing credentials on the machine, reducing the risk of accidental exposure.

AWS offers two versions of IMDS:

  • IMDSv1, the original implementation, allows direct unauthenticated HTTP requests to the metadata endpoint without additional protections. This version is famously susceptible to Server-Side Request Forgery attacks (SSRF) - more on this later.

  • IMDSv2, the newer version, introduces session-oriented requests that require a token. This token-based approach increases the complexity of SSRF exploitation since it requires both control of the HTTP Method used (PUT and GET) and the ability to forge request headers.

Most modern guidance recommends enforcing IMDSv2 wherever possible, since many IMDS abuse techniques specifically rely on the weaker security posture of IMDSv1.

The Attacker's Playbook

In order to gain initial access to a cloud environment, attackers typically look for a way to “trick” an application running on an exposed compute instance into querying the IMDS and providing them with the retrieved temporary credentials. They can then move laterally and escalate privileges throughout the environment. In our experience a typical attack targeting IMDS involves exploitation of one of the following types of application vulnerabilities:

  • Server-Side Request Forgery (SSRF): A classic technique where attackers leverage a vulnerable web application to send requests on their behalf. If the application can reach the IMDS endpoint and is susceptible to SSRF, the attacker can harvest temporary credentials without needing any direct host access (such as RCE or path traversal).

  • Code Injection and Misconfigured Workloads: Applications with injection flaws or unnecessary network access can be manipulated to query IMDS internally, effectively turning the workload into a proxy for the attacker.

Our Approach to IMDS Exploitation Hunting

The Wiz Research team continuously monitors trends across the threat landscape using Wiz Defend’s threat detection rules. Our goal is to track attacker tradecraft (TTPs) as it evolves, so we can rapidly adapt defenses and keep our customers protected.

Part of this includes hunting for global anomalies - behavior that stands out from normal activity across all cloud environments. Our initial threat hunting hypothesis concerning IMDS is that if a common application that doesn’t normally use IMDS suddenly does so, it might indicate that the application has somehow been compromised by an attacker. Using data from our runtime Sensor, we apply a multi-step approach to detect deviations from expected patterns:

1. Finding the Baseline for Normal IMDS Usage

The first question is: "What processes consistently access IMDS, and how often?"

By analyzing telemetry from across environments, we can build a high-confidence list of common, expected IMDS clients like AWS SDKs, nm-cloud-setup, and EC2 agents. This gives us our baseline of “normal” behavior.

2. Identifying Suspicious or Infrequent Access Patterns

Once we know what’s normal, we look for what isn't. We search for processes that access IMDS in only a small fraction of environments; things that commonly exist in cloud environments but usually just never access IMDS.

These rare or one-off access patterns often point to:

  • Exploitation of SSRF or RCE vulnerabilities

  • Malicious code introduced via supply chain or post-compromise tooling

3. Filtering by Suspicious Metadata Paths

To be even more precise (to avoid false positives caused by rare yet legitimate IMDS usage), we narrow our focus to requests made to sensitive IMDS endpoints. Legitimate software rarely needs to access these, but attackers are drawn to them because they reveal valuable information. For example, an attacker would be highly interested in the following endpoints:

  • /latest/meta-data/iam/info:
    Returns information about the IAM role assigned to the instance.

  • /latest/meta-data/iam/security-credentials/:
    Returns the list of IAM roles this EC2 instance can assume.

  • /computeMetadata/v1/instance/service-accounts/:
    Returns a list of service accounts that the compute instance has access to.

These endpoints are goldmines for attackers trying to figure out what permissions they can abuse. By focusing our detections on these, we can more accurately identify potential threats.

4. Filtering by Compute Context 

Wiz Sensor gathers valuable contextual information about both the process and the container or compute instance it’s running on. This data helps enhance our threat hunting efforts by allowing us to prioritize high-risk scenarios - for example, compute instances with internet exposure, access to sensitive data, or those exhibiting other, less obvious signs of suspicious activity during the same time period.

The following visualization shows our results after filtering the dataset to exclude programs with 0% IMDS access or insufficient data (e.g., those appearing in only one environment).

Bar Charts showing the prevalence of various processes in cloud environments and their IMDS usage.

Real-World Finding 1: Pandoc SSRF

Using the process described above, we uncovered exploitation in the wild of a previously unknown zero-day vulnerability in a popular web service stemming from insecure use of pandoc.

The hunt began with a process named pandoc making an unusual IMDS request. While this binary can be found in numerous environments, in less than 2% of those environments it was consistently accessing sensitive IMDS endpoints, including /latest/meta-data/iam/info. This immediately raised a red flag.

We were initially unfamiliar with pandoc, but a quick search showed it to be a Linux utility used for converting between markup formats. There was no indication in the documentation that it should access cloud credentials or interact with IMDS.

Our investigation led us to a GitHub issue reporting an SSRF vulnerability in pandoc when converting HTML to PDF. The vulnerability, tracked as CVE-2025-51591, stems from pandoc rendering <iframe> tags in HTML documents. This would allow an attacker to craft an <iframe> that points to the IMDS server, or other private resources.

In this case, the web service that was using pandoc failed to include the raw_html flag or the sandbox flag when converting HTML documents, both of which are recommended in the documentation when handling untrusted HTML:

Snippet from pandoc's documentation recommending the usage of the sandbox or raw_html flags


The attacker submitted crafted HTML documents containing <iframe> elements whose src attributes targeted the AWS IMDS endpoint at 169.254.169.254. The objective was to render and exfiltrate the content of sensitive paths, specifically /latest/meta-data/iam/info and /latest/meta-data/iam.

However, the attack was neutralized by the mandatory enforcement of IMDSv2. This protocol invalidates stateless GET requests, such as those initiated by an <iframe>, by requiring a pre-negotiated session token. As the attacker's payload could not perform the initial token retrieval, all requests to the metadata service were rejected, effectively mitigating the threat. If the application were running in an environment still dependent on the IMDSv1 protocol, this attack vector would likely have resulted in credential compromise. Thanks to the use of IMDSv2, the attacker could only access other internal servers, and was unable to pivot to the cloud control plane.

Real-World Finding 2: Clickhouse SSRF

Using the same technique, we identified a Server-Side Request Forgery (SSRF) vulnerability being abused in another widely used application: ClickHouse.

ClickHouse can be found in many cloud environments, but during our hunt we only found one case where the application had access to the Instance Metadata Service (IMDS) within the examined timeframe. That anomalous single hit led us to dig deeper into potential SSRF vectors in ClickHouse.

We came across a particularly useful blog post by researcher PizzaPower, who detailed how ClickHouse’s SELECT * FROM url SQL method can be abused when misconfigured if unauthenticated users are allowed to query arbitrary URLs. We expanded on that research and found that it can be used to access IMDS and read sensitive data such as tokens and secrets provided to the machine.

In our case, the vulnerable instance was running in a GCP environment, which highlights how this technique isn’t limited to AWS, and therefore the hunting methodology described above can be considered cloud-agnostic.

In this case, the attack was unsuccessful due to platform mitigations; the compromised instance simply lacked credentials with sufficient privileges to cause significant damage. However, this outcome was more a matter of luck than design. Had a misconfigured ClickHouse instance with access to private S3 buckets been running instead, the situation could have been far more serious. Combining that access with a feature like READ ON URL open to unauthenticated users would have provided a direct path to a major data breach.

How Can Wiz Help?

These discoveries highlight a key principle of modern cloud security: to find what others can't, you have to look beyond traditional signatures and understand the full context of the environment. At Wiz, our customers benefit from two powerful layers of protection built on this principle.

1. Expert Cloud Threat Intelligence: Our research team combines our knowledge of the cloud threat landscape with threat hunting engagements that reveal real-world vulnerabilities and novel attack techniques like exploitation of previously unknown SSRF vulnerabilities. This proactive, human-driven research provides unique intelligence that goes beyond what automated tools can find on their own.

2. The Wiz Platform: This intelligence is then built into the Wiz platform, which provides continuous, automated protection for your environment:

  • Proactive Prevention: Wiz helps you identify misconfigurations, like instances using IMDSv1, and apply the principle of least privilege. This enables you to address attack vectors before they're exploited.

  • Real-time Detection: The Wiz platform integrates anomaly-based principles at the environment level, similar to those that found the Pandoc and Clickhouse issues, to raise an alarm when a process that previously did not access IMDS begins to do so.

  • Context and Prioritization: Our Security Graph visualizes how a compromised instance could be used for lateral movement or privilege escalation. This helps customers prioritize and fix the issues that pose the most significant risk to your environment.

By combining the power of our threat research with a robust, integrated platform, we help you protect your cloud environment not just from known threats, but from new ones as well.

Securing your cloud environment against IMDS abuse requires both a strong prevention strategy and a robust detection capability. Wiz can help you with both:

Prevention

  1. Wiz CSPM and Cloud Configuration Monitoring: Wiz continuously monitors your cloud configurations to identify instances that might be vulnerable to IMDS exploitation, such as those with overly permissive network access or unpatched applications.

  2. This includes detection of misconfigured instances for applications like ClickHouse.

  3. Identify and Enforce IMDSv2 Usage: Wiz helps you identify instances still using IMDSv1 and provides recommendations to enforce IMDSv2, which requires session tokens, significantly mitigating SSRF risks.

  4. Least Privilege Access for Instances: By mapping permissions, Wiz helps ensure that instances and the roles they assume have only the minimum necessary permissions, limiting the blast radius even if IMDS is compromised.

Detection

  1. Wiz Runtime Sensor: The Wiz Runtime Sensor detects real-time events and behaviors associated with anomalous IMDS usage, alerting you to suspicious activity as it happens. This includes:

  2. Anomalous IMDS Query Patterns: Detection of unusual request volumes or access to sensitive metadata endpoints.

  3. IMDS Access from Unexpected Sources: Identifying queries originating from processes not typically associated with IMDS access.

  4. Exfiltration Attempts: Monitoring for attempts to move credentials or other sensitive data out of the instance after IMDS interaction.

  5. Security Graph Analysis: Wiz's Security Graph visualizes the interconnectedness of your cloud assets, allowing you to quickly identify how IMDS exploitation could lead to lateral movement or privilege escalation within your environment.

  6. Threat Intelligence Integration: Wiz integrates with our own internal IOC database as well as 3rd-party threat intelligence feeds to identify known malicious IP addresses or patterns associated with IMDS abuse campaigns, enhancing detection capabilities.

Conclusion

IMDS is a fundamental part of a secure cloud architecture, but its potential for abuse means you can’t take it for granted. By understanding how attackers leverage this service, properly configuring your applications to limit their potential for abuse, and implementing proactive risk and threat monitoring with a platform like Wiz, you can dramatically reduce your attack surface and protect your critical cloud assets from advanced threats. And from a threat hunting perspective, we believe that the key is to stop hunting for needles in a haystack and start looking for what shouldn't be in the haystack at all.

Relevant TTPs

MITRE TacticTechnique & IDAnomalous IMDS Usage Example
Initial AccessServer-Side Request Forgery (T1190)Exploiting a web application vulnerability to make requests to the IMDS endpoint.
Credential AccessOS Credential Dumping: Cloud Instance Metadata API (T1087.004)Querying IMDS to retrieve temporary security credentials.
Defense EvasionImpair Defenses: Disable or Modify System Firewall (T1562.004)Modifying firewall rules to allow IMDS access from unauthorized sources.
DiscoveryCloud Instance Metadata API (T1580.005)Enumerating instance metadata paths to find sensitive information like IAM roles.
Lateral MovementUse Alternate Authentication Material (T1550.004)Using stolen temporary credentials from IMDS to access other cloud resources.
ExfiltrationExfiltration Over C2 Channel (T1041)Exfiltrating retrieved IMDS credentials to an attacker-controlled server.