[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71CA68KBAH4Z1TEXVKRE6VH":3,"skill-same:01M71CA68KBAH4Z1TEXVKRE6VH":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M71CA68KBAH4Z1TEXVKRE6VH","cloud-serverless-harden",null,"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.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud-serverless-harden\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cloud","harden","serverless","cloud serverless harden","scanning","concurrency","lambda","roles","iam","vulnerability","cybersecurity","controls","execution","assessment","event","layers","for","cold","architectures","aws lambda","2026-11-10 10:12:30",false,"---\nname: cloud-serverless-harden\ndescription: \"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.\"\ndomain: cybersecurity\n---\n\n## Cold Start\nInitial function invocation that includes container provisioning, increasing latency and creating a window where cached secrets may not be available.\n\n## Event Injection\nAttack where malicious input is embedded in Lambda event data from API Gateway, S3, SQS, or other event sources to exploit the function.\n\n## Execution Role\nIAM role assumed by Lambda during execution, defining all cloud API permissions the function can use.\n\n## Function URL\nDirect HTTPS endpoint for Lambda functions that can be configured with IAM or no authentication (NONE is insecure).\n\n## Layer\nLambda deployment package containing shared code or dependencies that should be scanned for vulnerabilities independently.\n\n## Reserved Concurrency\nMaximum number of concurrent executions for a function, useful for preventing resource exhaustion attacks.\n\n## Provisioned Concurrency\nPre-initialized function instances that reduce cold start latency and ensure secrets are cached.\n\n## Tools & Systems\n\n- **AWS Lambda Power Tuning**: Open-source tool for optimizing Lambda memory and timeout settings to balance security with performance.\n- **Snyk**: SCA tool scanning Lambda dependencies for known vulnerabilities with automatic fix suggestions.\n- **Semgrep**: SAST tool with serverless-specific rules detecting injection vulnerabilities, hardcoded secrets, and insecure configurations.\n- **GuardDuty Lambda Protection**: AWS service monitoring Lambda network activity for connections to malicious endpoints.\n- **AWS X-Ray**: Distributed tracing service for detecting suspicious external connections and latency anomalies in Lambda invocations.\n\n## Common Scenarios\n\n### Scenario: SQL Injection via API Gateway to Lambda to RDS\n\n**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.\n\n**Approach**:\n1. Audit the Lambda function code for string concatenation in SQL queries.\n2. Replace all string-formatted queries with parameterized queries using the database driver.\n3. Implement input validation using JSON Schema before any database operation.\n4. Add a WAF rule on API Gateway to block common SQL injection patterns.\n5. Deploy Semgrep in the CI\u002FCD pipeline with the `python.django.security.injection.sql` rule set.\n6. Enable GuardDuty Lambda protection to detect anomalous database connection patterns.\n\n**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.\n\n## Output Format\n\n```\nServerless Security Assessment Report\n=======================================\nAccount: 123456789012\nFunctions Assessed: 47\nAssessment Date: 2025-02-23\n\nCRITICAL FINDINGS:\n  [SLS-001] order-processor: SQL injection via string concatenation\n    Language: Python 3.12 | Runtime: Lambda\n    Vulnerable Code: f\"SELECT * FROM orders WHERE id = '{order_id}'\"\n    Remediation: Use parameterized queries with psycopg2\n\n  [SLS-002] payment-handler: Hardcoded Stripe API key in environment variable\n    Key: sk_live_XXXX... (unencrypted)\n    Remediation: Migrate to AWS Secrets Manager with KMS encryption\n\nHIGH FINDINGS:\n  [SLS-003] 12 functions share the same IAM execution role with s3:*\n  [SLS-004] 8 functions have function URLs with AuthType: NONE\n  [SLS-005] 23 functions have dependencies with known HIGH CVEs\n\nDEPENDENCY VULNERABILITIES:\n  axios@0.21.1:         CVE-2023-45857 (HIGH) - 5 functions affected\n  jsonwebtoken@8.5.1:   CVE-2022-23529 (CRITICAL) - 3 functions affected\n  lodash@4.17.15:       CVE-2021-23337 (HIGH) - 11 functions affected\n\nSUMMARY:\n  Critical: 2 | High: 5 | Medium: 12 | Low: 8\n  Functions with Least Privilege: 14\u002F47 (30%)\n  Functions with Secrets Manager: 19\u002F47 (40%)\n  Functions with Input Validation: 22\u002F47 (47%)\n```\n","## Cold Start\nInitial function invocation that includes container provisioning, increasing latency and creating a window where cached secrets may not be available.\n\n## Event Injection\nAttack where malicious input is embedded in Lambda event data from API Gateway, S3, SQS, or other event sources to exploit the function.\n\n## Execution Role\nIAM role assumed by Lambda during execution, defining all cloud API permissions the function can use.\n\n## Function URL\nDirect HTTPS endpoint for Lambda functions that can be configured with IAM or no authentication (NONE is insecure).\n\n## Layer\nLambda deployment package containing shared code or dependencies that should be scanned for vulnerabilities independently.\n\n## Reserved Concurrency\nMaximum number of concurrent executions for a function, useful for preventing resource exhaustion attacks.\n\n## Provisioned Concurrency\nPre-initialized function instances that reduce cold start latency and ensure secrets are cached.\n\n## Tools & Systems\n\n- **AWS Lambda Power Tuning**: Open-source tool for optimizing Lambda memory and timeout settings to balance security with performance.\n- **Snyk**: SCA tool scanning Lambda dependencies for known vulnerabilities with automatic fix suggestions.\n- **Semgrep**: SAST tool with serverless-specific rules detecting injection vulnerabilities, hardcoded secrets, and insecure configurations.\n- **GuardDuty Lambda Protection**: AWS service monitoring Lambda network activity for connections to malicious endpoints.\n- **AWS X-Ray**: Distributed tracing service for detecting suspicious external connections and latency anomalies in Lambda invocations.\n\n## Common Scenarios\n\n### Scenario: SQL Injection via API Gateway to Lambda to RDS\n\n**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.\n\n**Approach**:\n1. Audit the Lambda function code for string concatenation in SQL queries.\n2. Replace all string-formatted queries with parameterized queries using the database driver.\n3. Implement input validation using JSON Schema before any database operation.\n4. Add a WAF rule on API Gateway to block common SQL injection patterns.\n5. Deploy Semgrep in the CI\u002FCD pipeline with the `python.django.security.injection.sql` rule set.\n6. Enable GuardDuty Lambda protection to detect anomalous database connection patterns.\n\n**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.\n\n## Output Format\n\n```\nServerless Security Assessment Report\n=======================================\nAccount: 123456789012\nFunctions Assessed: 47\nAssessment Date: 2025-02-23\n\nCRITICAL FINDINGS:\n  [SLS-001] order-processor: SQL injection via string concatenation\n    Language: Python 3.12 | Runtime: Lambda\n    Vulnerable Code: f\"SELECT * FROM orders WHERE id = '{order_id}'\"\n    Remediation: Use parameterized queries with psycopg2\n\n  [SLS-002] payment-handler: Hardcoded Stripe API key in environment variable\n    Key: sk_live_XXXX... (unencrypted)\n    Remediation: Migrate to AWS Secrets Manager with KMS encryption\n\nHIGH FINDINGS:\n  [SLS-003] 12 functions share the same IAM execution role with s3:*\n  [SLS-004] 8 functions have function URLs with AuthType: NONE\n  [SLS-005] 23 functions have dependencies with known HIGH CVEs\n\nDEPENDENCY VULNERABILITIES:\n  axios@0.21.1:         CVE-2023-45857 (HIGH) - 5 functions affected\n  jsonwebtoken@8.5.1:   CVE-2022-23529 (CRITICAL) - 3 functions affected\n  lodash@4.17.15:       CVE-2021-23337 (HIGH) - 11 functions affected\n\nSUMMARY:\n  Critical: 2 | High: 5 | Medium: 12 | Low: 8\n  Functions with Least Privilege: 14\u002F47 (30%)\n  Functions with Secrets Manager: 19\u002F47 (40%)\n  Functions with Input Validation: 22\u002F47 (47%)\n```\n",{"name":5,"domain":29,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fcloud-serverless-harden","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill cloud-serverless-harden",{"tool":57,"command":58},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill cloud-serverless-harden",{"tool":60,"command":61},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill cloud-serverless-harden","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud-serverless-harden\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"index.json","REFERENCE","参考文档",668,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud-serverless-harden\u002Findex.json",[72,82,106,129,151,173],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":81},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[89,90,91,92,93,94,95,29,96,97,98,99,100,101,102,33,103,104,105],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","activescript","cm","de",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[113,92,114,89,115,116,117,118,119,29,120,121,122,123,124,125,126,127,105,128],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":39},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[136,137,138,139,140,141,142,143,144,145,125,105,146,147,118,148,117,29,149,150],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[158,159,160,90,29,161,104,162,163,164,94,105,165,166,167,168,169,170,171,172],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[180,158,181,90,182,183,95,105,165,184,185,186,118,94,29,161,187,104,188,163],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]