Sub Assessments - Get
Get a security sub-assessment on your scanned resource
GET https://management.azure.com/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}?api-version=2019-01-01-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
assessment
|
path | True |
string |
The security assessment key - unique key for the assessment type |
|
scope
|
path | True |
string |
The scope of the sub-assessment. |
|
sub
|
path | True |
string |
The Sub-Assessment Key - Unique key for the sub-assessment type |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Get security recommendation task from security data location
Sample request
GET https://management.azure.com/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/DEMORG/providers/Microsoft.Compute/virtualMachines/vm2/providers/Microsoft.Security/assessments/1195afff-c881-495e-9bc5-1486211ae03f/subAssessments/95f7da9c-a2a4-1322-0758-fcd24ef09b85?api-version=2019-01-01-preview
Sample response
{
"name": "95f7da9c-a2a4-1322-0758-fcd24ef09b85",
"type": "Microsoft.Security/assessments/subAssessments",
"id": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/DEMORG/providers/Microsoft.Compute/virtualMachines/vm2/providers/Microsoft.Security/assessments/1195afff-c881-495e-9bc5-1486211ae03f/subassessments/95f7da9c-a2a4-1322-0758-fcd24ef09b85",
"properties": {
"description": "PuTTY ssh_agent_channel_data Function Integer Overflow Vulnerability",
"additionalData": {
"type": "VirtualMachine",
"assessedResourceType": "ServerVulnerability",
"cve": [
{
"link": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-6542",
"title": "CVE-2017-6542"
}
],
"cvss": {
"2.0": {
"base": 7.5
},
"3.0": {
"base": 9.8
}
},
"patchable": true,
"publishedTime": "2017-04-06T10:58:25",
"threat": "PuTTY is a client program for the SSH, Telnet and Rlogin network protocols",
"vendorReferences": [
{
"link": "http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/vuln-agent-fwd-overflow.html",
"title": "CVE-2017-6542"
}
]
},
"category": "Local",
"displayName": "PuTTY ssh_agent_channel_data Function Integer Overflow Vulnerability",
"id": "370361",
"impact": "Successful exploitation could allow remote attackers to have unspecified impact via a large length value in an agent protocol message.",
"remediation": "Customers are advised to upgrade toPuTTY 0.68 or later version in order to remediate this vulnerability.",
"resourceDetails": {
"id": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/DEMORG/providers/Microsoft.Compute/virtualMachines/vm2",
"source": "Azure"
},
"status": {
"code": "Unhealthy",
"severity": "Medium"
},
"timeGenerated": "2021-02-02T12:36:50.779Z"
}
}
Definitions
| Name | Description |
|---|---|
|
Assessed |
Sub-assessment resource type |
|
Common. |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
|
Common. |
The error detail. |
|
Container |
Additional context fields for container registry Vulnerability assessment |
|
created |
The type of identity that created the resource. |
| CVE |
CVE details |
| CVSS |
CVSS details |
|
Error |
The resource management error additional info. |
|
Security |
Security sub-assessment on a resource |
|
Server |
Additional context fields for server vulnerability assessment |
| Severity |
The sub-assessment severity level |
|
Sql |
Details of the resource that was assessed |
|
Sub |
Status of the sub-assessment |
|
Sub |
Programmatic code for the status of the assessment |
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Vendor |
Vendor reference |
AssessedResourceType
Sub-assessment resource type
| Value | Description |
|---|---|
| SqlServerVulnerability |
SqlServerVulnerability |
| ContainerRegistryVulnerability |
ContainerRegistryVulnerability |
| ServerVulnerability |
ServerVulnerability |
| ServerVulnerabilityAssessment |
ServerVulnerabilityAssessment |
Common.CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
| Name | Type | Description |
|---|---|---|
| error.additionalInfo |
The error additional info. |
|
| error.code |
string |
The error code. |
| error.details |
The error details. |
|
| error.message |
string |
The error message. |
| error.target |
string |
The error target. |
Common.CloudErrorBody
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ContainerRegistryVulnerabilityProperties
Additional context fields for container registry Vulnerability assessment
| Name | Type | Description |
|---|---|---|
| assessedResourceType |
string:
Container |
Sub-assessment resource type |
| cve |
CVE[] |
List of CVEs |
| cvss |
<string, CVSS> |
Dictionary from cvss version to cvss details object |
| imageDigest |
string |
Digest of the vulnerable image |
| patchable |
boolean |
Indicates whether a patch is available or not |
| publishedTime |
string (date-time) |
Published time |
| repositoryName |
string |
Name of the repository which the vulnerable image belongs to |
| type |
string |
Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability |
| vendorReferences |
Vendor reference |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
CVE
CVE details
| Name | Type | Description |
|---|---|---|
| link |
string |
Link url |
| title |
string |
CVE title |
CVSS
CVSS details
| Name | Type | Description |
|---|---|---|
| base |
number (float) |
CVSS base |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
SecuritySubAssessment
Security sub-assessment on a resource
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
The name of the resource |
| properties.additionalData | AdditionalData: |
Details of the sub-assessment |
| properties.category |
string |
Category of the sub-assessment |
| properties.description |
string |
Human readable description of the assessment status |
| properties.displayName |
string |
User friendly display name of the sub-assessment |
| properties.id |
string |
Vulnerability ID |
| properties.impact |
string |
Description of the impact of this sub-assessment |
| properties.remediation |
string |
Information on how to remediate this sub-assessment |
| properties.resourceDetails |
Common. |
Details of the resource that was assessed |
| properties.status |
Status of the sub-assessment |
|
| properties.timeGenerated |
string (date-time) |
The date and time the sub-assessment was generated |
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
ServerVulnerabilityProperties
Additional context fields for server vulnerability assessment
| Name | Type | Description |
|---|---|---|
| assessedResourceType |
string:
Server |
Sub-assessment resource type |
| cve |
CVE[] |
List of CVEs |
| cvss |
<string, CVSS> |
Dictionary from cvss version to cvss details object |
| patchable |
boolean |
Indicates whether a patch is available or not |
| publishedTime |
string (date-time) |
Published time |
| threat |
string |
Threat name |
| type |
string |
Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered |
| vendorReferences |
Vendor reference |
Severity
The sub-assessment severity level
| Value | Description |
|---|---|
| Low |
Low |
| Medium |
Medium |
| High |
High |
| Critical |
Critical |
SqlServerVulnerabilityProperties
Details of the resource that was assessed
| Name | Type | Description |
|---|---|---|
| assessedResourceType |
string:
Sql |
Sub-assessment resource type |
| query |
string |
The T-SQL query that runs on your SQL database to perform the particular check |
| type |
string |
The resource type the sub assessment refers to in its resource details |
SubAssessmentStatus
Status of the sub-assessment
| Name | Type | Description |
|---|---|---|
| cause |
string |
Programmatic code for the cause of the assessment status |
| code |
Programmatic code for the status of the assessment |
|
| description |
string |
Human readable description of the assessment status |
| severity |
The sub-assessment severity level |
SubAssessmentStatusCode
Programmatic code for the status of the assessment
| Value | Description |
|---|---|
| Healthy |
The resource is healthy |
| Unhealthy |
The resource has a security issue that needs to be addressed |
| NotApplicable |
Assessment for this resource did not happen |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |
VendorReference
Vendor reference
| Name | Type | Description |
|---|---|---|
| link |
string |
Link url |
| title |
string |
Link title |