Command Palette

Search for a command to run...

Назад к скиллам
скилл № 12525

aws-cloudtrail-investigation

L2 AWS CloudTrail event hunting + IAM credential abuse investigation. STS AssumeRole chain traversal, IMDSv1/v2 access pattern, GuardDuty correlation, Athena…

БесплатноБез исполняемых скриптов
VigilOSSот VigilOSS★ 35 звёзд на GitHub

Установить aws-cloudtrail-investigation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

AWS CloudTrail Investigation (L2)

L2 platform investigator for AWS dispatches. Pairs with athena-log-investigation when the look-back exceeds the 90-day cloudtrail lookup-events ceiling. Federated compromise (SAML, IAM Identity Center) hands off to m365-signin-investigation or okta-investigation rather than resolving IdP state from CloudTrail.

When to Activate

  • L1 alert-triage dispatches platform=aws with category iam-anomaly, credential-abuse, s3-exfil, guardduty-finding, root-use, imds-abuse, secrets-access, or role-trust-mod.
  • A GuardDuty finding lands in scope.json:alert_metadata (e.g. UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.InsideAWS, Recon:IAMUser/UserPermissions, Stealth:IAMUser/CloudTrailLoggingDisabled) and needs CloudTrail correlation.
  • m365-signin-investigation confirmed a federated SAML compromise that pivoted via AssumeRoleWithSAML; the AWS blast radius needs scoping.
  • okta-investigation confirmed Okta compromise → AWS via SAML.
  • alert-fp-verification routed a Check 4 reproduction needing cross-source CloudTrail lookup against a non-AWS-feed alert (e.g., a CASB alert on sts:AssumeRoleWithWebIdentity).

Operating Rules

Apply before any command runs.

  • agent/rules/triage.md — disposition vocabulary (rule 3), symmetric evidence bar (rule 4), severity ↔ MITRE (rules 2, 16), look-back (rule 6), UTC (rule 7), tenant-ref first (rule 12), confidence (rule 9).
  • agent/shared-constraints-blue.md — tenant-not-host scope, read-only default, artifact chain of custody, handoff schema, resume-brief hydration, host-exec audit envelope.
  • agent/rules/ir-evidence.md — attribution gates, multi-signal corroboration, source-file citation conventions.
  • Tenant ref(s) in scope.json:tenant_reference_paths[] — AWS known-benign register (expected_role_assumers, cloudformation_stack_roles, ecs_task_role_baseline, imdsv1_legacy_hosts, external_account_trusted), IAM identities, break-glass roster, change-ticket index, methodology overrides.

Missing tenant ref for the target aws_account_id → halt and return a blocked handoff naming the path. Improvising AWS calls without it turns trusted external accounts, expected role assumers, and IMDSv1 legacy-host exemptions into findings.

Tools

Task Tool Why
Identity context aws sts get-caller-identity, aws iam list-access-keys --user-name <u>, aws iam get-access-key-last-used --access-key-id <k>, aws iam get-account-summary, aws iam get-user --user-name <u> Resolve the alert's principal to a concrete identity; verify key age and last-use region before treating the key as live or stale
Direct event lookup (≤90 days) aws cloudtrail lookup-events --lookup-attributes AttributeKey=Username,AttributeValue=<actor> (also AttributeKey=AccessKeyId, EventName, ResourceName, ResourceType) Fast for narrow actor/event slices; bounded to 90 days of management events, severe per-region rate cap — not a bulk tool
Bulk Athena query aws athena start-query-execution against partitioned cloudtrail_logs table; status via aws athena get-query-execution, results via aws athena get-query-results Cross-link agent/skills/athena-log-investigation/SKILL.md. Required whenever the time window exceeds the lookup-events 90-day ceiling, when the alert needs grouping over millions of events, or when the L1 dispatch flagged a 30–60d look-back
GuardDuty correlation aws guardduty list-detectors, aws guardduty finding list --detector-id <id> --finding-criteria <json>, aws guardduty get-findings --detector-id <id> --finding-ids <ids> Pull every GuardDuty finding tied to the alerted principal and the time window; severity / confidence fields feed Check 2 corroboration
Detective entity profile (where licensed) aws detective list-graphs, then aws detective list-members --graph-arn <arn> and the graph-scoped entity-profile APIs Pre-baked timeline view of the principal across CloudTrail + VPC Flow + GuardDuty; only available where the customer has paid for Detective and the engagement scope includes the graph account
Auth-message decode aws sts decode-authorization-message --encoded-message <m> Decodes the encoded AccessDenied payload that surfaces in policy-simulator runs and some SDK exception traces; produces the exact evaluated context that explains why a call was allowed or denied
VPC Flow Logs Athena against vpc_flow_logs (cross-link agent/skills/athena-log-investigation/SKILL.md) Confirms egress/ingress for compromised instances when CloudTrail data events are off; load-bearing on Step 6
S3 access logs Athena against s3_access_logs (object-level) when S3 data events are not on in CloudTrail Object-level GET / PUT / DELETE attribution for the bucket(s) the alert touches
IAM policy evaluation `aws iam simulate-principal-policy --policy-source-a
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл aws-cloudtrail-investigation?

L2 AWS CloudTrail event hunting + IAM credential abuse investigation. STS AssumeRole chain traversal, IMDSv1/v2 access pattern, GuardDuty correlation, Athena query templates against CloudTrail-in-S3, S3 + Lambda + ECS task-role abuse.

Как установить скилл aws-cloudtrail-investigation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aws-cloudtrail-investigation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aws-cloudtrail-investigation с