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 Smart Web Security
  • Getting started
    • Overview
    • Security profiles
    • WAF profiles
    • ARL (request limit)
    • Rules
    • Conditions
    • Lists
    • Managing bot traffic
    • Protecting domains
    • Response templates
    • Logging
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • Protection modes
  • Automatic switching
  • Manual switching
  • Request body analysis
  • Profiles and rules diagram
  1. Concepts
  2. Security profiles

Security profiles

Written by
Yandex Cloud
Updated at November 5, 2026
View in Markdown
  • Protection modes
    • Automatic switching
    • Manual switching
  • Request body analysis
  • Profiles and rules diagram

Security profile is the main Smart Web Security component. A security profile consists of a set of HTTP traffic processing rules. The rules contain filtering conditions and actions that apply to your web resource's incoming traffic. Security profiles also allow configuring a CAPTCHA and request limits based on various conditions. To standardize client response pages for triggered profile rules, you can create your own response templates.

Note

To enhance your security, we use HTTP request data to train our machine learning (ML) models. You can disable the use of this data in the management console when creating a security profile or later in its settings.

You can create security profiles in different ways:

  • From a preset template.

    A preset profile includes:

    • Basic default rule enabled for all traffic with the Allow action type.
    • Smart Protection rule, sp-rule-1, enabled for all traffic with the API protection action type.
  • From scratch. This profile includes only the basic default rule enabled for all traffic.

You configure the security profile according to your threat model, i.e., description of your service-specific potential risks, attack actors, and vulnerabilities. If you are setting up your protection without professional cybersecurity assistance, we recommend using the preconfigured profile template set up by Yandex Cloud experts. This will insure the basic level of protection and help reduce the probability of configuration errors.

Connect a security profile to your resource to enable Smart Web Security protection.

You can connect a security profile to various types of resources:

  • Virtual host or ingress controller to protect resources that use Yandex Application Load Balancer.
  • API Gateway API gateway to protect the APIs of your applications.
  • Domain to protect your website or web application hosted in Yandex Cloud, your internal infrastructure, or other platforms.

Protection modesProtection modes

The protection mode decides which profile rules will apply to traffic and how strict Smart Protection will be. These modes allow you to pre-configure additional rules and activate them during a load surge or attack.

For each rule, you choose when it applies: in all modes (default), in Enhanced protection and Under attack modes, or Under attack only. The final action for a request is determined by the priorities of the active rules.

There are three modes in the profile:

  • Normal: For standard load. The All modes rules apply.
  • Enhanced protection: For suspicious load spikes. The Enhanced protection and Under attack mode rules additionally apply. Smart Protection more commonly applies lenient checks to suspicious traffic.
  • Under attack: For an attack or critical load. Rules selected specifically for this mode additionally apply. Smart Protection checks automated traffic more strictly and requires users to pass verification more frequently.

You can configure the mode switching method when creating or editing a profile.

Automatic switchingAutomatic switching

The service switches modes based on incoming load. The Normal mode is on by default. For the Enhanced protection and Under attack modes, the following are configured separately:

  • Activation threshold: Number of incoming requests over a selected interval. If the number of requests over this interval exceeds the threshold, relevant mode gets activated.
  • Mode retention time: Delay before returning to normal mode after the load drops below the threshold. This delay prevents frequent switching during load fluctuations.

Estimate the standard load based on traffic monitoring, and the permissible load based on application metrics or load testing results. Set the Enhanced Protection mode threshold above normal peaks with a margin for permissible surges. Set a higher threshold for the Under attack mode – but one below the load level at which the application begins to slow down or throw errors.

Use the same counting interval to compare thresholds. With a one-second interval, you can compare thresholds directly to RPS. After you enable the automatic mode, check if the protection is getting strengthened during normal peak loads and adjust the thresholds as needed.

Manual switchingManual switching

The selected mode is retained regardless of the load. Manual switching disables automatic control until you turn it back on.

Request body analysisRequest body analysis

In the security profile, you can enable request body inspection to improve the web application's performance and security. Limiting the maximum request body size prevents excessive resource consumption and mitigates the effects of DoS/DDoS attacks, where attackers submit large requests in order to exhaust the server's resources.

When you configure a security profile, you can select an action for when the maximum request body size is exceeded:

  • Do not analyze body: Use it when a legitimate application frequently sends large requests.
  • Block request: This is a universal and secure approach. Smart Web Security blocks any requests exceeding the 8 KB limit, reducing the risk of attacks. If a request is blocked, Smart Web Security returns a 403 error.

Profiles and rules diagramProfiles and rules diagram

The diagram below illustrates the relationship between Smart Web Security profiles and rules. Security profile is the main Smart Web Security component you can use to set up basic rules and Smart Protection. You can additionally connect a WAF profile (through a WAF rule), an ARL profile, and SmartCaptcha.

Useful linksUseful links

  • Managing security profiles
  • Setting up basic protection in Smart Web Security
  • Setting up an Ingress controller and test applications

Was the article helpful?

Previous
Overview
Next
WAF profiles
© 2026 Direct Cursus Technology L.L.C.