/orca-skills:orca-identity-reviewfrom Orca Skills
Analyzes cloud IAM identities for overprivileged access, usage patterns, lateral movement risk, and least-privilege recommendations using CloudTrail data.
Ships in Orca Skills. 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.
Answers the question: "Is this identity overprivileged, and what's the blast radius if it's compromised?"
Given an IAM role, user, or service account, analyzes effective permissions vs actual usage from CloudTrail, identifies overprivileged access, maps lateral movement potential, and generates a least-privilege recommendation.
/orca-identity-review admin-role
/orca-identity-review arn:aws:iam::123456789012:role/bastion-admin-role
Or natural language:
| Input Pattern | Tool | Parameter |
|---|---|---|
ARN format arn:aws:iam::... | get_asset_by_id | asset_id with appropriate model_type |
| Role/user name | get_asset_by_name | asset_name, model_type: "AwsIamRole" or "AwsIamUser" |
| Name (ambiguous) | Try get_asset_by_name with each IAM type, or discovery_search |
If multiple results, show list and ask user to pick.
Extract: ARN, identity type (Role/User/ServiceAccount), account, creation date, tags, attached policies.
Query 1: Effective permissions
get_aws_effective_permissions_policy_on_asset:
asset_arn: "<identity ARN>"
Returns the current effective permissions AND a recommended least-privilege policy.
Query 2: Alerts on this identity
get_asset_related_alerts_summary:
asset_id: <UUID>
Query 3: Alert severity breakdown
get_asset_alerts_count_grouped_by_risk_level:
asset_id: <UUID>
Query 4: What this identity has DONE (CloudTrail)
search_cdr_events:
actors: ["<identity ARN>"]
time_range: "last_30_days"
limit: 100
Query 5: Action summary
get_cdr_events_grouped_by_event_name:
actors: ["<identity ARN>"]
time_range: "last_30_days"
Query 6: Attack paths
get_asset_related_attack_paths_summary:
asset_id: <UUID>
Query 7: Linked entities
get_linked_entities_mapping:
asset_id: <UUID or asset_unique_id>
Query 8: Crown jewel status
get_asset_crown_jewel_info:
group_unique_id: <group_unique_id>
Compare effective permissions vs CDR actual usage:
Used permissions — actions seen in CloudTrail in last 30 days:
Unused permissions — granted but never used:
Dangerous permissions — high-risk regardless of usage:
Permission Pattern Risk
────────────────────────────────────────────────────────
iam:* CRITICAL — full IAM control
sts:AssumeRole (broad) HIGH — lateral movement
s3:* or s3:GetObject on * HIGH — data exfiltration
ec2:RunInstances HIGH — resource hijacking
lambda:InvokeFunction HIGH — code execution
kms:Decrypt on * HIGH — secret access
organizations:* CRITICAL — org-level control
iam:CreateUser HIGH — persistence
iam:AttachUserPolicy HIGH — privilege escalation
iam:PassRole HIGH — privilege escalation
Overprivilege classification:
IF dangerous_unused_permissions > 5 OR has_admin_star THEN
"SEVERE" — identity has admin-level access it doesn't use
ELSE IF unused_permissions > 50% of total THEN
"HIGH" — more than half of permissions are unused
ELSE IF unused_permissions > 20% of total THEN
"MODERATE" — some excess permissions
ELSE
"MINIMAL" — well-scoped identity
Analyze what this identity can REACH:
Role assumption — can it sts:AssumeRole? Which roles?
Resource access — what services/resources can it touch?
Attack path analysis — is this identity in any kill chains?
CDR patterns — what has it actually done?
Build a specific least-privilege recommendation:
s3:* when only s3:GetObject is used)get_aws_effective_permissions_policy_on_assetCRITICAL: Never leave the user with just data. After EVERY output layer, suggest the next action and offer to generate remediation code.
After the dashboard and after every drill-down section:
When the user selects a format:
remediate-<identity-name>.<ext> (e.g., .tf, .yml, .sh)Format mapping:
| User says | Extension | Template |
|---|---|---|
| Terraform | .tf | HCL with aws_iam_policy resource |
| CloudFormation | .cfn.yaml | YAML template with IAM resources |
| Ansible | .yml | Playbook with iam tasks |
| CLI | .sh | AWS CLI commands for policy updates |
| Instructions | inline | Step-by-step console walkthrough |
| Pulumi | .ts | TypeScript Pulumi IAM program |
| ARM/Bicep | .bicep | Bicep template for Azure IAM |
═══════════════════════════════════════════════════════════════════
IDENTITY REVIEW — <identity name>
<identity type> | <account> | <ARN>
═══════════════════════════════════════════════════════════════════
VERDICT: <OVERPRIVILEGED / RIGHT-SIZED / MINIMAL>
┌─────────────────────────────────────────────────────────────────┐
│ PERMISSIONS <N> effective actions across <M> services │
│ OVERPRIVILEGE <SEVERE / HIGH / MODERATE / MINIMAL> │
│ USED (30d) <N> actions actually used │
│ UNUSED <N> actions never used — removal candidates │
│ DANGEROUS <N> high-risk permissions │
│ BLAST RADIUS <M> services, <P> resources reachable │
│ LATERAL MOVE <N> roles assumable, <M> accounts reachable │
│ ATTACK PATHS <N> kill chains through this identity │
│ ALERTS <N> open (<X> critical, <Y> high) │
│ CDR ACTIVITY <N> events in 30d, <M> unique actions │
│ CROWN JEWEL YES/NO (score: <N>) │
└─────────────────────────────────────────────────────────────────┘
PERMISSION SUMMARY:
Total: <N> effective actions across <M> services
Used (30d): <N> actions — KEEP these
Unused: <N> actions — candidates for removal
Dangerous: <list of high-risk permissions>
TOP RISK:
<1-2 sentence summary of the biggest risk with this identity>
RECOMMENDED ACTION:
<Based on verdict — e.g., "Remove N unused dangerous permissions
to reduce blast radius by X%. I can generate the updated policy.">
What format? terraform | cloudformation | ansible | cli |
instructions | pulumi | arm/bicep
═══════════════════════════════════════════════════════════════════
Or drill down: permissions | usage | lateral | attack paths |
alerts | activity | recommend | full
═══════════════════════════════════════════════════════════════════
───────────────────────────────────────────────────────────────────
PERMISSIONS — <identity name>
───────────────────────────────────────────────────────────────────
BY SERVICE:
<service> (<N> actions, <M> used):
✓ <used-action> (last used: <date>)
✗ <unused-action> REMOVE — never used in 30d
⚠ <dangerous-action> REVIEW — high risk
<service> (<N> actions, <M> used):
...
SUMMARY:
Used: <N> (keep)
Unused: <N> (remove)
Dangerous: <N> (review urgently)
READY TO FIX:
I can generate an updated policy removing all <N> unused
permissions. Choose format: terraform | cloudformation |
ansible | cli | instructions | pulumi | arm/bicep
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
USAGE — <identity name> (last 30 days)
───────────────────────────────────────────────────────────────────
Total events: <N> | Unique actions: <M>
Source IPs: <list with classification>
User-agents: <list with classification>
TOP ACTIONS BY FREQUENCY:
<action> <count> <service> <pattern>
...
TIME PATTERN:
<business hours / 24x7 / irregular>
Peak activity: <time range>
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
LATERAL MOVEMENT — <identity name>
───────────────────────────────────────────────────────────────────
ROLE ASSUMPTIONS:
Can assume: <N> roles (from permissions)
Has assumed: <N> roles (from CDR)
Cross-account: <N> accounts reachable
<role ARN> — <last assumed date> — <account>
...
SERVICE REACH:
<N> AWS services accessible
Data services: <S3, RDS, DynamoDB, SecretsManager, ...>
ATTACK PATHS:
<N> kill chains pass through this identity
[1] <story> — role: <entry/pivot/target>
...
REDUCE LATERAL MOVEMENT:
The fastest way to limit blast radius is to restrict
AssumeRole permissions. Want me to generate the fix?
Choose format: terraform | cloudformation | ansible | cli |
instructions | pulumi | arm/bicep
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
RECOMMENDATION — <identity name>
───────────────────────────────────────────────────────────────────
PERMISSIONS TO REMOVE (<N>):
<action> — unused, not in recommended policy
...
PERMISSIONS TO KEEP (<N>):
<action> — used <X> times in last 30 days
...
PERMISSIONS TO SCOPE DOWN:
<action> on * → scope to specific resources
...
RECOMMENDED POLICY:
(from get_aws_effective_permissions_policy_on_asset)
<JSON policy or summary>
ESTIMATED RISK REDUCTION:
Current: <N> permissions → Recommended: <M> permissions
Reduction: <X>% fewer permissions
Dangerous removed: <N>
SAFE DEPLOYMENT:
[ ] Apply in audit mode first (CloudTrail monitoring)
[ ] Test with specific workloads before enforcing
[ ] Monitor for AccessDenied errors after applying
[ ] Roll back if critical service fails
GENERATE THE FIX:
I'll create the implementation code for you right now.
Choose format: terraform | cloudformation | ansible | cli |
instructions | pulumi | arm/bicep
After applying, I'll help you verify and move to the next
identity that needs attention.
───────────────────────────────────────────────────────────────────
Show all sections in order.
⚠️ No IAM identity found matching "<input>"
Try:
• Use full ARN: arn:aws:iam::<account>:role/<name>
• Check spelling
• Specify type: "review IAM user admin" or "review role deploy-role"
⚠️ Permission analysis is currently optimized for AWS IAM.
For GCP/Azure identities:
• CDR activity analysis is available
• Alert and attack path analysis is available
• Effective permissions comparison is NOT available
(get_aws_effective_permissions_policy_on_asset is AWS-only)
CDR: No CloudTrail events for this identity in 30 days.
This means either:
• Identity is genuinely unused (consider deleting)
• CloudTrail logging is not enabled for this account
• CDR retention has expired
Flag in the output:
NOTE: This is a SERVICE ROLE (automation), not a human user.
Assumed by: <what assumes it — EC2, Lambda, ECS, etc.>
Review with service workload requirements in mind.
| Tool | Purpose | Parameter |
|---|---|---|
get_asset_by_name | Find identity by name | asset_name, model_type |
get_asset_by_id | Full identity details | asset_id, model_type |
get_aws_effective_permissions_policy_on_asset | Current vs recommended permissions | asset_arn (string, NOT array) |
get_asset_related_alerts_summary | All alerts | asset_id (UUID) |
get_asset_alerts_count_grouped_by_risk_level | Alert counts | asset_id (UUID) |
search_cdr_events | What identity has done | actors (array), time_range, limit |
get_cdr_events_grouped_by_event_name | Action summary | actors (array), time_range |
get_asset_related_attack_paths_summary | Attack paths | asset_id (UUID) |
get_linked_entities_mapping | Connected resources | asset_id |
get_asset_crown_jewel_info | Crown jewel status | group_unique_id |
get_aws_effective_permissions_policy_on_asset takes asset_arn as a string (NOT array)actors must be an array: ["arn:aws:iam::123:role/name"]time_range is an enum: "last_24_hours", "last_3_days", "last_7_days", "last_30_days"get_asset_by_name, try model_type: "AwsIamRole" first, then "AwsIamUser" if no resultsiam:*)./orca-asset-profile for full asset context, /orca-investigate for deep CDR analysis.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orcasecurity/orca-skills --plugin orca-skills22 skills in this plugin
/orca-account-healthCloud account coverage and sync-health audit — lists every connected cloud account, sync status, scanner deployment, integration health, and flags blind spots before any audit, investigation, or security review. Use when user asks about coverage, account health, sync status, scanner deployment, "are we monitoring X", or "do we have full coverage" (e.g., "account health", "are all accounts connected", "is everything synced", "coverage audit")./orca-admin-access-groupingAdmin access grouping - fetches Orca's pre-computed admin clustering (IAM Policy Optimizer) for AWS, Azure, and GCP, groups every admin identity into a small number of shared least-privilege policies that replace blanket AdministratorAccess / Owner, and drives the swap through a staged, confirmation-gated apply. Use when the user wants to group or tier their admins, cut down how many people hold full admin, replace AdministratorAccess with role-based policies, or see how few policies their admin population actually needs. Scoped to grouping the admin population org-wide into shared policies - it takes no account, business unit, or tag as scope. Right-sizing individual identities within an account, business unit, or tag belongs to orca-overprivileged-identities-rightsizing; a single named identity's permission review belongs to orca-identity-review./orca-alert-triageAnalyzes Orca Security alerts with timeline visualization, risk assessment, and progressive disclosure. Use when user asks to triage, analyze, explain, summarize, investigate, or check an Orca alert by ID (e.g., "triage orca-3636513", "what is alert orca-3548863", "check orca-3636513")./orca-asset-profileFull 360° security profile of any cloud asset — alerts, attack paths, compliance, permissions, exposure, sensitive data, and CDR activity in one view. Use when user asks about an asset's security posture or profile (e.g., "asset profile for web-bastion-host", "tell me about WEB-PRD", "security posture of", "show me everything about")./orca-cloud-cost-optimizerCloud cost optimization analysis using Orca Security asset data. Discovers all cloud assets (AWS, GCP, Azure) through Orca MCP tools, compares current configurations against cheaper alternatives using live public pricing, and produces a prioritized cost reduction report with exact asset evidence. Use when the user asks about cloud cost optimization, reducing cloud spend, rightsizing instances, saving money on cloud infrastructure, cost reduction opportunities, unused resources, oversized VMs, reserved instances, storage tiering, or wants to know what changes would lower their cloud bill./orca-code-scannerScan the code you just changed with the Orca CLI (secrets, vulnerable or malicious dependencies, IaC, Dockerfiles, images, SAST), then triage and fix real findings. Run once as the closing step of a coding task, or when asked to scan changes. Not for live cloud posture. Also use when asked "is this secure" or to scan an image before pushing, or when secrets, CVEs, malicious packages, IaC misconfig, or licenses come up while coding. Not for non-security code review or Orca platform/CLI troubleshooting. Runs without being asked; skip only if the developer says not to scan.Other plugins' skills for the same job