cloud-armor-crs-rule-upgrader
Skill by google
Upgrades Google Cloud Armor WAF security policies from OWASP CRS 3.0 or 3.3 to CRS 4.22. It audits rule risk, remaps signature IDs, and supports in-place or preview-mode rollouts. Built for Network Security Agents and Google Cloud practitioners.
Install cloud-armor-crs-rule-upgrader
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/cloud-armor-crs-rule-upgrader ~/.claude/skills/cloud-armor-crs-rule-upgraderRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install cloud-armor-crs-rule-upgrader in Claude Code
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/cloud-armor-crs-rule-upgrader ~/.gemini/antigravity-cli/skills/cloud-armor-crs-rule-upgraderAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cloud-armor-crs-rule-upgrader in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill upgrades Google Cloud Armor WAF rules from OWASP Core Rule Set 3.0 or 3.3 to CRS 4.22. It translates evaluatePreconfiguredExpr calls to native evaluatePreconfiguredWaf parameters, remaps signature IDs to v042200, drops retired IDs, and updates preconfiguredWafConfig exclusions. Pass-through rules such as IP allowlists, rate limiting and default rules are carried over unchanged.
It rates each in-scope rule as High, Medium or Low risk. Flagged items include Method Enforcement blocking PUT, PATCH and DELETE requests and expanded signature coverage. It supports in-place upgrades and preview-mode deployments, with a 200-rule quota check and a bundled Python CLI. It is for Network Security Agents and Google Cloud practitioners who audit or move policies to CRS 4.22.
Written from the project's SKILL.md and checked against it.
What it can do
- Ruleset upgrade to CRS 4.22Translates legacy 3.0 and 3.3 WAF rules, CEL expressions and signature IDs to CRS 4.22.
- Exclusion preservationKeeps signature opt-in and opt-out lists and updates preconfiguredWafConfig fine-tuning exclusions.
- Retired signature handlingDrops retired CRS 3.0 and 3.3 signature IDs and reports the affected rules.
- Operational risk classificationRates each in-scope rule as High Breaking Change, Medium Attention Required or Low Clean Upgrade.
- Method Enforcement checkFlags PUT, PATCH and DELETE blocking that can break REST API traffic after cutover.
- Preview mode deploymentDeploys upgraded rules at a lower priority number with preview enabled, so traffic is logged, not blocked.
- In-place upgradeUpdates existing rule expressions and WAF config at their current priority numbers.
- Quota guardrailCalculates the projected rule count and warns when it would exceed the 200-rule limit.
- Policy audit guidanceGives the gcloud describe command and checks for legacy rulesets and signature coverage expansions.
- Bundled Python CLIRuns scripts/upgrade_policy.py to parse policy JSON and output a report or gcloud commands.
What you need
- Google Cloud SDK (gcloud)
- Google Cloud project with active billing
- Compute Engine and Cloud Logging APIs enabled
- roles/compute.securityAdmin or roles/compute.securityViewer
- Python 3 for the bundled CLI
Try asking
- Audit my ecommerce-waf Cloud Armor policy for CRS 3.3 rules
- Upgrade my Cloud Armor WAF rules to CRS 4.22 in preview mode
- Check if Method Enforcement will block PUT and DELETE requests
Good to know
- Only for WAF rules. Not for IP rate-limiting, geo-blocking or reCAPTCHA rules.
- Not for AWS or Azure WAF migrations.
- Cloud Armor allows a maximum of 200 rules per security policy.
- Method Enforcement in CRS 4.22 blocks PUT, PATCH and DELETE unless exempted.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/cloud-armor-crs-rule-upgrader/SKILL.md, skills/cloud/cloud-armor-crs-rule-upgrader/scripts/upgrade_policy.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md20 KB -
references/attribution.md2 KB -
references/contributing.md4 KB -
references/fine_tuning_and_cel.md7 KB -
references/gcloud_recipes.md8 KB
Show all 7 files
-
references/ruleset_mappings.md12 KB -
scripts/upgrade_policy.py36 KB
Alternatives to cloud-armor-crs-rule-upgrader
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
cloud-armor-crs-rule-upgrader: common questions
What CRS versions does this upgrade from?
It upgrades Google Cloud Armor policies from OWASP CRS 3.0 and 3.3 to OWASP CRS 4.22.
Will the upgrade block live traffic?
Preview mode deploys upgraded rules with preview enabled so traffic is logged without blocking. In-place upgrades enforce immediately and carry cutover risk, according to the source.
What happens to retired signature IDs?
Retired CRS 3.0 and 3.3 signature IDs are dropped in 4.22 and flagged as Medium risk when a legacy rule opted out of them.
How do I install cloud-armor-crs-rule-upgrader?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cloud-armor-crs-rule-upgrader free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cloud-armor-crs-rule-upgrader safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cloud-armor-crs-rule-upgrader?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
