compliance-sweep

Audits AWS resources against a compliance policy and files findings as reviewed change requests.

20.2k|3.4k|Updated Oct 5, 2024
One-click install
npx skills add https://github.com/kortix-ai/suna --skill compliance-sweep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compliance-sweep
Source: https://github.com/kortix-ai/suna/tree/main/packages/starter/templates/marketplace/runtime/skills/compliance-sweep
Command: npx skills add https://github.com/kortix-ai/suna --skill compliance-sweep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloud infrastructure drifts out of compliance over time — buckets become public, resources lose required tags, and IAM roles accumulate overly broad permissions. Manually auditing AWS state against policy is slow and error-prone, and auto-remediation without human review is risky.

Core Features & Use Cases

  • Read-only AWS auditing: Lists S3 buckets and IAM roles, checks bucket exposure, required tags, and IAM scope against a human-authored compliance policy.
  • Audit log cross-referencing: Queries CloudTrail to determine when each violation happened and who caused it, attaching actor and timestamp to every finding.
  • Human-reviewed remediation: Drafts proposed fixes and opens one change request per finding — never applies a fix directly.
  • Use Case: A daily cron fires the sweep; the agent checks all buckets and roles against the policy in .kortix/memory/compliance-policy.md, files findings to the alert channel, and opens change requests like compliance: newly-public bucket acme-uploads for human approval.

Quick Start

Ask the agent to run a compliance check against the current AWS account and file any drift findings with proposed remediation change requests.

Frequently Asked Questions about compliance-sweep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check AWS resources for compliance drift automatically?

Run the compliance sweep, which lists S3 buckets and IAM roles with read-only AWS CLI calls and evaluates each against the policy in .kortix/memory/compliance-policy.md. Every violation is filed to the alert channel with a proposed remediation change request.

How to find who made an S3 bucket public in AWS?

The sweep queries CloudTrail lookup-events for the bucket's own region after detecting a public bucket, then attaches the event time, actor, and source IP to the finding. If no event appears within the retention window, the finding is marked as origin unknown.

Does this skill automatically fix AWS compliance violations?

No. It never applies fixes — every remediation is drafted and opened as a change request via project.cr.open for human review. All AWS calls are strictly read-only list, get, and lookup-events operations.

Can I change the compliance rules the sweep checks against?

Yes. Ask the agent to add or change a rule, and it edits .kortix/memory/compliance-policy.md directly without running a sweep. Default rules cover public buckets, required owner and environment tags, and over-broad IAM roles.

Why does the sweep check buckets and roles only once instead of per region?

S3 buckets and IAM roles are global, account-wide resources, so list-buckets and list-roles return the same set from any region. Looping per region would produce duplicate findings, so each resource is evaluated exactly once per sweep.