aws-lambda

Fail

Audited by Runlayer on Mar 12, 2026

Risk Level: HIGH
Scan Summary
Max Score
90%
Files
12
Flagged
11
Chunks
23
Flagged Files (11)
aws-lambda/references/event-driven-architecture.mdHIGH
90.2%

Tool passed security scan

Risky tool definition detected

aws-lambda/references/observability.mdHIGH
90.2%

Risky tool definition detected

**Python:** ```python from aws_lambda_powertools import Metrics from aws_lambda_powertools.metrics import MetricUnit metrics = Metrics() # Reads POWERTOOLS_METRICS_NAMESPACE from env @metrics.log_metrics(capture_cold_start_metric=True) def handler(event, context): metrics.add_dimension(name="environment", value="prod") metrics.add_metric(name="OrdersProcessed", unit=MetricUnit.Count, value=1) metrics.add_metric(name="OrderTotal", unit=MetricUnit.Count, value=event["total"]) ``` **TypeScript:** `

aws-lambda/references/web-app-deployment.mdMEDIUM
84.3%

Tool passed security scan

Risky tool definition detected

### Auth Best Practices - [ ] Use JWT authorizers with HTTP API for most web applications — cheapest, lowest latency - [ ] Cache Lambda authorizer results (`ReauthorizeEvery` > 0) to avoid per-request invocations - [ ] Never use API keys as the sole authentication mechanism — they are for usage tracking, not identity - [ ] Use IAM authorization (SigV4) for service-to-service calls, not shared API keys - [ ] Store JWT client IDs and secrets in SSM Parameter Store, not in template literals ## Perf

aws-lambda/SKILL.mdMEDIUM
82.5%

Tool passed security scan

Risky tool definition detected

Access to sensitive data (like Lambda and API Gateway logs) is **not** enabled by default.

aws-lambda/references/step-functions.mdMEDIUM
79.7%

Tool passed security scan

Risky tool definition detected

without a Lambda wrapper for simple operations - **Enable X-Ray tracing** (`Tracing.Enabled: true`) for end-to-end visibility across Step Functions and Lambda spans - **Set logging to `Level: ERROR` in production** and `Level: ALL` when debugging; `IncludeExecutionData: true` is required to see input/output in logs - **Standard workflows**: prefer for non-idempotent operations — exactly-once semantics prevent accidental double-charges or duplicate records - **Express workflows**: ensure downstre

aws-lambda/references/troubleshooting.mdMEDIUM
78.0%

Tool passed security scan

Risky tool definition detected

**Resolution options (choose one):** - Add VPC gateway endpoints for DynamoDB and S3 (free, recommended) - Add VPC interface endpoints for other services (per-hour + per-GB cost) - Add NAT Gateway in public subnet (higher cost, required for internet access) - **Use IPv6 + Egress-Only Internet Gateway** for internet access — Lambda now supports IPv6, so if your VPC has IPv6 CIDR blocks and an Egress-Only Internet Gateway, Lambda functions can reach the internet without a NAT Gateway, eliminating

aws-lambda/references/event-sources.mdMEDIUM
76.1%

Risky tool definition detected

aws-lambda/references/optimization.mdLOW
73.2%

Tool passed security scan

Risky tool definition detected

### API Gateway REST API — Enable Streaming API Gateway REST API response streaming requires two changes in your OpenAPI definition: 1.

aws-lambda/references/powertools.mdLOW
58.6%

Tool passed security scan

aws-lambda/references/getting-started.mdLOW
58.1%

Tool passed security scan

aws-lambda/references/step-functions-testing.mdLOW
58.1%

Tool passed security scan

Passed Files (1)Click to expand
aws-lambda/references/orchestration-and-workflows.mdOK
17.9%

Tool passed security scan

Audit Metadata
Max File Score
90%
Classification
KNOWN_SERVER_KNOWN_TOOL_LIST
Files Scanned
12
Files Flagged
11
Chunks Analyzed
23
Analyzed
Mar 12, 2026, 01:12 AM