The flow
Starts it 1Model 1Logic 21Service 16
The steps in the order they run, from what starts it.
- 1IMAP Trigger: New ReplyEmail Read ImapService
- 2Schedule: Every 15 MinSchedule triggerStarts it
- 3Extract Case ID & DecisionCodeLogic
- 4Config: Detection SettingsSetLogic
- 5Case ID Found & Approved?IfLogic
- 6Get VPS MetricsHostinger ApiService
- 7Config (Kill Listener)SetLogic
- 8No Action (Not Approved)No OpLogic
- 9Analyze MetricsCodeLogic
- 10SSH: Read Case logSshService
- 11CPU Spike?IfLogic
- 12Parse CaseCodeLogic
- 13Get CPU Process ListSshService
- 14No Action: Below ThresholdNo OpLogic
- 15Found & Pending?IfLogic
- 16Format Process ListCodeLogic
- 17Create SnapshotHostinger ApiService
- 18Email: Case Not FoundEmail SendService
- 19Analyze CPU Spike with AIAnthropicModel
- 20Wait (snapshot buffer)WaitLogic
- 21Parse AI AnalysisCodeLogic
- 22Build Kill CommandCodeLogic
- 23Traffic-Driven?IfLogic
- 24SSH: Kill flagged processesSshService
- 25List FirewallsHostinger ApiService
- 26Build Log EntryCodeLogic
- 27Build Kill Log EntryCodeLogic
- 28Find Lockdown FirewallCodeLogic
- 29Log CPU useSshService
- 30SSH: Log case (killed)SshService
- 31Lockdown Firewall Exists?IfLogic
- 32Alert: Non-Traffic CPU SpikeEmail SendService
- 33Email: Killed ConfirmationEmail SendService
- 34Activate Lockdown FirewallHostinger ApiService
- 35Create Lockdown FirewallHostinger ApiService
- 36Alert: Lockdown ActivatedEmail SendService
- 37Split Allowed PortsCodeLogic
- 38Create Firewall RuleHostinger ApiService
- 39Finalize Lockdown FirewallCodeLogic