Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

aws-lambda-managed-instances

Latest version: vgit:28900aaa06b79d093f3ed7815003f698fc330c5a

Overview

Last scanned
19 Nov 2026
Agent skill Publisher: aws
3,528 Stars
473 Forks
1 Versions
Python Repo language

Scan summary

aws-lambda-managed-instances was last scanned on 19 Nov 2026 at commit 28900aaa. Risk score 1 of 100 (low). No malicious behavior was detected.

  • Releases: Single version.
  • Findings: 1 rule fired in commit 28900aaa (3 instances: 3 low). The score describes this commit only.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
28900aaa 1 rule fired

Rules fired in 28900aaa: 1

Findings

3 Low

Findings for commit 28900aaa. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Skill mentions tunnel, paste or webhook services

The skill's text or scripts mention a tunneling service such as ngrok or trycloudflare, a Discord webhook, a raw paste link or a public IP address. Legitimate tools reference these too, so this is context for review rather than evidence of harm.

LOW
Checking access…

🔒 Create a free account to see all 3 findings with descriptions and instance counts

The score describes 28900aaa; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

AWS Lambda Managed Instances (LMI)

Runs Lambda Event Functions on EC2 instances in the user's account while AWS manages provisioning, patching, scaling, routing, and load balancing. Combines Lambda's developer experience with EC2's pricing and hardware options.

Works best with the AWS MCP server for sandboxed CLI execution and audit logging. All guidance also works with standard AWS CLI or SAM CLI.

Note: Confirm regional availability, quotas, and instance type offerings against current AWS documentation before production deployment.

Quick Decision: Is LMI Right for This Workload?

Signal LMI is a strong fit Lambda Event Functions are better
Traffic Steady, predictable, 50M+ req/mo Bursty, unpredictable, long periods of no traffic
Duration Long-running asynchronous/ESM jobs that exceed 30 min (up to 90 min on LMI): ETL/data processing, media transcoding, ML inference, financial calc, web scraping Short invocations; synchronous work needing >30 min (not supported on any Lambda)
Cost Duration-heavy spend at scale Low or sporadic invocations
Cold starts Unacceptable (LMI eliminates for provisioned capacity) Tolerable
Compute Latest CPUs, specific families, high network bandwidth, NVIDIA GPUs (inference, transcoding, rendering) Lambda Event Functions memory/CPU sufficient
Isolation Dedicated EC2 instances in your account, full VPC control Shared Firecracker micro-VMs acceptable
Scale-to-zero Does not scale to zero but can create custom schedules with AWS provided solutions Required (pay nothing when idle)
Code readiness Thread-safe (Node.js/Java/.NET) or any Python code Non-thread-safe code, expensive to change

Routing

Read ONLY the single reference file that matches the user's task. Do not preload multiple references.

User need Action
Cost comparison, pricing analysis, Savings Plans, Reserved Instances Read cost-comparison.md
Instance types, memory sizing, vCPU ratios, scaling tuning, capacity provider config, SOCI lazy loading for large container images Read configuration-guide.md
Thread safety, concurrency model, code review checklist, multi-concurrency readiness Read thread-safety.md
Before/after code examples, runtime-specific migration, connection pooling Read migration-patterns.md
IAM roles, VPC setup, CLI commands, SAM template, CDK example Read infrastructure-setup.md
Errors, throttling, debugging, stuck deployments Read troubleshooting.md
GPU-accelerated functions: accelerator memory, GPU instances, GPU base images (vLLM, SGLang, PyTorch), GPU concurrency, GPU errors Read gpu-acceleration.md

Troubleshooting quick facts (always mention when diagnosing issues):

  • Function version stuck in Pending → instance launches are failing; check the version's StateReasonCode. Top causes: INSUFFICIENT_CAPACITY (EC2 capacity), INSUFFICIENT_OPERATOR_ROLE_PERMISSIONS, CAPACITY_PROVIDER_SCALING_LIMIT_EXCEEDED (raise MaxVCpuCount). A capacity provider has no long CREATING state: it is Active once CreateCapacityProvider succeeds, and bad subnets, security groups, operator role or quotas are rejected in that call with InvalidParameterValueException.
  • Instances do not need NAT or VPC endpoints to come up (image pulls, registration, health checks and vended metrics use a Lambda-owned ENI). NAT or VPC endpoints are needed only for CloudWatch Logs / X-Ray delivery and the function code's own outbound calls.
  • Function not scaling → check that a version is published (PublishToLatestPublished: true)
  • Memory errors → LMI minimum is 2048 MB

Workflow

Step 1: Assess the Workload

Gather these signals before recommending:

  1. Traffic pattern: Steady vs bursty? Requests per second?
  2. Current costs: Monthly Lambda spend? Existing Savings Plans?
  3. Runtime: Node.js, Java, .NET, or Python?
  4. Memory/CPU: How much memory? CPU-bound or I/O-bound?
  5. Execution duration: Average and P99?
  6. Concurrency readiness: Thread safety? Shared /tmp paths? Per-invocation DB connections?
  7. VPC: Already in a VPC? Private resource access needed?
  8. GPU: Does the workload need a GPU (CUDA, PyTorch, vLLM, NVENC, OpenGL)? If yes, read gpu-acceleration.md.

Long-running asynchronous/ESM jobs that exceed 30 min are a positive fit — LMI supports a function timeout up to 90 min (5400s) for asynchronous and event-source-mapping invocations (ETL/data processing, media transcoding, ML inference, financial calc, web scraping). Duration is the key differentiator here, not just cost.

When recommending LMI, ALWAYS mention: minimum 3 execution environments for AZ resiliency (cannot go below 3 in production). GPU-accelerated functions default to a minimum of 1 instead (see gpu-acceleration.md).

Step 2: Build the Cost Comparison

REQUIRED: Present a cost comparison before recommending LMI.

Rule of thumb: LMI becomes cost-competitive at 50-100M+ req/month with steady traffic. Use the LMI Pricing Calculator for accurate comparisons.

Step 3: Configure the Deployment
  • Instance families (400+ types, .large and up): C-series (compute), M-series (general), R-series (memory). ARM (Graviton) for best price-performance.
  • When using Graviton instances, MUST set Architectures: [arm64] in the function configuration to match.
  • Memory-to-vCPU ratios (ExecutionEnvironmentMemoryGiBPerVCpu): 2:1 (compute, default), 4:1 (general), 8:1 (memory). Min 2 GB, max 32 GB.
  • Multi-concurrency per-vCPU maximums: Node.js 64, Java 32, .NET 32, Python 16. These are system caps — the actual setting is PerExecutionEnvironmentMaxConcurrency (per execution environment, not per vCPU).
  • For I/O-bound workloads: use the runtime default or higher PerExecutionEnvironmentMaxConcurrency (e.g., 10 for Node.js) since each request uses minimal CPU while waiting on network.
  • For CPU-bound workloads: set PerExecutionEnvironmentMaxConcurrency to 1-2 per vCPU since each request saturates CPU.
  • Scaling: MinExecutionEnvironments (default 3), MaxVCpuCount (optional, default 400 — set explicitly as best practice), TargetResourceUtilization.
  • Function timeout up to 5400s (90 min) — set via the existing Timeout field (CLI update-function-configuration --timeout 5400, SAM/CFN Timeout: 5400, or console). Uses the existing Timeout field — no separate API, property, tag, or code change is required. Applies to asynchronous and ESM invocations only; synchronous invocations can run for up to 30 min (1800s), so set Timeout up to 1800 for a synchronous job that fits; if Timeout is higher, Lambda stops a synchronous invocation after 30 min (GetFunctionConfiguration still reports the configured value). On-Demand functions allow up to 30 min for every invocation type. The Init phase is still capped at 15 min. Durable Functions: each step can run up to 90 min; a multi-step workflow up to 1 year. To invoke a durable function synchronously, through an ESM, or through a function URL, set its durable execution timeout (DurableConfig ExecutionTimeout, separate from the function Timeout) to 1800s (30 min) or less.
Step 4: Migrate the Code

Review code for concurrency safety. LMI runs multiple invocations concurrently per execution environment:

  • Python: Process-based isolation — globals are NOT shared. No thread-safety changes needed. Focus on /tmp conflicts and memory sizing.
  • Node.js: Worker threads — globals shared within a worker. Requires async safety.
  • Java/.NET: OS threads/Tasks — handler shared across threads. Requires full thread safety.
Step 5: Set Up Infrastructure
  1. Create two IAM roles: execution role (for the function) and operator role (for capacity provider EC2 management)
  2. Configure VPC with subnets across 3+ AZs
  3. Create capacity provider with VPC config and scaling limits
  4. Create a new function with the capacity provider attached
  5. Publish a version (triggers instance provisioning)
Step 6: Validate and Cut Over
  1. Deploy to a non-production environment first
  2. Monitor CloudWatch: CPU utilization, memory, concurrency, throttle rate
  3. Gradual traffic shift at the invoking service or routing layer (10% → 50% → 100%)
  4. Compare costs after 1-2 weeks of production data
  5. Decommission the Lambda Event Function once stable

Best Practices

Pricing (always mention when discussing costs)
  • Three components: EC2 instance hours + 15% management fee + $0.20/1M requests
  • Savings Plans: Compute Savings Plans apply to the EC2 portion (up to 60-72% discount)
  • The 15% fee is charged on top of EC2 cost for AWS managing provisioning, patching, scaling, lifecycle
  • GPU-accelerated functions: check AWS Lambda pricing for the GPU management fee and instance prices
Scaling (always mention when discussing scaling or traffic)
  • LMI absorbs a 50% traffic spike immediately and doubles capacity within 5 minutes — if traffic more than doubles faster, requests throttle
  • Lambda Event Functions burst to 3000 instantly — LMI cannot match this
  • Pre-warm with MinExecutionEnvironments before known spikes
  • MaxVCpuCount (default 400) — set explicitly as a cost ceiling
  • Shape: Reduce MinExecutionEnvironments to lower capacity during off-hours (minimum 3 for AZ resiliency on CPU functions; GPU functions default to 1)
Large container images (SOCI lazy loading)
  • For container image functions, the image pull is the largest part of the time between publishing a version or scaling out and the first invocation. Seekable OCI (SOCI) lets Lambda start the execution environment before the whole image is downloaded and fetch files on demand as the function reads them. The benefit is largest for multi-GB images, such as images that package ML frameworks.
  • Enable it by pushing a SOCI index to Amazon ECR next to the image, pointing the function's image URI at the SOCI-indexed tag, and publishing a version. No other function configuration changes. Steps in configuration-guide.md.
  • Import libraries and read files in init code, not in the handler. A file first read in the handler is fetched during that invocation and adds to its duration; Lambda does not download the rest of the image in the background.
  • Recommend testing with and without SOCI to compare startup time and invocation duration for the workload.
Instance Sizing
  • 1 vCPU + 1 GB reserved per instance for OS overhead (not available to your function)
  • Usable capacity = total - overhead
Configuration
  • The default ratio is 2:1 (compute-heavy work); set 4:1 for balanced web APIs and microservices (M-series), and 4:1 or 8:1 for memory-heavy or Python workloads. Start with the runtime default concurrency
  • Use ARM (Graviton) unless x86 dependencies exist
  • Let Lambda choose instance types unless specific hardware needed
  • Set MaxVCpuCount to control cost ceiling
  • Never set MinExecutionEnvironments below 3 for CPU functions (breaks AZ resiliency); GPU-accelerated functions default to 1 (see gpu-acceleration.md)
Migration
  • Start with I/O-heavy functions (benefit most from multi-concurrency)
  • Review code for concurrency safety before attaching to capacity provider
  • Shift traffic gradually at the invoking service or routing layer
  • Include request IDs in all log statements
  • Initialize DB pools and SDK clients outside the handler
Operations
  • Set CloudWatch alarms on throttle rate > 1% and CPU > 80%
  • Plan for 14-day instance rotation (automatic)
  • Never manually terminate LMI EC2 instances (delete the capacity provider instead)
  • Always publish a version — unpublished functions cannot run on LMI
Long-duration invocations (asynchronous/ESM up to 90 min)
  • SQS: the queue visibility timeout MUST be ≥ the function timeout (≥ 5400s for a 90-min function). The ESM validates this on create and update — but once the ESM exists, the SQS visibility timeout and the function timeout can each be changed independently (outside the ESM API), which bypasses the check and can reintroduce a mismatch, causing messages to reappear and duplicate invokes.
  • Kinesis / DynamoDB Streams: enable partial batch failure reporting (ReportBatchItemFailures) and tune the max batching window and parallelization factor — otherwise one failed record retries the whole batch, re-running up to ~80 min of already-completed work.
  • Asynchronous invocations: failed or timed-out invocations follow the retry policy (up to 2 retries by default), then route to the DLQ / on-failure destination.
  • Not all ESM sources qualify: Amazon MQ and Amazon DocumentDB ESM support function timeouts of up to 14 min; other ESM sources (SQS, Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Kafka) and asynchronous invocations get 90 min. Confirm the limit for the source in use in the event source mapping docs.
  • Observability is unchanged: CloudWatch, CloudTrail (one Invoke event on completion/timeout), and X-Ray (single trace) behave identically. Use X-Ray sub-segments to find slow phases near the 90-min limit.
Long-running networking (functions now run for tens of minutes)

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • GitHub aws/agent-toolkit-for-aws/aws-lambda-managed-instances

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229