ALPS extracts least-privilege policies for 94.8% of serverless functions
ALPS can automatically enforce least-privilege in serverless environments with high coverage and low overhead
Security & privacy arXiv 26 Mar 2026 Method Prototype evidence
Published as “ALPS: Automated Least-Privilege Enforcement for Securing Serverless Functions”
Why it matters
ALPS enables automated, cross-cloud least-privilege enforcement, reducing the risk of privilege-abuse attacks in production serverless deployments.
Summary
ALPS automatically extracts least-privilege permissions from serverless function code, generates vendor-specific IAM policies with a fine-tuned LLM, and enforces them at runtime, blocking privilege-abuse attempts. In experiments on 8,322 real-world functions across AWS, Google Cloud, and Azure, it achieved 94.8% coverage of required permissions and detected 7,891 out of 8,322 abuse attempts, while adding only 3.9 ms to AWS, 5.5 ms to Google Cloud, and 7.2 ms to Azure execution time. The evidence is strong but the paper does not report false-positive rates, and a small number of functions (e.g., 68 on AWS) remained undetected, which slightly tempers the claim.
What they found 3
- High coverage of permission extraction
“our system achieved a coverage of 94.8%, confirming its applicability to real-world workloads.”
- Low runtime overhead
“execution times increasing by an average of 3.9ms on AWS, 5.5ms on Google Cloud, and 7.2ms on Azure”
- Effective detection of privilege abuse
“Detected 2393”
Caveats 3
- Undetected 68
- Undetected 25
- Undetected 24
What’s new here 3
- Serverless-tailored static analysis that extracts fine-grained permission requirements from function code.
- Fine-tuned large language model that automatically inserts permission-verification hooks and generates vendor-specific policies.
- Real-time runtime enforcement that blocks unauthorized SDK calls across multiple cloud providers.