create-custom-rule

Draft and save tenant-local SubImage custom Cypher rules for security detections.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/subimagesec/skills --skill create-custom-rule
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-custom-rule
Source: https://github.com/subimagesec/skills/tree/main/plugins/subimage-mcp/skills/create-custom-rule
Command: npx skills add https://github.com/subimagesec/skills --skill create-custom-rule

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps operators turn a plain-English security concern into a saved SubImage custom rule without having to hand-craft the full workflow alone.

Core Features & Use Cases

  • Rule authoring: Draft a tenant-local Cartography rule with one or more facts, tags, references, and clear finding intent.
  • Cypher validation: Enforce SubImage’s rule constraints so detection queries use explicit aliases, valid output fields, and safe read-only syntax.
  • End-to-end submission: Confirm naming collisions, verify queries against the live tenant graph, and persist the rule for the next findings build.
  • Use case: An operator needs to detect a misconfiguration not covered by built-in rules, so the Skill helps them create and register a custom finding definition from chat.

Quick Start

Ask me to create a SubImage custom rule for the misconfiguration you want to detect, and I will validate the Cypher, save the rule, and tell you when findings will appear.

Frequently Asked Questions about create-custom-rule

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

FAQPage Schema
How do I create custom security rules for Cartography AWS or Kubernetes detections?

To create custom security rules, you provide a plain-English rule intent and select a provider module. The Skill drafts a tenant-local SubImage custom Cypher rule, validates read-only syntax with aliased outputs, and saves it for the next findings build.

Can I write custom Cypher detection queries for misconfigurations not covered by built-in rules?

Yes, you can write custom Cypher detection queries for missing coverage. The Skill enforces SubImage's rule constraints by validating explicit aliases, valid output fields, and safe read-only syntax before submitting the custom finding definition.

How do I validate and save a custom Cypher rule against a live tenant graph?

You validate and save a custom Cypher rule by confirming naming collisions and verifying queries against the live tenant graph. The Skill handles end-to-end submission, ensuring the rule persists with facts, tags, references, and clear finding intent.

What providers support custom Cartography security detections in SubImage?

Custom Cartography security detections in SubImage support AWS, GCP, Azure, GitHub, and Kubernetes providers. You select the appropriate provider module during rule authoring to target the specific cloud or infrastructure environment.

What are the limitations when creating custom Cypher rules for security detections?

Custom Cypher rules for security detections require explicit rule intent, provider module selection, validated read-only syntax, and aliased outputs. Rules that do not meet SubImage's constraints or fail graph visualization query verification cannot be submitted.

Do I need to manually write Cypher to detect cloud misconfigurations in SubImage?

You do not need to manually write Cypher from scratch to detect cloud misconfigurations. You provide a plain-English security concern, and the Skill drafts the custom finding definition, validates the query, and registers the tenant-local rule.