Use Config Agent to analyze and govern cloud resource compliance risks
Config Agent is an intelligent governance assistant provided by Cloud Config. You ask questions in natural language to query resources and compliance status, locate high-risk items, and get rule and remediation suggestions. After you confirm, Config Agent runs governance operations such as rule, compliance pack, remediation, and delivery management.
Why use Config Agent
In the account group view, you can also compare the compliance status of member accounts and run organization-level governance. Config Agent has the following features:
Natural language interaction: You do not need to learn every menu and parameter. Describe the cloud product, resource, risk, or governance goal directly.
Conclusions presented with evidence: Config Agent returns more than counts. It explains why a risk applies and why it takes priority, based on rules, resources, regions, timelines, and impact scope.
From analysis to governance: Config Agent supports rule recommendation, compliance pack management, remediation, delivery, and service configuration. Every write operation has an explicit confirmation step.
One entry for a single account and for account groups: Analyze the current account, or run cross-account governance for the member accounts in your resource directory.
Continuous tracking of long-running tasks: Operations such as report generation, full evaluation, and large-scope queries run as asynchronous tasks. You can keep working on other questions while they run.
Safe and controllable: A write operation shows the target, scope, and impact before it runs, and runs only after your confirmation. Sensitive credentials such as AccessKey pairs are never exposed in the conversation.
Config Agent is suitable for the following roles:
Cloud platform administrators: Review the overall configuration compliance posture and check whether the monitoring scope is complete.
Security and compliance staff: Identify high-risk items, analyze compliance coverage gaps, and generate compliance reports.
O&M engineers and developers: Locate issues affecting a specific resource or rule, and get remediation suggestions and configuration history.
Enterprise multi-account administrators: Compare member account risks, identify rule drift, and drive organization-level unified governance.
Config Agent answers are AI-generated based on model inference and can deviate from the actual situation. Verify the answers against your business scenario before you use them.
Prerequisites
Before you use Config Agent, make sure that your environment meets the following requirements:
You have activated Cloud Config and completed service access authorization. For the activation procedure, see Activate Cloud Config.
You have configured an appropriate monitoring scope. The monitoring scope determines the resource types that Cloud Config records, and Config Agent query results cover only the recorded resources. For the configuration procedure, see Specify a monitoring scope.
The current logon identity has the permissions to view resources, rules, and evaluation results. Write operations such as create, modify, delete, and remediate also require the corresponding management permissions. For more information about service-linked roles, see Manage the AliyunServiceRoleForConfig service-linked role.
To use the account group capabilities, you have created an account group, enrolled the member accounts, and hold the account group administrator permission. For the creation procedure, see Create an account group.
Open Config Agent and select the governance scope
After you open Config Agent, first determine the data scope of the conversation: query the current logon account, or query an entire account group. The scope determines the data that all subsequent answers and the result panel use.
Log on to the Cloud Config console.
In the left-side navigation pane, click Config Agent.
In the Scope switcher at the top of the page, select a governance scope:
| Governance scope | Applicable scenario | Data scope |
| Current account | Analyze and govern the resources in a single account | The resources recorded in the current logon account, and the enabled rules, compliance packs, remediation settings, and delivery configurations |
| Account group | Cross-account comparison and organization-level governance | The data of the member accounts that are enrolled in the selected account group and that the current identity is authorized to access |
After you complete these steps, the Config Agent conversation page opens. The welcome page provides recommended scenario entries, and the Scope switcher at the top of the page shows the current governance scope. After you switch the scope, the answers and the right-side result panel switch to the corresponding data scope.
Ask a question and view the analysis results
Enter a complete question directly, click a recommended scenario on the welcome page, or enter / to open the quick commands. The more specific your question is, the more precise the answer is. Include the following information in your question:
| Information | Description | Example |
| Query target | A cloud product, resource type, specific resource, rule, or compliance pack | An ECS instance, an OSS bucket, or a specific managed rule |
| Scope | The current account, a specified region, a specified resource type, or a specified account group | China (Hangzhou), or a specific account group |
| Goal | Query, compare, recommend, generate a report, create, modify, remediate, or deliver | Generate an in-depth compliance analysis report |
| Conditions | A time range, risk level, compliance status, or resource ID | The last 30 days, high risk, or non-compliant |
Config Agent returns a conclusion in the conversation and, depending on the scenario, displays a visualization in the right-side result panel in the forms described in Result presentation. You can keep asking follow-up questions based on the current result, such as "Show only the high-risk items", "Break the data down by region", "List the top 20 items in full", "Why is this rule evaluated as non-compliant", and "Give me a remediation plan". More ready-to-use questions are listed in Recommended sample questions.
Long-running operations such as in-depth report generation, full re-evaluation, and large-scope export run as asynchronous tasks. You can view the task progress and results in the Task Center, cancel the tasks that support cancellation, and keep asking other questions in the meantime.
Recommended sample questions
Questions for the current account
How is my security posture?
Are there any new high-risk problems in the last 7 days?
List all non-compliant resources, sorted by risk level.
Which OSS buckets do not have server-side encryption enabled?
Are there any security groups that open port 22 or 3389 to the entire Internet?
View the configuration changes and compliance changes of a specified resource in the last 30 days.
What compliance detection blind spots do my cloud resources have?
Recommend high-risk managed rules that suit the current resources.
Help me design a custom rule that requires every resource to carry the CostCenter tag.
Which non-compliant items can be remediated automatically? Ask me to confirm before execution.
Generate an in-depth compliance analysis report for the current account.
Questions for an account group
View the overall compliance posture of the current account group.
Sort the member accounts by compliance rate, and explain the three accounts with the highest risks.
Which rules are enabled in only some member accounts?
Analyze the compliance trend of the account group in the last 30 days.
Compare the differences between member accounts under the same compliance pack.
Generate an organization-level in-depth compliance analysis report for the account group.
Confirm and run a governance operation
Write operations such as create, modify, delete, enable, disable, re-evaluate, and remediate are never run based on a single question. Config Agent first shows a confirmation card that contains the following information. The operation runs only after your confirmation, and you can cancel it at any time:
The operation type and the target object.
The current value and the target value.
The impact scope and the potential risks.
The key parameters.
If the target object is not clear, Config Agent does not select a resource or a rule on its own to run the operation, even if you confirm repeatedly.
After you confirm, Config Agent reports the execution stages, the tool calling status, and the final conclusion in the conversation. Long-running tasks such as re-evaluation appear in the Task Center, where you can view the task progress and results. For remediation operations, you can view the execution records, status, and failure causes.
Result presentation
Config Agent uses the layout of a conversation area, a right-side result workspace, and a Task Center. The conversation area provides conclusions and follow-up entries, the result workspace carries the visualization results in multiple result tabs, and the Task Center tracks long-running tasks. You can navigate between the conversation and the visualization results. The current result forms include:
Compliance posture dashboard: health score, risk distribution, trend, top risks, and recommended actions.
Resource tables and general data tables: paginated views of large result sets.
Resource details and resource insights: configuration attributes, association information, and analysis conclusions.
Resource timelines: configuration changes, compliance changes, and important events.
Rule cards, rule recommendations, and the rule editor.
Remediation impact analysis.
Member account risk rankings, organization trends, and rule drift heat maps.
HTML and PDF reports, and asynchronous task results.
Write operation confirmation cards.
Capabilities
The following subsections describe what Config Agent can do, organized by capability domain. The Why use Config Agent section describes the positioning of Config Agent, and this section provides the detailed catalog. Some capabilities, report types, delivery channel types, and session management features such as session tags are subject to the scope that is officially released.
Compliance posture and risk analysis
The common risk directions covered include but are not limited to Internet Exposure, vulnerable ports in security groups, data encryption, backup, identity and permissions, multi-factor authentication (MFA), password policy, certificate validity, logs, tags, cross-region disaster recovery, and high availability (HA) configurations.
View the overall compliance status, health score, and risk level distribution of the current account.
Identify the highest-priority risks, together with an explanation of the ranking based on severity and impact.
View the compliance trend over a recent period, and identify improvements, deterioration, or anomalies.
Analyze rule coverage blind spots, and identify the cloud products or resource types for which compliance detection is not configured.
View remediation coverage, and distinguish the risks that have remediation configured from the risks that lack a remediation plan.
View top risks, recommended actions, and key metrics on the compliance posture dashboard.
Cloud resource query and resource profile
Query the resource types that Cloud Config supports.
Query resources by cloud product, resource type, region, resource ID, or resource name.
View the configuration details and key attributes of a single resource.
View the associations between resources, such as the associations among instances, disks, networks, and load balancing.
View the configuration change timeline, compliance detection timeline, and combined event timeline of a resource.
Aggregate resource distribution and compliance distribution by region or resource type.
Query resources by using advanced search, and generate a complete result file when the data volume is large.
Query resource tags to help check tag standards, cost attribution, and the governance scope.
Generate a resource inventory or a resource inventory report.
Compliance diagnosis and evaluation result query
View the rule list, rule details, risk levels, and enablement status.
View rule evaluation results, together with rule-dimension and resource-dimension statistics.
Query the non-compliant resources of a specific rule, or the rules that a specific resource hits and its historical evaluation results.
Aggregate non-compliant rules and non-compliant resources by risk level.
Generate a rule evaluation report, and explain states such as an empty result, a disabled rule, and missing recorded data.
Get remediation suggestions based on business impact instead of only rule IDs or raw data.
Rule governance
Get recommendations of applicable managed rules based on the current resources and risks.
Query managed rule details, applicable resource types, default parameters, and risk levels.
Create or enable a managed rule after your confirmation.
Query, modify, enable, disable, and delete the rules that you created.
Trigger re-evaluation for a single rule, a batch of rules, or all rules, and track the asynchronous evaluation status.
Modify the risk level, parameters, and scope of a rule.
Query and restore ignored evaluation results.
When managed rules cannot cover your requirements, get help with designing a custom condition rule: query the resource attributes and the available condition operators, generate the rule condition, and run a trial pre-evaluation before you create the rule.
Config Agent follows the principle of managed rules first, custom rules as a supplement, and confirmation before execution. It does not bypass the Cloud Config rule mechanism to inspect system state beyond the rule scope. For the complete description of rules, see Create a rule based on a managed rule.
Compliance packs and baselines
Query, create, modify, and delete compliance packs.
View compliance pack details, the rule list, rule compliance results, and resource compliance results.
Add rules to a compliance pack or remove rules from a compliance pack.
Establish governance baselines quickly based on compliance pack templates, and view the rule coverage of the built-in baselines such as the Center for Internet Security (CIS), Multi-Level Protection Scheme (MLPS) Level 3, and financial compliance baselines.
Generate a compliance pack evaluation report and get the download result.
Copy a compliance pack between account groups or unify rule configurations.
For the concepts and operations of compliance packs, see Compliance packs overview.
Remediation
Query the configured remediation settings, remediation details, and applicable rules.
Query the available remediation templates and their parameter requirements.
Get remediation suggestions for non-compliant items, together with a description of the operation impact and the business risk.
Create, modify, and delete remediation settings.
Run remediation manually, and view the execution records, status, and failure causes.
Analyze automatic remediation coverage, and identify the high-risk items that lack a remediation plan.
Remediation changes cloud resource configurations. Config Agent shows the intended remediation objects and scope and waits for your confirmation before execution. For scenarios that cannot be safely automated, it provides only manual handling suggestions. For the complete description of remediation settings, see Remediation overview.
Delivery channel management
Query delivery channels and their details.
Create, modify, and delete delivery channels.
Manage the delivery configurations that send resource data and compliance data to destinations such as Object Storage Service (OSS), Simple Log Service (SLS), and Message Service (MNS).
Service and monitoring scope management
Check whether Cloud Config is activated and whether the current monitoring scope is complete.
Query the integrated service list, service status, and detailed configurations.
Enable or disable an integrated service after your confirmation.
Modify the monitoring scope and add the resource types that need to be recorded.
Diagnose missing data caused by an unactivated service, an incomplete monitoring scope, a region mismatch, or insufficient permissions.
Reports and deliverables
Generate an HTML in-depth compliance analysis report for the current account or for an account group.
Generate a report quickly from existing complete data, or re-evaluate the latest data after your confirmation and then generate the report.
Generate downloadable deliverables such as a PDF compliance report and a PDF resource inventory report.
Query and manage report templates, and configure the report scope, aggregation method, and periodic push.
Get a report that contains the overall conclusion, key risks, impact analysis, recommended actions, and a detailed appendix.
Report generation is an asynchronous task. After it completes, view and download the report in the Task Center or in the right-side result panel.
Cross-account governance with account groups
Query the account group list, account group details, and the member account list.
Create, modify, and delete account groups, and manage the member scope (the account group administrator permission is required).
Aggregate the resource data and compliance data in an account group, and compare the compliance rates and risk distribution of member accounts.
View the member account risk ranking, and locate the accounts, rules, and resource types with the highest risks.
Analyze the rule coverage differences and rule drift among member accounts, and view the differences between member accounts under the same compliance pack.
View organization-level compliance trends and the causes of the changes.
Query resources, resource relationships, change history, compliance history, and resource inventories across accounts.
Manage the rules, compliance packs, remediation settings, and delivery configurations of an account group, including cross-account remediation settings and cross-account delivery channels in the account group view.
Generate an organization-level in-depth compliance analysis report.
For information about delivery configurations, see Delivery overview.
Only the member accounts that are enrolled in the account group and that the current identity is authorized to access are included in the aggregation. The result of the current account does not represent the entire organization. For more information, see Overview of account groups.
Session management and feedback
Create and save multiple sessions, and switch between different questions.
Isolate sessions and results by the current account or account group to avoid confusion about the data scope.
Search, rename, pin, and delete sessions.
View the execution stages, tool calling status, and final conclusion in the conversation.
Stop an answer that is being generated, or regenerate, copy, upvote, or downvote an answer.
Submit issue feedback with screenshots attached (the quantity, type, and size limits of the feedback content and attachments are subject to the on-page instructions).
Copy a non-sensitive RequestId or session ID to help technical support locate the issue.
Security mechanisms and operation boundaries
| Mechanism | Description |
| Write operation confirmation | Write operations such as create, modify, delete, enable, disable, re-evaluate, remediate, deliver, and service scope adjustment follow a prepare-first, confirm-next, execute-last flow. For the confirmation card contents and the confirmation flow, see the Confirm and run a governance operation section. |
| High-risk operation blocking | Config Agent does not batch delete cloud resources based on one natural language sentence, and it does not delete or disable all rules when the scope is not specified. For a high-risk request, Config Agent refuses to run the request directly, asks you to narrow the scope, or provides a read-only list and a safer alternative. |
| Permissions and tenant isolation | Queries and operations are constrained by the current logon identity, RAM permissions, Cloud Config service access authorization, and account group ownership. Config Agent does not access the data of member accounts that are not enrolled, beyond the authorized scope. |
| Sensitive information protection | Credentials such as the AccessKey ID, AccessKey secret, and Security Token Service token are never displayed. During troubleshooting, Config Agent provides only a desensitized error summary, the time, the session ID, or a non-sensitive RequestId. |
| Notes on AI-generated results | Answers are AI-generated and can be inaccurate or incomplete. Verify the answers against your business scenario before you use them, especially when a change to the production environment is involved. |
Data scope and limits
An empty result does not guarantee safety: An empty non-compliance result can mean that the resources are compliant, but it can also mean that rules are not enabled, resources are not recorded, an evaluation is not complete, or permissions are insufficient.
A result reflects a point in time: Resource configuration collection and rule evaluation have latency. Also pay attention to the most recent evaluation time given in the answer.
Capabilities focus on Cloud Config: Config Agent works based on the resource, rule, compliance pack, remediation, delivery, and service capabilities of Cloud Config. It does not replace the consoles of the individual cloud products.
Some resource details might not be directly available: If Cloud Config has not recorded a target attribute, Config Agent explains the capability boundary and provides a verification path through managed rules, Resource Center, or the corresponding cloud product.
Cross-account capabilities are constrained by the governance scope: Only the member accounts that are enrolled in an account group and authorized can participate in the aggregation.
Time-consuming tasks run asynchronously: An in-depth report, a full evaluation, or a large-scale export can take several minutes or longer. Track them in the Task Center.
FAQ
Why does Config Agent find no resources or non-compliance results?
Check the following in order: whether Cloud Config is activated, whether the target resource types and regions are in the monitoring scope, whether the corresponding rules are enabled, whether the most recent evaluation is complete, and whether the current identity has the required view permissions. You can also ask Config Agent directly: "Check whether the Cloud Config service status and the monitoring scope are complete."
Does Config Agent modify my cloud resources directly?
No. Config Agent never runs a write operation based on a single question. When a change to rules, compliance packs, remediation, deliveries, or the service scope is involved, Config Agent shows the operation content first and waits for your confirmation. For high-risk requests such as the batch deletion of cloud resources, it does not provide unprotected direct execution. For the confirmation flow and the confirmation card contents, see Confirm and run a governance operation.
How do I query the data of another account?
An administrator must first enroll the member account into a Cloud Config account group and complete the authorization. Then, switch to the corresponding account group in the Scope switcher. An unauthorized account cannot be queried by entering its account ID.
Does a report use existing data or re-evaluate the data?
If complete evaluation data already exists, Config Agent shows the data timestamp and lets you choose. Using the existing data is usually faster. Re-evaluation reflects the latest resource status but takes longer. Before you make a choice, Config Agent does not start a large-scale re-evaluation by default.
How do I improve answer accuracy?
Specify the resource type, region, rule, resource ID, time range, and expected action as clearly as possible in your question. After data appears in the right-side result panel, you can continue to request filtering, sorting, cause explanation, or governance suggestions.