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

推荐订阅源

Last Week in AI
Last Week in AI
S
Schneier on Security
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
GbyAI
GbyAI
L
LINUX DO - 热门话题
大猫的无限游戏
大猫的无限游戏
Hacker News: Ask HN
Hacker News: Ask HN
A
Arctic Wolf
罗磊的独立博客
S
Securelist
I
Intezer
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Darknet – Hacking Tools, Hacker News & Cyber Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
M
MIT News - Artificial intelligence
C
Cisco Blogs
G
GRAHAM CLULEY
P
Proofpoint News Feed
美团技术团队
MongoDB | Blog
MongoDB | Blog
Cyberwarzone
Cyberwarzone
T
Tor Project blog
P
Proofpoint News Feed
NISL@THU
NISL@THU
J
Java Code Geeks
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
D
Docker
博客园 - 聂微东
I
InfoQ
AI
AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
O
OpenAI News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cybersecurity and Infrastructure Security Agency CISA
Know Your Adversary
Know Your Adversary
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
News | PayPal Newsroom
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
T
Tenable Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
MyScale Blog
MyScale Blog
T
Tailwind CSS Blog
K
Kaspersky official blog

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis Monitor Aruba Central in Datadog How we centralize and remediate risks with Datadog Case Management Accelerate incident response with Datadog and ServiceNow Monitor your application and network load balancer logs Understanding Karpenter architecture for Kubernetes autoscaling Tools for collecting metrics and logs from Karpenter Monitor Karpenter with Datadog What your product data is actually saying Key metrics for monitoring Karpenter Securing Datadog’s platform in the AI age: The role of observability data Four ways engineering teams use the Datadog MCP Server to power AI agents Approaching your observability migration with the right mindset Meet the new Bits AI SRE: Deeper reasoning, twice as fast Key learnings from the 2026 State of DevSecOps study Use plain English to query your multi-cloud infrastructure in Resource Catalog Simplifying troubleshooting across the user journey with Datadog Synthetic Monitoring Protect your OCI resources with Datadog Cloud Security This Month in Datadog - February 2026 Amazon EC2 security: How misconfigured and public AMIs expand your cloud attack surface Enable end-to-end visibility into your Java apps with a single command Measure and improve mobile app startup performance with Datadog RUM Evaluating our AI Guard application to improve quality and control cost Identify untested code across every level of your codebase Make use of guardrail metrics and stop babysitting your releases Monitor Versa Networks SD-WAN performance in Datadog Improve performance and reliability with APM Recommendations Remediate transitive vulnerabilities faster with Datadog Software Composition Analysis Generate audit-ready vulnerability and compliance reports with Datadog Sheets Monitor Fortinet FortiManager performance in Datadog Improve test coverage across codebases with Datadog Code Coverage Move fast, don’t break things: Consistent testing standards at scale Enrich logs with ServiceNow CMDB context before routing to any SIEM or logging tool Monitor Lustre with Datadog Make faster, better product decisions with Datadog Product Analytics Surface and remediate runtime posture issues with Workload Protection Findings Protect agentic AI applications with Datadog AI Guard How to optimize JavaScript code with CSS Trace Google Pub/Sub workloads in Cloud Run with Datadog Detect human names in logs with ML in Sensitive Data Scanner How we cut our NLQ agent debugging time from hours to minutes with LLM Observability Debug PostgreSQL query latency faster with EXPLAIN ANALYZE in Datadog Database Monitoring Datadog acquires Propolis Unify and correlate frontend and backend data with retention filters Scale compliance across global frameworks with Datadog Cloud Security Monitor Arista VeloCloud SD-WAN performance with Datadog Building reliable dashboard agents with Datadog LLM Observability Simplify log collection and aggregation for MSSPs with Datadog Observability Pipelines Mitigation for Node.js denial-of-service vulnerability affecting Datadog APM Automate flaky test fixes with the Bits AI Dev Agent and Test Optimization How we built an AI SRE agent that investigates like a team of engineers Datadog integrations 2025 recap: Observability for AI, security, and hybrid cloud Design effective executive dashboards with Datadog Implement dbt data quality checks with dbt-expectations Bring faster visibility into AWS Lambda functions with remote instrumentation Troubleshoot faster with the GitLab Source Code integration in Datadog How Cambia Health Solutions saved $30,000 monthly with Cloud Cost Management and the Datadog Resource Catalog Normalize any logs for Cloud SIEM with Datadog's OCSF processor Optimizing Datadog at scale: Cost-efficient observability at Zendesk Detect, diagnose, and resolve network issues easily with CNM Network Health Connect engineering errors to user impact in early-stage products Cilium configuration for Kubernetes operations at scale Designing feedback loops for progressive delivery Ship features faster and safer with Datadog Feature Flags Choosing the right OpenTelemetry Collector distribution Route your monitor alerts with Datadog monitor notification rules Automate Cloud SIEM investigations with Bits AI Security Analyst Cloud threat detection: How to identify risky activity across control and data planes Collecting Kafka performance metrics Monitoring Kafka with Datadog Monitoring Kafka performance metrics
How we detect and notify users about leaked Datadog credentials
2023-12-18 · via Datadog | The Monitor blog

Applications frequently need to provide authentication credentials to gain access to cloud services and other resources. However, these credentials present a security risk because they are notoriously difficult to keep out of code. According to a GitGuardian report, 10 million credentials were publicly committed to GitHub in 2022. Leaked credentials such as these are a major cause of data breaches and account takeovers.

Datadog has partnered with GitHub and GitGuardian to help protect our customers’ accounts from this risk. As part of this ongoing collaboration, we notify users as soon as we have detected that their Datadog API or application keys have been published in public repositories. In this post, we’ll explain how this process works and walk through strategies for reducing risk and mitigating the impact of leaked credentials.

How we identify leaked credentials

Datadog API and application keys enable our users to submit telemetry data to Datadog and send requests to the API. Most commonly, we see that keys are leaked in:

  • Datadog Agent configuration files
  • Documentation/READMEs for repositories
  • In-line comments in code
  • Scripts that use application keys and API keys to query or send data (e.g., as with the Datadog SDK or Terraform)

We joined forces with GitHub and GitGuardian to help protect our customers from attackers who may use these leaked credentials to gain unauthorized access to Datadog. To help GitHub identify potential Datadog keys, we provide a regular expression and associated detection rules. As GitHub scans the commits to public repositories in real time, it uses this information to detect potentially valid Datadog credentials before then notifying us about the findings. In addition, GitGuardian continuously scans through public repositories to find potential Datadog credentials and sends us all the relevant information if any are discovered.

We automatically verify this information from both sources as soon as we receive it. And whenever we do find a valid Datadog API or application key, we immediately notify the customer so that they can take action.

Diagram illustrating how Datadog notifies users about tokens detected on public repositories.

Email is one main way we notify users. We first attempt to email the creator of the key. If that user is no longer active, we email the admin users of that same Datadog organization. In the email, we provide information about the type of token that was leaked, who created it, and a URL of the page where it was detected. We also email any dedicated security contacts that have been configured for the Datadog account. As a rule of thumb, we recommend adding security contacts to ensure that the appropriate individuals get notified about leaked credentials and other important security-related events.

We also notify customers by posting an in-app notification on the API key management page and the application key management page.

Datadog posts an in-app notification that alerts users to leaked API keys.

Finally, users can also be notified about key leaks through Audit Trail: If you are using Audit Trail, you will see an Audit Trail event about the leaked token. In addition, you can also set up an Audit Trail monitor to track this event.

Mitigating the impact of leaked credentials

Once a key has been exposed publicly, it is virtually impossible to remove it from the internet. Even after you delete it from the public repository and scrub sensitive data from your commit history, you can’t do the same for forked and cloned versions of your repository. Beyond the risks of the leaked key persisting in these alternate locations, anyone who may have already gained access to it before it was deleted from the repository will still be able to use it. And since leaked credentials can be detected very quickly (e.g., GitGuardian is an external entity that can find leaks on GitHub in a matter of seconds), it’s possible for an attacker to take action very soon after the leak. This emphasizes the importance of taking immediate action to limit the impact of a leak.

Once a key is exposed, revoking it is the only guaranteed way to prevent attackers from using it to gain access to your account. To understand the potential impact of taking this step, you can check the key’s usage history on the API key management page of your Datadog account. If it has been used recently, you may have critical workflows that depend on the leaked key. Before revoking the key, you can create a new key and update your workflows—including but not limited to Agent configuration files—to utilize this new one instead. Once you are using the new key everywhere, you can then revoke the leaked key.

After getting notified about a leaked key, you should also review your account for suspicious activity, such as the adding or deleting of any users, or changes to role permissions. Also, Audit Trail records authentication events that provide visibility into the creation, modification, and deletion of API and application keys. You can search Audit Trail for the name or UUID of the leaked key to learn about any activity performed by this key, as well as who or what performed that activity.

Best practices for managing credentials

Although it’s essential to quickly revoke keys and monitor suspicious activity after a leak, it’s also important to prevent your credentials from getting leaked in the first place. One way to reduce the likelihood of a leak is to avoid including credentials in plaintext. Leaked keys are often found in the Agent configuration file (datadog.yaml), for example, where plaintext keys can be stored. One way you can avoid including API and app keys in datadog.yaml is by using the Datadog Agent’s secrets management package.

Besides keeping credentials out of code and configuration files, you can also implement a few best practices to start managing your Datadog credentials more safely:

Define scopes for your application keys

Application keys should be assigned only the minimum level of permissions needed, adhering to the principle of least privilege. Following this principle reduces the likelihood that a leaked key will have elevated permissions, which in turn helps limit the potential impact of leaks.

Datadog application keys inherit the permissions of the users who have created them, but these permissions are often broader than what the application keys actually require. Specifying scopes for your application keys can help. Scopes restrict application keys to a narrow set of capabilities in Datadog, allowing you to grant each application key only the types of permissions it needs. For example, an application may need the permission to access dashboards, but it should not be able to take any other actions. In that case, you can specify a scope that grants read access to dashboards but provides no other permissions. Note that scopes are meant to limit the privileges assigned to an application key; they cannot grant any privileges that are not already available to the creator of the key.

Use service accounts to manage application keys

Similar to how Datadog application keys inherit the permissions of the users who created them, the validity of the keys also depends on the status of the users who created them. If a user’s account is deactivated (for example, after they resign from the company), any application keys they have created will automatically get revoked. Once the key is revoked, however, any scripts or applications that are currently using that key will break.

Service accounts are designed to help solve this problem. They are a good option for managing application keys that are intended to be used by different people because they are not tied to any individual user of your Datadog organization. By using service accounts, you know that any activity associated with that application key is tied to that service account, rather than a particular user account, which may not be specific enough.

Revoke unused API keys

Although Datadog will notify you about key leaks that GitHub or GitGuardian have identified on public GitHub repositories, keys may also get leaked in other places. With this in mind, we recommend that you review your key usage activity on a regular basis and revoke inactive keys. Each key represents a security risk because it could potentially be leaked, so revoking keys that aren’t being used helps reduce risk exposure and the number of keys whose activity you need to monitor.

On the API key management page of your Datadog account, you can see the last time an API key was used over the past 30 days (or 90 days, if you’re an Audit Trail customer). If it has not been used in that period, this column will say “No recorded usage,” indicating that you should consider revoking it. Note a crucial difference that is relevant here between API keys and application keys. If an employee leaves your company and their Datadog account is deactivated, their application key(s) will automatically be revoked. However, any API keys they have created will remain valid. For this reason, unused API keys present a needless risk to your organization that lasts until you revoke them.

On the API key management page of your Datadog account, you can see the last time an API key was used.

Create multiple API keys for different purposes

Beyond deleting unused API keys, we also recommend creating multiple API keys—each used for a distinct and limited purpose—as opposed to using a single API key for all scenarios in your organization. Creating multiple API keys for different teams and purposes can be helpful for tracking usage in a more granular way and for limiting the potential impact of any particular leak. If you get notified that a key has been exposed, you will be able to quickly determine which applications are affected and limit the scope of impact by specifically focusing on replacing the key in those specific workflows.

Keys to safeguarding your account

At Datadog, we aim to protect our customers by making sure that no one can gain unauthorized access to their accounts. Notifying our users about publicly exposed API and application keys is just one example of how we are taking concrete steps toward that goal. Since we first started working with GitHub and GitGuardian on this initiative, Datadog has sent thousands of notifications to customers to help them quickly remediate the impact of leaked credentials. And looking forward, the Datadog Trust & Safety team will remain committed to working on this and other projects that help our customers safeguard their data.