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

推荐订阅源

量子位
I
InfoQ
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
美团技术团队
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
Last Week in AI
Last Week in AI
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
云风的 BLOG
云风的 BLOG
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
G
Google Developers Blog
博客园 - 叶小钗
博客园 - Franky

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
Detect runtime threats in Python Lambda functions with Da...
Florentin Labelle · 2026-04-14 · via Datadog | The Monitor blog

Python AWS Lambda functions are ephemeral and highly distributed, which creates security visibility gaps that traditional perimeter defenses and proxy-based controls struggle to fill. Techniques such as credential stuffing, SQL injection, and server-side request forgery (SSRF) can look like legitimate application traffic, making them difficult to identify without visibility inside the application itself.

To help solve this challenge, Datadog App and API Protection (AAP) now extends full in-process application security monitoring to Python Lambda functions. By integrating directly with your application runtime through Datadog tracing libraries, AAP provides deeper insight into how requests interact with your code. This in-process visibility enables you to detect exploit attempts, correlate them with vulnerable code paths, and respond with higher confidence.

In this post, we’ll explore how AAP helps you:

  • Increase visibility in Lambda environments

  • Detect successful injection attacks with Exploit Prevention

  • Identify and respond to account takeover attempts

Increase visibility in Lambda environments

Traditional approaches to securing serverless applications rely on proxies or external web application firewalls (WAFs) to inspect incoming traffic. Although these approaches can identify known attack patterns, they lack visibility into how requests are processed when they reach your application. Without runtime visibility, teams struggle to determine whether an attack succeeded or which part of their code was affected.

Previously, AAP for Lambda used a language-agnostic approach by running a WAF within the Datadog Lambda Extension. As shown in the following diagram, this proxy-based model inspects requests before they reach the function but can’t observe execution within the runtime itself.

Diagram showing proxy-based security inspection outside the Lambda runtime before requests reach application code.

AAP now integrates directly into the Python runtime by using the Datadog tracing library. This enhancement shifts security monitoring into the application process, where AAP can observe function calls, the request context, and execution paths in real time.

Diagram showing in-process security monitoring inside the Lambda runtime with direct visibility into application execution.

This architectural change aligns how AAP operates in serverless environments with its implementation in other environments by embedding the same security engine in the application runtime. As a result, teams can adopt new detection capabilities more quickly and gain consistent visibility across their services. The change also enables AAP to capture application-level context, such as user actions and function calls, that external tools cannot access.

Detect successful injection attacks with Exploit Prevention

Detecting attack attempts is useful, but understanding whether they succeeded is critical. Many injection attacks become meaningful only when untrusted input reaches vulnerable code during execution. Network-layer monitoring can’t determine whether that condition has occurred.

Exploit Prevention, a feature of AAP, brings runtime application self-protection (RASP) capabilities to Python Lambda functions. Exploit Prevention uses instrumentation from the Datadog tracing library to analyze how untrusted data flows through your application and determine whether an exploit has occurred.

This approach enables detection of common injection attacks, including SSRF, shell injection, SQL injection, and local file inclusion. Instead of relying solely on request signatures, Exploit Prevention correlates incoming request data with function arguments and execution behavior. As a result, it can distinguish between benign input and true exploitation attempts.

Because Exploit Prevention ties detections to execution context, security signals include detailed stack traces that show exactly where and how the exploit occurred. These traces make it easier to investigate incidents, prioritize remediation, and reduce false positives that can arise from surface-level inspection.

Security trace showing a confirmed SQL injection attempt with request context and affected code path.

Identify and respond to account takeover attempts

Account takeover (ATO) attacks often unfold across multiple requests and sessions, making them difficult to detect with stateless monitoring. In serverless environments, this challenge is amplified because each invocation is isolated and short-lived.

Datadog’s Lambda library for Python enables your application to emit authentication-related events, such as user.login and session.create, directly from your business logic. By capturing these signals, AAP can analyze authentication behavior across invocations and detect suspicious patterns, including brute force attacks, credential stuffing, and distributed credential stuffing campaigns. These detections rely on indicators such as login velocity anomalies, repeated failures, and activity across multiple IP addresses.

Security signal highlighting a credential stuffing attack with attacker metadata and affected users.

Because these signals are enriched with application context, your teams can quickly identify affected users and investigate attacker behavior. This context also enables automated responses, such as blocking malicious IP addresses or enforcing additional authentication steps.

Start monitoring threats in your Python Lambda functions

By bringing in-process security monitoring to Python Lambda functions, Datadog AAP gives you the visibility that you need to detect real threats, not just suspicious traffic. You can observe how requests interact with your code, identify successful exploits, and correlate authentication activity across distributed serverless workloads.

To get started, enable AAP on your instrumented Lambda functions by setting DD_APPSEC_ENABLED=true. For detailed setup instructions, read our documentation for securing Python Lambda functions.

If you’re new to Datadog, you can sign up for a 14-day free trial to start monitoring threats across your Python Lambda functions.