/viperclaw:viper-aws-iam-cloud-auditfrom viperclaw
Audits AWS IAM, STS, S3, KMS, and Lambda configurations for security misconfigurations. Models checks on Prowler, Parliament, and CloudSplaining to detect iam:PassRole escalation, missing STS ExternalId, public S3 policies, and IMDSv2 issues.
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-aws-iam-cloud-audit)prowler-cloud/prowler, duo-labs/parliament, salesforce/cloudsplaining.flowchart LR
Role["IAM Principal / STS AssumeRole"] --> Cond["ExternalId + Scoped iam:PassRole"] --> Net["IMDSv2 (hop=1) + Private Subnets"] --> S3["Account BlockPublicAccess + KMS"]
viperclaw taint . --db .viperclaw/graph.db
"iam:PassRole", "sts:AssumeRole", "Principal": "*", "Action": "*", "NotAction", BlockPublicAcls, HttpTokens.iam:PassRole + ec2:RunInstances/lambda:CreateFunction/glue:CreateDevEndpoint, iam:CreatePolicyVersion, iam:AttachRolePolicy, sts:AssumeRole with wildcard resources). Scope iam:PassRole to specific role ARNs and require iam:PassedToService conditions.ExternalId & Confused Deputy Defense: Every cross-account IAM Role trust policy (AssumeRole) granted to a third party must enforce a Condition checking sts:ExternalId (or aws:SourceArn / aws:SourceAccount for AWS service principals).aws_s3_account_public_access_block (block_public_acls = true, block_public_policy = true, ignore_public_acls = true, restrict_public_buckets = true) and require aws:SecureTransport = true on bucket policies.http_tokens = "required" (IMDSv2) on all EC2 instances and launch templates; on EKS worker nodes, enforce http_put_response_hop_limit = 1 (or block 169.254.169.254 from pods via NetworkPolicy) and use IRSA / EKS Pod Identity.Principal: "*" without strict condition keys.# ❌ VULNERABLE: Cross-account AssumeRole trust policy without ExternalId & wildcard PassRole
statement {
effect = "Allow"
actions = ["iam:PassRole"]
resources = ["*"]
}
# ✅ HARDENED: Scoped PassRole to specific role ARN & service condition
statement {
effect = "Allow"
actions = ["iam:PassRole"]
resources = [aws_iam_role.worker_task.arn]
condition {
test = "StringEquals"
variable = "iam:PassedToService"
values = ["ecs-tasks.amazonaws.com"]
}
}
CIS AWS Benchmark, Prowler, Parliament, CWE-269, CWE-284| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.0–10.0) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | Unauthenticated remote code execution, cross-tenant authentication or isolation gap, or direct theft of funds/keys. |
| HIGH (7.0–8.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | Authenticated privilege escalation, unauthorized sensitive data exposure, or single-request service outage. |
| MEDIUM (4.0–6.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | Scoped information disclosure, non-admin state mutation, or configuration weakness requiring user interaction. |
| LOW (0.1–3.9) | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N | Defense-in-depth hardening gap requiring high precondition complexity and minimal direct impact. |
viperclaw taint . --db .viperclaw/graph.db and viperclaw verify to record the verified state in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas.npx claudepluginhub zahidoverflow/viperclaw --plugin viperclawOther plugins' skills for the same job