-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[DoNotMerge] Introducing subAssessments type (Microsoft.Security provider) #6422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5810c80
Add sub-assessment resource to Microsoft.Security provider
orparnes dc4dc68
Fix typos, Add custom words, Descriptions, Renames, Examples
orparnes 884ac56
Add: ResourceDetails, custom words. Fix: examples, typos.
orparnes cd0227d
Rename "extendedData" to "additionalData" to be aligned with "assessm…
orparnes 43468cc
Renames
orparnes f5bd294
Resolve some issues, set spaces instead of tabs,
orparnes b4e8dab
Fix example
orparnes 0917ba8
x-ms-enum fix
orparnes 92f4a95
Remove some fields
orparnes a81cc54
Merge branch 'master' into master
orparnes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...Security/preview/2019-01-01-preview/examples/SubAssessments/GetSubAssessment_example.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
| "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b", | ||
| "subAssessmentName": "8c98f353-8b41-4e77-979b-6adeecd5d168" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.ContainerRegistry/registries/myRegistry/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b/subAssessments/8c98f353-8b41-4e77-979b-6adeecd5d168", | ||
| "name": "8c98f353-8b41-4e77-979b-6adeecd5d168", | ||
| "type": "Microsoft.Security/assessments/subAssessments", | ||
| "properties": { | ||
| "displayName": "'Back Orifice' Backdoor", | ||
| "id": "1001", | ||
| "status": { | ||
| "code": "Unhealthy", | ||
| "cause": "", | ||
| "severity": "High", | ||
| "description": "The resource is unhealthy" | ||
| }, | ||
| "resourceDetails": { | ||
| "source": "Azure", | ||
| "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.ContainerRegistry/registries/myRegistry/repository/myRepo/imageDigest/c186fc44-3154-4ce2-ba18-b719d895c3b0/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b/subAssessments/8c98f353-8b41-4e77-979b-6adeecd5d168" | ||
| }, | ||
| "remediation": "Use a recent anti-virus program to remove this backdoor and check your system regularly with anti-virus software.", | ||
| "impact": "3", | ||
| "category": "Backdoors and trojan horses", | ||
| "description": "The backdoor 'Back Orifice' was detected on this system. The presence of this backdoor indicates that your system has already been compromised. Unauthorized users can access your host at any time. Unauthorized users can take complete control of the host and manipulate data. They can steal the data or even wipe out the host.", | ||
| "timeGenerated": "2019-06-23T12:20:08.7644808Z", | ||
| "additionalData": { | ||
| "assessedResourceType": "ContainerRegistryVulnerability", | ||
| "imageDigest": "c186fc44-3154-4ce2-ba18-b719d895c3b0", | ||
| "repositoryName": "myRepo", | ||
| "type": "Vulnerability", | ||
| "cvss": { | ||
| "2.0": { | ||
| "base": 10 | ||
| }, | ||
| "3.0": { | ||
| "base": 10 | ||
| } | ||
| }, | ||
| "patchable": true, | ||
| "cve": [{ | ||
| "title": "CVE-2019-12345", | ||
| "link": "http://contoso.com" | ||
| }], | ||
| "publishedTime": "2018-01-01T00:00:00.0000000Z", | ||
| "vendorReferences": [{ | ||
| "title": "Reference_1", | ||
| "link": "http://contoso.com" | ||
| }] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
61 changes: 61 additions & 0 deletions
61
...curity/preview/2019-01-01-preview/examples/SubAssessments/ListSubAssessments_example.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
| "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [{ | ||
| "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.ContainerRegistry/registries/myRegistry/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b/subAssessments/8c98f353-8b41-4e77-979b-6adeecd5d168", | ||
| "name": "8c98f353-8b41-4e77-979b-6adeecd5d168", | ||
| "type": "Microsoft.Security/assessments/subAssessments", | ||
| "properties": { | ||
| "displayName": "'Back Orifice' Backdoor", | ||
| "id": "1001", | ||
| "status": { | ||
| "code": "Unhealthy", | ||
| "cause": "", | ||
| "severity": "High", | ||
| "description": "The resource is unhealthy" | ||
| }, | ||
| "resourceDetails": { | ||
| "source": "Azure", | ||
| "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.ContainerRegistry/registries/myRegistry/repository/myRepo/imageDigest/c186fc44-3154-4ce2-ba18-b719d895c3b0/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b/subAssessments/8c98f353-8b41-4e77-979b-6adeecd5d168" | ||
| }, | ||
| "remediation": "Use a recent anti-virus program to remove this backdoor and check your system regularly with anti-virus software.", | ||
| "impact": "3", | ||
| "category": "Backdoors and trojan horses", | ||
| "description": "The backdoor 'Back Orifice' was detected on this system. The presence of this backdoor indicates that your system has already been compromised. Unauthorized users can access your host at any time. Unauthorized users can take complete control of the host and manipulate data. They can steal the data or even wipe out the host.", | ||
| "timeGenerated": "2019-06-23T12:20:08.7644808Z", | ||
| "additionalData": { | ||
| "assessedResourceType": "ContainerRegistryVulnerability", | ||
| "imageDigest": "c186fc44-3154-4ce2-ba18-b719d895c3b0", | ||
| "repositoryName": "myRepo", | ||
| "type": "Vulnerability", | ||
| "cvss": { | ||
| "2.0": { | ||
| "base": 10 | ||
| }, | ||
| "3.0": { | ||
| "base": 10 | ||
| } | ||
| }, | ||
| "patchable": true, | ||
| "cve": [{ | ||
| "title": "CVE-2019-12345", | ||
| "link": "http://contoso.com" | ||
| }], | ||
| "publishedTime": "2018-01-01T00:00:00.0000000Z", | ||
| "vendorReferences": [{ | ||
| "title": "Reference_1", | ||
| "link": "http://contoso.com" | ||
| }] | ||
| } | ||
| } | ||
| }] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.