aws-iam-policy-analysis
Audited by Socket on Sep 23, 2026
3 alerts found:
Securityx2AnomalySUSPICIOUS/HIGH-RISK skill. Its stated purpose is policy analysis, but the associated content goes beyond review into offensive cloud exploitation and explicitly sends AWS-delivered data to webhook.site, a known interception endpoint. There is no evidence of hidden malware or a malicious installer, but the data-flow pattern and exploit-oriented guidance make this inappropriate for a normal analysis-only skill and dangerous for an AI agent.
代码和说明具有明显的双重用途:可用于授权 AWS/CTF 测试,也提供了账户枚举、权限滥用和路径穿越的具体操作方法。其主要安全风险来自创建长期 IAM 凭据、授予 sts:AssumeRole Resource:*、对目标 Bucket 进行侧信道枚举,以及未安全处理路径输入。未发现明确的恶意软件、数据外传、反向 shell 或隐藏持久化行为;作为公共软件包内容时,应限制示例仅在授权环境运行,并避免自动创建 IAM 身份或输出凭据。
该内容是面向 AWS 配置审计和利用的双用途安全材料,包含可直接用于 Lambda 未授权调用、SNS 消息拦截和 API Gateway 请求验证绕过的示例。它本身不是恶意软件,也未包含自动执行、凭据窃取或持久化代码;但示例中的外部 webhook 会导致 SNS 消息泄露,且相关命令可对配置错误的 AWS 环境造成实际影响。应限制 Lambda Principal、严格约束 sns:Endpoint、在 Lambda 内执行独立输入校验,并确保 API Gateway 与后端验证逻辑一致。