Fraud Detection rules

Updated at:

Security Center allows administrators to register fraud detection capabilities as extensions in DataWorks. These extensions function as fraud detection rules to detect risks in user operations. When a user performs an operation that a fraud detection rule monitors, the rule determines whether a risk exists. If the extension returns a "failed" or "warning" result, the system triggers a configured threat response. This topic describes how to configure fraud detection rules and their corresponding threat responses.

Background information

Security Center provides fraud detection and response capabilities through extensions. You can use official DataWorks extensions to manage high-risk behaviors or develop and deploy custom extensions on the DataWorks Open Platform to handle complex scenarios. These extensions function as fraud detection rules, extending your internal risk control platform to the DataWorks big data platform.

image

Limits

  • You can configure threat responses only for extensions that are Published. Select the event to manage from the Management event list: Pre-event for file deployment, Pre-event for data backfill, or Data download pre-event - file generation. For more information about supported events and extension statuses, see List of supported extension point events and Publish and manage extensions.

  • Only the Approval and Blocking threat response methods are supported.

  • Only Resource Access Management (RAM) users with the AliyunDataWorksFullAccess policy and members with the DataWorks Tenant Administrator or Security Administrator role can create and manage fraud detection rules. For more information, see View the permissions of a RAM user and Manage the permissions of a RAM user.

Important

If your DataWorks Enterprise Edition subscription expires, or an extension is unpublished or disabled, the extension becomes invalid. Its checks and blocking no longer take effect, and the operation passes this extension directly, subject to other applicable conditions. Keep your Enterprise Edition subscription and extensions active.

Supported management events

  • Data download pre-event - file generation

  • Pre-event for file deployment

  • Pre-event for data backfill

    For approval handling of data backfill operations, see Data backfill approval and execution.

Note

If file download control for personal development environments is enabled in Individual development environment in Security Center, and an approval response policy is configured for Data download pre-event - file generation, file downloads in personal development environments in Data Studio trigger the corresponding approval flow.

Go to the Fraud Detection rules page

  1. Log on to the DataWorks console. In the target region, click Data Governance > Security Center in the left-side navigation pane. On the page that appears, click Go to Security Center.

  2. In the navigation pane on the left, choose Security policy > Risk identification rules.

Configure a fraud detection rule

The Risk identification rules page groups extensions by management event. You can use system-provided rules or register custom extensions on the DataWorks Open Platform. After an extension is published, select the corresponding event from the Management event list to view the extension and configure its threat responses. To trigger approval, also enable the rule for the workspace where the operation occurs and associate an applicable approval policy.

Default fraud detection rules

Select an event from the Management event list to view system-provided fraud detection rules. Expand the rule to view its status in each workspace, and turn on the Enable switch as needed. An Approval response is triggered only when the rule is enabled for the workspace, the extension returns a "warning" result, and an associated approval policy applies to that workspace.

Note

The rule's enabled scope must match the approval policy's applicable scope. Enable the rule for the workspace where the operation occurs and associate an approval policy that applies to that workspace. An approval policy can apply to Global or specific workspaces. For more information, see Create an approval policy.

Custom fraud detection rules

  1. Click Create Extensions to go to the Extensions page of the Open Platform.

  2. On the Extension page of the Open Platform, develop an extension. For more information, see Procedure.

    You can register your existing local risk control logic as a DataWorks extension or develop new validation logic for your business scenario.

    Note

    When you register an extension, select the extension point that corresponds to the operation to manage. After the extension is published, enable it on the Extension page in Management Center. Then configure its threat responses and enable it for the required workspace in Security Center.

Configure threat responses

  1. In the Operation column, click Configure Response.

  2. Configure the threat response.

    Threat response rules support two policies: blocking and approval.

    • Block: If an extension returns a "failed" result, the operation is blocked by default. When an extension check returns a "failed" result, the threat response policy immediately blocks the user's operation. For example, if an extension check for a data download by User A returns "failed", the download is stopped.

    • Approval: If the rule is enabled for the workspace, the extension returns a "warning" result, and an associated approval response policy applies to that workspace, the corresponding approval flow is triggered.

      Note

      An extension used to trigger approval must return a "warning" result and have an approval response policy configured.

  3. Configure an approval policy.

    Click image.png to add an approval policy. If a suitable policy does not exist, click Create an approval policy. For more information, see Extension approval policies.

    • If the threat response is set to approval, a "warning" result from the extension check triggers the approval policy configured for that workspace.

    • For global extensions that apply to all workspaces, if a specific workspace does not have a configured response policy, the operation is allowed by default, and the flow is not blocked. For example, consider an enabled extension for the Data download pre-event - file generation action. All data download operations in any workspace are blocked until the extension returns a result. When the extension returns a "warning" status:

      • If the workspace where the download was triggered has a configured approval policy, the approval flow defined for that workspace is automatically triggered.

      • If the workspace where the download was triggered does not have a configured approval policy, the download proceeds as normal.

    Note
    • For approval policies, a lower priority value indicates a higher priority.

    • If an operation matches the applicable scope of multiple approval policies, the policy with the highest priority is used.

References

Fraud Detection: Examples of Rule Responses