Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Database Security Service/ Best Practices/ Checking for Data Reduction

Checking for Data Reduction

Updated on 2022-11-23 GMT+08:00

Scenario

Database audit provides a preconfigured rule to check audit logs for data security risks, such as SQL statements used for data breach.

You can learn the execution duration, number of affected rows, and database information of the SQL statements.

The following types of statements can be audited:
  • DDL:
    • CREATE TABLE
    • CREATE TABLESPACE
    • DROP TABLE
    • DROP TABLESPACE
  • DML:
    • INSERT
    • UPDATE
    • DELETE
    • SELECT
    • SELECT FOR UPDATE
  • DCL:
    • CREATE USER
    • DROP USER
    • GRANT

Configuring Data Reduction Detection

To check for data reduction, configure the database to be audited, client IP address or IP address segment, operation type, operation object, and execution result.

  1. Log in to the management console.
  2. Select a region and click . Choose Security & Compliance > Database Security Service.
  3. In the navigation pane, choose Rules.
  4. In the Instance drop-down list, select an instance.
  5. Click the Risky Operations tab.
  6. In the Operation column of a data reduction event, click Edit. The Edit Risky Operation page will be displayed.
  7. (Optional) Configure an IP address or IP address segment, or all the IP addresses will be checked by default.
  8. In the Operations area, select Operation and SELECT.

    Figure 1 Operations

  9. (Optional) Configure operation objects, or all the operation objects will be scanned by default.

    1. Click an operation object. Enter the target database, target table, and field information.
    2. Click OK.

  10. In the Results area, configure Affected Rows and Operation Duration.

    Figure 2 Results
    NOTICE:

    If your application changes (for example, because of service upgrade or code changes), you need to modify Affected Rows to ensure the results are fully audited.

  11. Click Save.

Viewing Data Reduction Check Results

Perform the following steps:

  1. Log in to the management console.
  2. Select a region and click . Choose Security & Compliance > Database Security Service.
  3. In the navigation pane, choose Dashboard.
  4. In the Instance drop-down list, select an instance.
  5. Click the Statements tab.
  6. Set filter criteria to query SQL statements.

    • Select Last 30 minutes, 1 hour, 24 hours, 7 days, or 30 days, or click to set start time and end time. Click Submit to view SQL statements of the specified time range.
    • Set Risk Severity (the default value in the data reduction rule is High) and click Submit.
    • Click next to Advanced Settings. Configure parameters, as shown in Figure 3, and click Search.
      NOTE:

      A maximum of 10,000 records can be retrieved in a query.

      Figure 3 Advanced settings

  7. In the row containing the desired SQL statement, click Details in the Operation column.
  8. In the Details dialog box, view the detailed information about the SQL statement. Table 1 describes the parameters.

    Table 1 SQL statement parameters

    Parameter

    Description

    Session ID

    ID of an SQL statement, which is automatically generated

    Database Instance

    Database where an SQL statement is executed

    Database Type

    Type of the database where an SQL statement is executed

    Database User

    Database user for executing an SQL statement

    Client MAC Address

    MAC address of the client where an SQL statement is executed

    Database MAC Address

    MAC address of the database where an SQL statement is executed

    Client IP Address

    IP address of the client where an SQL statement is executed

    Database IP Address

    IP address of the database where an SQL statement is executed

    Client Port

    Port of the client where an SQL statement is executed

    Database Port

    Port of the database where the SQL statement is executed

    Client Name

    Name of the client where an SQL statement is executed

    Operation Type

    Type of an SQL statement operation

    Operation Object Type

    Type of an SQL statement operation object

    Response Result

    Response to an SQL statement

    Affected Rows

    Number of rows affected by executing an SQL statement

    Started

    Time when an SQL statement starts to be executed

    Ended

    Time when the SQL statement execution ends

    SQL Statement

    Name of an SQL statement

    Request Result

    Result of requesting for executing an SQL statement

Viewing Data Reduction Check Rules

Choose Rules and click the Risky Operations tab. Here you can manage slow SQL settings.

  • Enable

    In the row containing the data reduction detection rule, click Enable in the Operation column.

  • Edit

    In the row containing the data reduction detection rule, click Edit in the Operation column.

  • Disable

    In the row containing the data reduction detection rule, click Disable in the Operation column. Disabled rules will not be audited.

  • Delete

    In the row containing the data reduction detection rule, click Delete in the Operation column. To add the rule again, follow the instructions in Adding Risky Operations.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback