dcx7c5/ai-marketplace/cloud-serverless-harden
Claude Code and agent skill by dcx7c5/ai-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive security hardening and assessment guide for AWS Lambda and serverless architectures, covering cold starts, event injection, IAM execution roles, function URLs, layers, concurrency controls, and vulnerability scanning.
Install
npx vskill@latest install dcx7c5/ai-marketplace/cloud-serverless-hardenSKILL.md
The same SKILL.md was published earlier as dcx7c5/ai-marketplace/cloud-serverless-harden.
Cold Start
Initial function invocation that includes container provisioning, increasing latency and creating a window where cached secrets may not be available.
Event Injection
Attack where malicious input is embedded in Lambda event data from API Gateway, S3, SQS, or other event sources to exploit the function.
Execution Role
IAM role assumed by Lambda during execution, defining all cloud API permissions the function can use.
Function URL
Direct HTTPS endpoint for Lambda functions that can be configured with IAM or no authentication (NONE is insecure).
Layer
Lambda deployment package containing shared code or dependencies that should be scanned for vulnerabilities independently.
Reserved Concurrency
Maximum number of concurrent executions for a function, useful for preventing resource exhaustion attacks.
Provisioned Concurrency
Pre-initialized function instances that reduce cold start latency and ensure secrets are cached.
Tools & Systems
- AWS Lambda Power Tuning: Open-source tool for optimizing Lambda memory and timeout settings to balance security with performance.
- Snyk: SCA tool scanning Lambda dependencies for known vulnerabilities with automatic fix suggestions.
- Semgrep: SAST tool with serverless-specific rules detecting injection vulnerabilities, hardcoded secrets, and insecure configurations.
- GuardDuty Lambda Protection: AWS service monitoring Lambda network activity for connections to malicious endpoints.
- AWS X-Ray: Distributed tracing service for detecting suspicious external connections and latency anomalies in Lambda invocations.
Common Scenarios
Scenario: SQL Injection via API Gateway to Lambda to RDS
Context: A Lambda function receives user input from API Gateway and constructs SQL queries by string concatenation against an RDS PostgreSQL database. An attacker injects SQL payloads through the API.
Approach:
- Audit the Lambda function code for string concatenation in SQL queries.
- Replace all string-formatted queries with parameterized queries using the database driver.
- Implement input validation using JSON Schema before any database operation.
- Add a WAF rule on API Gateway to block common SQL injection patterns.
- Deploy Semgrep in the CI/CD pipeline with the
python.django.security.injection.sqlrule set. - Enable GuardDuty Lambda protection to detect anomalous database connection patterns.
Pitfalls: Relying solely on WAF rules without fixing the underlying code vulnerability allows attackers to bypass with encoding tricks. Using ORM methods incorrectly (raw queries) still allows injection.
Output Format
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloud-serverless-harden/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dcx7c5/ai-marketplace/cloud-serverless-harden)