Automation library ยท Chat assistants

Automated AWS IAM key compromise response with Slack

Started by someone submitting a form, and works across Slack. It hands the judgement calls to Claude. 30 steps, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude

30 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 2Model 2Logic 14Service 12

The steps in the order they run, from what starts it.

  1. 1๐Ÿง  Claude AI EngineLm Chat AnthropicModel
  2. 2๐Ÿ” Manual Key Lookup TriggerManual triggerStarts it
  3. 3๐Ÿ“ Secure Form: Key Compromise InputForm triggerStarts it
  4. 4๐Ÿค– AI Security AnalysisAgentModel
  5. 5๐Ÿ” AWS IAM ServiceAws IamService
  6. 6๐Ÿ”ง Process Form SubmissionSetLogic
  7. 7๐Ÿ’ฌ Notify Security TeamSlackService
  8. 8๐Ÿ”‘ Fetch User Access KeysHttp RequestService
  9. 9๐Ÿ”” Request Human ApprovalSlackService
  10. 10๐Ÿ“Š Parse Access Key ResponseCodeLogic
  11. 11โœ… Approved Compromise DataSetLogic
  12. 12โšก No Operation, do nothingNo OpLogic
  13. 13๐Ÿ›ก๏ธ Generate Invalidation PolicyHttp RequestService
  14. 14๐Ÿšซ Deactivate Compromised KeyHttp RequestService
  15. 15๐Ÿ”€ Merge Response DataMergeLogic
  16. 16๐Ÿ“œ Audit Inline PoliciesHttp RequestService
  17. 17๐Ÿ” Audit Attached PoliciesHttp RequestService
  18. 18๐Ÿ”— Apply Security PolicyHttp RequestService
  19. 19๐Ÿ“ฆ Aggregate Final ResultsAggregateLogic
  20. 20๐Ÿ“ค Extract Inline Policy NamesSplit OutLogic
  21. 21๐Ÿ“ค Extract Attached Policy ListSplit OutLogic
  22. 22๐Ÿ”„ Batch Process Inline PoliciesSplit In BatchesLogic
  23. 23๐Ÿ”„ Batch Process Attached PoliciesSplit In BatchesLogic
  24. 24๐Ÿ“œ Retrieve Inline Policy DetailsHttp RequestService
  25. 25๐Ÿ“‹ Fetch Policy MetadataHttp RequestService
  26. 26๐Ÿ”“ Parse Inline Policy JSONCodeLogic
  27. 27๐Ÿ“„ Retrieve Policy DocumentHttp RequestService
  28. 28โšก Inline Policy RouterNo OpLogic
  29. 29๐Ÿ”“ Parse Attached Policy JSONCodeLogic
  30. 30โšก Attached Policy RouterNo OpLogic

How it's built

Starts on
Someone submitting a form
Steps
30, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Slack
Model
Claude

Questions

What does it need to run?

An n8n account, plus your own Slack account, and a key for Claude. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 30 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 30 steps before you point it at anything that matters.