Custom Rules
Create, manage, and test custom security rules for Cloud Risk Management in Trend Micro Vision One. Custom rules allow organizations to define their own compliance checks tailored to specific security requirements.
Instructions
When the user asks about custom rules, custom compliance checks, or organization-specific security rules, use this skill.
List existing rules: Start with cloud_posture_custom_rules_list to see all custom rules in the organization.
Get rule details: Use cloud_posture_custom_rule_get to retrieve the full configuration of a specific rule.
Test before deploying: Always use cloud_posture_custom_rule_test to validate rule configuration before creating or updating rules.
Write operations require Master Administrator role: Creating, updating, and deleting custom rules requires elevated permissions.
Confirm with user: Always confirm with the user before executing create, update, or delete operations.
Understand rule structure: Custom rules consist of attributes (data to extract from resources) and event rules (conditions to evaluate).
Tools
This skill uses the following Vision One MCP tools:
| Tool |
Purpose |
Type |
Role Required |
cloud_posture_custom_rules_list |
List all custom rules in the organization |
Read |
Any |
cloud_posture_custom_rule_get |
Get detailed configuration of a specific rule |
Read |
Any |
cloud_posture_custom_rule_create |
Create a new custom rule |
Write |
Master Administrator |
cloud_posture_custom_rule_update |
Update an existing custom rule |
Write |
Master Administrator |
cloud_posture_custom_rule_delete |
Permanently delete a custom rule |
Write |
Master Administrator |
cloud_posture_custom_rule_test |
Test a rule configuration against an account or mock data |
Write |
Master Administrator |
Custom Rule Structure
Required Fields for Creating Rules
| Field |
Description |
Example Values |
name |
Display name for the rule |
"Require S3 bucket encryption" |
description |
Detailed explanation |
"Ensures all S3 buckets have encryption enabled" |
categories |
Compliance categories |
security, cost-optimisation, reliability, performance-efficiency, operational-excellence, sustainability |
riskLevel |
Severity level |
LOW, MEDIUM, HIGH, VERY_HIGH, EXTREME |
provider |
Cloud provider |
aws, azure, gcp, oci, alibabaCloud |
enabled |
Whether rule is active |
true, false |
service |
Cloud service |
S3, EC2, IAM, etc. |
resourceType |
Resource to evaluate |
AWS::S3::Bucket, AWS::EC2::Instance, etc. |
attributes |
Data to extract |
Array of {name, path, required} |
eventRules |
Evaluation conditions |
Array of {conditions, description} |
Optional Fields
| Field |
Description |
slug |
URL-friendly identifier (auto-generated if omitted) |
remediationNote |
Steps to fix issues |
resolutionReferenceLink |
URL to documentation |
Common Workflows
List and Review Custom Rules
- Use
cloud_posture_custom_rules_list to get all rules
- Review enabled/disabled status
- Identify rules by provider and service
- Get details for specific rules of interest
Create a New Custom Rule
- Define the rule requirements with the user
- Identify the target provider, service, and resource type
- Define attributes to extract from resources
- Define event rules with conditions
- Test the rule using
cloud_posture_custom_rule_test with mock data or a test account
- Review test results with the user
- Get user confirmation before creating
- Create the rule using
cloud_posture_custom_rule_create
- Verify the rule was created successfully
Update an Existing Rule
- Get current rule configuration with
cloud_posture_custom_rule_get
- Identify changes needed
- Test updated configuration before applying
- Get user confirmation for changes
- Update the rule using
cloud_posture_custom_rule_update
- Verify changes were applied
Test Rule Configuration
- Define rule configuration (attributes and eventRules)
- Choose test method:
- Provide
accountId to test against real cloud resources
- Provide
resource object with mock data for isolated testing
- Execute
cloud_posture_custom_rule_test
- Review results for expected behavior
- Iterate on rule configuration if needed
Delete a Custom Rule
- Get rule details to confirm deletion target
- Warn user that deletion is permanent
- Get explicit confirmation
- Delete using
cloud_posture_custom_rule_delete
- Confirm deletion was successful
Output Format
Custom Rule List
## Custom Rules Summary
**Total Rules**: [count]
**Enabled**: [count] | **Disabled**: [count]
### Rules by Provider
| Provider | Count |
|----------|-------|
| AWS | [count] |
| Azure | [count] |
| GCP | [count] |
### Rule List
| Name | Rule ID | Provider | Service | Risk Level | Status |
|------|---------|----------|---------|------------|--------|
| [name] | [id] | [provider] | [service] | [risk] | Enabled/Disabled |
Custom Rule Details
## Custom Rule: [Name]
**Rule ID**: [id]
**Status**: Enabled/Disabled
**Risk Level**: [EXTREME/VERY_HIGH/HIGH/MEDIUM/LOW]
### Target
- **Provider**: [aws/azure/gcp/oci/alibabaCloud]
- **Service**: [service]
- **Resource Type**: [resourceType]
### Categories
- [category1]
- [category2]
### Description
[description]
### Attributes
| Name | Path | Required |
|------|------|----------|
| [name] | [JSONPath] | Yes/No |
### Event Rules
[conditions and logic]
### Remediation
[remediationNote or "Not specified"]
### Reference
[resolutionReferenceLink or "Not specified"]
Test Results
## Rule Test Results
**Configuration**: [Valid/Invalid]
**Test Method**: Account [id] / Mock Resource
### Results Summary
- **Resources Evaluated**: [count]
- **Passed**: [count]
- **Failed**: [count]
### Findings
| Resource | Status | Details |
|----------|--------|---------|
| [resource] | Pass/Fail | [reason] |
Write Operation Confirmation
## Action Required: [Create/Update/Delete] Custom Rule
**Operation**: [Description]
**Rule**: [name or id]
### Details
[Configuration summary or changes]
### Impact
- This rule will be [created/modified/permanently deleted]
- [Additional impact notes]
**Do you want to proceed? (yes/no)**
Example Rule Configurations
S3 Bucket Encryption Check (AWS)
{
"name": "Require S3 Server-Side Encryption",
"description": "Ensures all S3 buckets have server-side encryption enabled",
"categories": ["security"],
"riskLevel": "HIGH",
"provider": "aws",
"enabled": true,
"service": "S3",
"resourceType": "AWS::S3::Bucket",
"attributes": [
{
"name": "BucketEncryption",
"path": "$.BucketEncryption",
"required": false
}
],
"eventRules": [
{
"conditions": {
"all": [
{
"fact": "BucketEncryption",
"operator": "equal",
"value": null
}
]
},
"description": "S3 bucket does not have encryption enabled"
}
],
"remediationNote": "Enable server-side encryption in the S3 bucket settings"
}
Security Considerations
- Master Administrator role required for all write operations
- Test rules before deployment to avoid false positives in production
- Enabled custom rules immediately affect all connected cloud accounts
- Deletion is permanent - rules cannot be recovered
- Custom rules complement but do not replace built-in compliance checks
- Consider rule performance impact when evaluating large numbers of resources
- Document custom rules for audit and compliance purposes
- Coordinate rule changes with security and compliance teams
1---2name: custom-rules3description: Custom Rules4---5# Custom Rules67Create, manage, and test custom security rules for Cloud Risk Management in Trend Micro Vision One. Custom rules allow organizations to define their own compliance checks tailored to specific security requirements.89## Instructions10111. When the user asks about custom rules, custom compliance checks, or organization-specific security rules, use this skill.12132. **List existing rules**: Start with `cloud_posture_custom_rules_list` to see all custom rules in the organization.14153. **Get rule details**: Use `cloud_posture_custom_rule_get` to retrieve the full configuration of a specific rule.16174. **Test before deploying**: Always use `cloud_posture_custom_rule_test` to validate rule configuration before creating or updating rules.18195. **Write operations require Master Administrator role**: Creating, updating, and deleting custom rules requires elevated permissions.20216. **Confirm with user**: Always confirm with the user before executing create, update, or delete operations.22237. **Understand rule structure**: Custom rules consist of attributes (data to extract from resources) and event rules (conditions to evaluate).2425## Tools2627This skill uses the following Vision One MCP tools:2829| Tool | Purpose | Type | Role Required |30|------|---------|------|---------------|31| `cloud_posture_custom_rules_list` | List all custom rules in the organization | Read | Any |32| `cloud_posture_custom_rule_get` | Get detailed configuration of a specific rule | Read | Any |33| `cloud_posture_custom_rule_create` | Create a new custom rule | Write | Master Administrator |34| `cloud_posture_custom_rule_update` | Update an existing custom rule | Write | Master Administrator |35| `cloud_posture_custom_rule_delete` | Permanently delete a custom rule | Write | Master Administrator |36| `cloud_posture_custom_rule_test` | Test a rule configuration against an account or mock data | Write | Master Administrator |3738## Custom Rule Structure3940### Required Fields for Creating Rules4142| Field | Description | Example Values |43|-------|-------------|----------------|44| `name` | Display name for the rule | "Require S3 bucket encryption" |45| `description` | Detailed explanation | "Ensures all S3 buckets have encryption enabled" |46| `categories` | Compliance categories | security, cost-optimisation, reliability, performance-efficiency, operational-excellence, sustainability |47| `riskLevel` | Severity level | LOW, MEDIUM, HIGH, VERY_HIGH, EXTREME |48| `provider` | Cloud provider | aws, azure, gcp, oci, alibabaCloud |49| `enabled` | Whether rule is active | true, false |50| `service` | Cloud service | S3, EC2, IAM, etc. |51| `resourceType` | Resource to evaluate | AWS::S3::Bucket, AWS::EC2::Instance, etc. |52| `attributes` | Data to extract | Array of {name, path, required} |53| `eventRules` | Evaluation conditions | Array of {conditions, description} |5455### Optional Fields5657| Field | Description |58|-------|-------------|59| `slug` | URL-friendly identifier (auto-generated if omitted) |60| `remediationNote` | Steps to fix issues |61| `resolutionReferenceLink` | URL to documentation |6263## Common Workflows6465### List and Review Custom Rules661. Use `cloud_posture_custom_rules_list` to get all rules672. Review enabled/disabled status683. Identify rules by provider and service694. Get details for specific rules of interest7071### Create a New Custom Rule721. Define the rule requirements with the user732. Identify the target provider, service, and resource type743. Define attributes to extract from resources754. Define event rules with conditions765. **Test the rule** using `cloud_posture_custom_rule_test` with mock data or a test account776. Review test results with the user787. **Get user confirmation** before creating798. Create the rule using `cloud_posture_custom_rule_create`809. Verify the rule was created successfully8182### Update an Existing Rule831. Get current rule configuration with `cloud_posture_custom_rule_get`842. Identify changes needed853. **Test updated configuration** before applying864. **Get user confirmation** for changes875. Update the rule using `cloud_posture_custom_rule_update`886. Verify changes were applied8990### Test Rule Configuration911. Define rule configuration (attributes and eventRules)922. Choose test method:93 - Provide `accountId` to test against real cloud resources94 - Provide `resource` object with mock data for isolated testing953. Execute `cloud_posture_custom_rule_test`964. Review results for expected behavior975. Iterate on rule configuration if needed9899### Delete a Custom Rule1001. Get rule details to confirm deletion target1012. **Warn user** that deletion is permanent1023. **Get explicit confirmation**1034. Delete using `cloud_posture_custom_rule_delete`1045. Confirm deletion was successful105106## Output Format107108### Custom Rule List109```110## Custom Rules Summary111112**Total Rules**: [count]113**Enabled**: [count] | **Disabled**: [count]114115### Rules by Provider116| Provider | Count |117|----------|-------|118| AWS | [count] |119| Azure | [count] |120| GCP | [count] |121122### Rule List123| Name | Rule ID | Provider | Service | Risk Level | Status |124|------|---------|----------|---------|------------|--------|125| [name] | [id] | [provider] | [service] | [risk] | Enabled/Disabled |126```127128### Custom Rule Details129```130## Custom Rule: [Name]131132**Rule ID**: [id]133**Status**: Enabled/Disabled134**Risk Level**: [EXTREME/VERY_HIGH/HIGH/MEDIUM/LOW]135136### Target137- **Provider**: [aws/azure/gcp/oci/alibabaCloud]138- **Service**: [service]139- **Resource Type**: [resourceType]140141### Categories142- [category1]143- [category2]144145### Description146[description]147148### Attributes149| Name | Path | Required |150|------|------|----------|151| [name] | [JSONPath] | Yes/No |152153### Event Rules154[conditions and logic]155156### Remediation157[remediationNote or "Not specified"]158159### Reference160[resolutionReferenceLink or "Not specified"]161```162163### Test Results164```165## Rule Test Results166167**Configuration**: [Valid/Invalid]168**Test Method**: Account [id] / Mock Resource169170### Results Summary171- **Resources Evaluated**: [count]172- **Passed**: [count]173- **Failed**: [count]174175### Findings176| Resource | Status | Details |177|----------|--------|---------|178| [resource] | Pass/Fail | [reason] |179```180181### Write Operation Confirmation182```183## Action Required: [Create/Update/Delete] Custom Rule184185**Operation**: [Description]186**Rule**: [name or id]187188### Details189[Configuration summary or changes]190191### Impact192- This rule will be [created/modified/permanently deleted]193- [Additional impact notes]194195**Do you want to proceed? (yes/no)**196```197198## Example Rule Configurations199200### S3 Bucket Encryption Check (AWS)201```json202{203 "name": "Require S3 Server-Side Encryption",204 "description": "Ensures all S3 buckets have server-side encryption enabled",205 "categories": ["security"],206 "riskLevel": "HIGH",207 "provider": "aws",208 "enabled": true,209 "service": "S3",210 "resourceType": "AWS::S3::Bucket",211 "attributes": [212 {213 "name": "BucketEncryption",214 "path": "$.BucketEncryption",215 "required": false216 }217 ],218 "eventRules": [219 {220 "conditions": {221 "all": [222 {223 "fact": "BucketEncryption",224 "operator": "equal",225 "value": null226 }227 ]228 },229 "description": "S3 bucket does not have encryption enabled"230 }231 ],232 "remediationNote": "Enable server-side encryption in the S3 bucket settings"233}234```235236## Security Considerations237238- **Master Administrator role required** for all write operations239- **Test rules before deployment** to avoid false positives in production240- Enabled custom rules immediately affect all connected cloud accounts241- **Deletion is permanent** - rules cannot be recovered242- Custom rules complement but do not replace built-in compliance checks243- Consider rule performance impact when evaluating large numbers of resources244- Document custom rules for audit and compliance purposes245- Coordinate rule changes with security and compliance teams