Works with the AI Agents you already use
Serverless Framework Config Security Audit
by CashonlyTian
This skill scans your Serverless Framework configuration files for security misconfigurations, credential leaks, and excessive permissions before you run a deployment.
$7
Serverless Framework Config Security Audit
Example session with this skill installed
Audit the Serverless project in ./backend-api for project "PaymentGateway". Use hex color #2ECC71 and set the brand to "SecurityOps".
- Read your context and instructions
- Compiled the serverless framework config
- Generated the document
I have completed the security audit for the
PaymentGateway project located in ./backend-api. The scan analyzed your serverless.yml across 10 critical security categories.
Audit Results:
- Score: 65/100
- Grade: D
- Risk Level: HIGH
- Findings: 4 issues detected (2 Critical, 2 Moderate)
Security Audit Report
| Check | Score | Status | Finding |
|---|---|---|---|
| IAM Wildcards | 0/10 | FAIL | provider.iam.role.statements contains Resource: "*" |
| Env Secrets | 0/10 | FAIL | Literal STRIPE_KEY found in provider.environment (masked) |
| HTTP Authorizer | 10/10 | PASS | All endpoints use Cognito/Custom authorizers |
| Plugins Trust | 10/10 | PASS | All plugins verified from registry |
| S3 Public Access | 0/10 | FAIL | UploadBucket missing PublicAccessBlockConfiguration |
| Layers Trust | 10/10 | PASS | No untrusted layer ARNs detected |
| Package Leak | 0/10 | FAIL | .env and *.pem not excluded in package.patterns |
| Logs & Tracing | 10/10 | PASS | Retention set to 14 days; Tracing enabled |
| API Keys | 10/10 | PASS | No literal API keys in config |
| Runtime Hygiene | 5/10 | WARN | Service name set, but using EOL nodejs12.x |
Top Prioritized Fixes
- Critical: Remove
Resource: "*"from your IAM statements. Grant access only to specific ARNs. - Critical: Move the literal value for
STRIPE_KEYto AWS SSM or Secrets Manager and use${ssm:...}references.
High: Update package.patterns to explicitly exclude .env, .git, and any .pem files to prevent credential shipping.
Files Generated:
- Score Card:
scan-2023-10-27.png - Detailed Report:
scan-report.md
Next steps
- Review the
scan-report.mdfile for the exact line numbers of the findings. - Apply the Top 3 fixes listed above to your
serverless.yml. - Run the audit again to verify the new security score.
scan-2023-10-27.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Deploying a serverless.yml without an audit is a liability. This skill scans your Serverless Framework configuration files for security misconfigurations, credential leaks, and excessive permissions before you run a deployment. It prevents common infrastructure-as-code errors that lead to public data exposure or compromised AWS accounts.
What it does
- IAM Wildcard Detection flags overly permissive
Action: "*"orResource: "*"statements in provider and function roles. - Credential Leak Prevention identifies literal secrets in environment variables or custom variables and masks them in reports.
- Endpoint Security Audit finds public
httporhttpApievents lacking mandatory authorizers. - Resource Lockdown checks S3 buckets for missing
PublicAccessBlockconfigurations or open bucket policies. - Artifact Inspection scans
package.patternsto ensure.env,.pem, and credential files are not shipped in the deploy zip. - Runtime Hygiene alerts you to end-of-life runtimes and missing log retention or tracing settings.
How it works
- Provide the local path to your Serverless project directory.
- The skill runs a local Python-based scan of your
serverless.ymland related configuration files. - It generates a score (0-100), a risk grade, and a prioritized fix report.
- Review the generated PNG score-card and the detailed Markdown findings.
Frameworks & tools
Specifically designed for Serverless Framework projects using the AWS provider. It analyzes serverless.yml structure, including provider settings, function definitions, and custom resources.
Why this beats prompting it yourself
Manual prompts often miss nested IAM statements or fail to cross-reference package.patterns with sensitive local files. This skill uses a structured 10-point scoring system that ensures no category, from runtime EOL to S3 public access, is overlooked.
Use cases
- Auditing a
serverless.ymlinherited from a previous developer or tutorial. - Pre-deployment check to ensure no plain-text API keys are baked into the config.
- Verifying least-privilege IAM roles before a production release.
- Generating a security compliance score-card for client handovers.
Known limitations
Scans local configuration files only and does not connect to live AWS accounts or audit existing infrastructure. Does not perform CVE dependency scanning for npm or pip packages.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Scans local serverless.yml files only. Does not check live AWS resources or perform package vulnerability (CVE) scanning. Skips files over 2MB, node_modules, and .git directories.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Python 3Pillow