agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/cloud-security/cloud-logging-baseline/SKILL.md

cloud-logging-baseline

Skill0 starsChanged 11 days agoMITView on GitHub

Define and verify the minimum security logging baseline for AWS, Azure, GCP and major SaaS — what to enable (control plane, data events, identity, network, DNS, Kubernetes), retention, immutability and SIEM forwarding — and find gaps before an incident. Use when onboarding cloud environments, preparing for IR readiness, or after an investigation was blocked by missing logs.

The file

Files
SKILL.md

Cloud Logging Baseline

AWS

LogEnableVerify
CloudTrail org trail, multi-region, log file validationYesaws cloudtrail describe-trails --query 'trailList[].{n:Name,multi:IsMultiRegionTrail,org:IsOrganizationTrail,validation:LogFileValidationEnabled}'
CloudTrail data events (S3 sensitive buckets, Lambda)Selectively (cost)aws cloudtrail get-event-selectors --trail-name T
VPC Flow LogsAll VPCsaws ec2 describe-flow-logs
Route 53 Resolver query logsYesaws route53resolver list-resolver-query-log-configs
GuardDuty (all regions, org)Yesaws guardduty list-detectors per region
EKS control-plane auditYeseks-*
ConfigYesaws configservice describe-configuration-recorder-status

Azure / Entra

Entra ID sign-in (interactive, non-interactive, service principal, managed identity) and audit logs → Log Analytics/Sentinel (portal retention is short); Azure Activity Log via diagnostic settings at subscription/management group; resource diagnostic logs (Key Vault, Storage, SQL, AKS kube-audit, NSG/VNet flow logs); Microsoft Defender XDR streaming; M365 Unified Audit Log (Purview Audit Standard/Premium retention).

az monitor diagnostic-settings subscription list --query "value[].{name:name,ws:workspaceId}"

GCP

Admin Activity (always on), Data Access logs (off by default except BigQuery — enable for sensitive services), System Event, Policy Denied; VPC Flow Logs per subnet; Cloud DNS logging; organization-level aggregated sink to a locked bucket/BigQuery.

gcloud logging sinks list --organization=ORG_ID
gcloud projects get-iam-policy PROJECT --format=json | jq '.auditConfigs'

SaaS

Okta System Log, Google Workspace audit, GitHub audit log streaming, Salesforce Event Monitoring, Slack audit logs (Enterprise) — via API to SIEM.

Retention & integrity

Minimum 1 year (≥ 90 days hot) is common guidance; check regulatory needs (PCI DSS 10.5.1: 12 months, 3 immediately available). Store in a separate log account/subscription/project with restricted delete (S3 Object Lock, immutable blob storage, locked GCS retention policies).

Gap report

Environment | Log source | Required | Enabled | Retention | Forwarded to SIEM | Gap | Owner

Related skills

log-source-onboarding, aws-org-guardrails, cloud-incident-response, hunt-data-readiness

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.