Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Security Deck
    • Overview
    • Security Deck workspaces
    • Alerts in Security Deck
    • Data Security Posture Management (DSPM)
    • Kubernetes® Security Posture Management (KSPM)
    • Cloud Infrastructure Entitlement Management (CIEM)
    • Cloud Security Posture Management (CSPM)
    • Custom rules
    • Threat Detector (TD)
    • Vulnerability Management (VM)
    • Access Transparency
    • AI assistant
    • Quotas and limits
  • Pricing policy
  • Audit Trails events
  • Release notes

In this article:

  • Custom rules in CSPM
  • Custom rules in KSPM
  1. Concepts
  2. Custom rules

Custom rules

Written by
Yandex Cloud
Updated at November 2, 2026
View in Markdown
  • Custom rules in CSPM
  • Custom rules in KSPM

Custom rules allow you to customize CSPM and KSPM standard security rules for the in-house requirements.

To work with custom rules, you need the security-deck.rules.editor role or higher.

Note

To check rule compliance, add the rule to a new or existing custom rule set. Then check the workspace settings to make sure the rule set is active.

Custom rules in CSPMCustom rules in CSPM

Custom rules in CSPM are created based on a basic standard rule. A basic rule defines the verification logic you can supplement or modify.

The following settings are available:

  • Editing a name and description.
  • Changing severity.
  • Supplementing or editing resolution guidelines.
  • Editing configurable parameters specific to a basic rule.

Custom rules in KSPMCustom rules in KSPM

Custom rules in KSPM are created from scratch based on the internal security policies. As opposed to CSPM rules, they do not require a basic rule.

The following settings are available:

  • Rule name and description.
  • Check type: sets when to apply a rule. Currently, only the Admission option is supported: a rule applies when creating or changing a Kubernetes object.
  • Rule severity.
  • Guidelines on fixing violations.
  • Policy rule YAML code.

By default, a new rule is created in the Audit mode. After creating a rule, you can change the mode.

Useful linksUseful links

  • Creating a custom rule in CSPM
  • Creating a custom rule in KSPM
  • How to work with custom rule sets

Was the article helpful?

Previous
Cloud Security Posture Management (CSPM)
Next
Threat Detector (TD)
© 2026 Direct Cursus Technology L.L.C.