Articles
What I Did When Major Security Incidents Kept Breaking Worldwide
When major security incidents kept erupting worldwide, I shut the servers down first, allowed only my own IP while making changes, then had AI audit the hosts and code in read-only mode and fix issues one by one, reopening only after verification. This post walks through the full process and the six safeguards I added at the end.
· 2 min read
Learning diagrams
en · Wide diagrams scroll horizontally. The text outline contains the same information.
Nine-grid overview
Point at or select any cell around the topic to grow its key points. The text outline below has everything.
- Scenario
- Inputs
- Tools
- Steps
- Patched, verified, then reopened
- Prompts
- Checks
- Risks
- Next steps
Read the full text outline
Patched, verified, then reopened
- Scenario — Major security incidents worldwide
- Couldn't rule out automated scanning
- Scans showed no signs of intrusion
- Inputs — Security intel and existing rules
- Security intel gathered by GrokBots
- Firewall rules: cloud hosts, Cloudflare
- Tools — Several AIs plus protection services
- Codex and Claude, read-only host access
- UFW, WAF and Cloudflare Access
- Steps — Contain, harden, fix
- Shut down first, allow only my own IP
- Fix from the list; two package batches
- Prompts — AI reads only, works from a list
- Check vulnerabilities and risks read-only
- Output a list, then fix item by item
- Checks — Lift limits only after verification
- Projects come back online gradually
- Lift IP limit once features confirmed
- Risks — Updates may break existing features
- Update non-breaking packages first
- Review breaking packages one by one
- Next steps — Scheduled ongoing monitoring
- Each AI gathers security intel regularly
- Proactive notice when events occur
The short version: the scans showed no signs of intrusion. I handled it in three steps:
- Contain immediately: shut the servers down first.
- Harden immediately: UFW + WAF + Cloudflare Access.
- Fix immediately: update packages, adjust firewall rules, adjust CI/CD.
What I Did#
- Shut down first: I couldn't guarantee I wouldn't be caught by automated scanning, so rather than gamble, I shut down first and dealt with it afterward.
- Allowed only my own IP: I went through the firewall rules on the cloud hosts and Cloudflare one by one and adjusted them; during the changes, only my own IP was allowed to connect.
- AI division of labor: GrokBots gathered security intelligence; Codex and Claude took turns entering the hosts in read-only mode to check for vulnerabilities and risks, and then I fixed items one by one from the list.
- Packages updated in two batches: first the updates that don't affect existing features; for packages that would, I reviewed each one before deciding whether to add, remove or modify it.
- Online and local audits in parallel: while scanning online, I ran a deep scan of all project code locally. Besides the core logic, I also inventoried and updated project dependencies and CI.
- Reopened only after verification: only once every item was fixed did I bring each project on the cloud platform back online gradually. After confirming each feature worked, I lifted the IP restriction and reopened the site to the public.
- Scheduled ongoing monitoring: I set up schedules for each AI to collect security intelligence regularly and notify me proactively if anything relevant happens.
Safeguards Added at the End#
- Patched application-layer vulnerabilities
- Upgraded the runtime environment
- Replaced unmaintained components
- Reduced network exposure: confirmed SSH password login is disabled.
- Separated CI privileges: PR checks and deployment run on different runners, and the one running PRs has no sudo.
- Zero trust for the supply chain by default: CI always uses
npm ci --ignore-scripts, and tool versions are pinned.