Secure Application Lifecycle - Part 2- Secure DevOps Kit for Azure (AzSK)

Published Jan 19 2021 06:18 PM 4,084 Views
Microsoft

In my previous blog I addressed the issue of managing credentials in the code and presented two different alternatives to secure it. In this post, I will focus on Azure subscription security health and its challenge. I could summarize the subscription security health challenges as follows:

  • New resources are deployed to Azure subscriptions all the time, especially if the company has many developers and DevOps working on the same subscription.
  • Conducting subscription security health checks frequently for many subscriptions to make sure all the resources within the subscriptions follow the security best practices.
  • For a big subscription, a manual check can be challenging.

Of course, there is an option to develop manual security checks as the scripts and run them on the subscription. However maintaining such a tool and updating it would be a nightmare, especially as the company adapts more resources type in the subscription.

Wouldn't it be nice if there was a tool that I could run against the subscription? And it could come back with a list of security issues and even give me the option to fix them automatically? Fortunately, this tool exists, and it is called a secure DevOps kit for Azure or AzSK.

magdysalem_0-1611108265970.png

What is Secure DevOps kit (AzSK)?

  • Secure DevOps kit was an internal tool for Microsoft and was developed to help Microsoft internal teams to move to Azure quicker on more easily.
  •  It is an open-source tool and not an official product.
  • Microsoft released this tool so it can share Azure cloud security best practices with the community.
  • Both the code and documentation can be found on GitHub.
  • It allows the option to customize these is scripts so they can match company needs

AzSK Focus Area:

  • Secure the subscription: It can run global subscription health checks then it will come back with a list of improvements. Then I can go ahead and apply these improvements manually or automatically.
  • Integrate Security into CICD:  These security tests can be integrated into the company's continuous integration on continuous delivery pipelines.
  • Enable Secure Development: It enables secure development. There is a visual extension that can be installed on the developers' machine. It adds security intelligence to the developers' IDE, so developers will be presented with the security best practices at the time of development.
  • Continuous Assurance: It has the option to integrate these security tests with Azure automation, so this test can be run automatically as part of Azure automation process.
  • Alerting & Monitoring: It will provide verbal’s alerting and monitoring data where users can implement it as part of Azure monitor.
  • Security Telemetry in App Insights: It can write security telemetry information to an instance of Application Insights.

How does it work?

In the subscription, I can have different azure services like Azure SQL Server, virtual machines, storage accounts, Azure key, Walt Instances, API management instances ..etc, there are few options to user AzSK tool

  • Running a few security tests against the subscription.
  •  Performing all these tests on come back with the test result. The test result is a CSV file.
  •  Automatically fix the issues for us.

NOTE: Not all the issues found can be fixed automatically. DevOps Admin will need to fix them manually.

magdysalem_1-1611108266002.png

Setting up AzSK

All the requirement and step by step instruction can be found here

magdysalem_2-1611108266068.png

I will need the following Pre-requisites:

  • PowerShell 5.0 or higher.
  • Windows OS

magdysalem_3-1611108266128.png

To Install the Secure DevOps Kit for Azure (AzSK) PS module:

 

 

 

 

Install-Module AzSK -Scope CurrentUser

 

 

 

 

Demo: Running Security Validation Tests (SVT) with AzSK

I am going to use the tool to scan on Azure subscription for Security Health. I will also use the tool to scan a resource group for security health. The resource group will have the following

  • Storage Account
  •  Azure SQL Database.
  • Virtual Machine
  •  Azure Key Vault
  •  Azure Cosmos DB

The following the azSK command will run security scans against the subscription.

 

 

 

 

Get-AzSKSubscriptionSecurityStatus -SubscriptionId '<subscriptionId>' --GenerateFixScript

 

 

 

 

 

magdysalem_4-1611108266198.png

Once the command is finished it will open an explorer window and show the result.

magdysalem_5-1611108266209.png

The SecurityReport file will show a list of the subscription level test, which were executed, and its result. For example, there is a test to make sure the admin owners off.

magdysalem_6-1611108266285.png

Also, since I used “GenerateFixScript” flag, there is a folder calls “FixControlScript” and if I opened this folder I can see Powershell fix script

magdysalem_7-1611108266295.png

In this second test, I will run the AzSK command against a resource group

 

 

 

 

Get-AzSKAzureServicesSecurityStatus -SubscriptionId <SubscriptionId> -ResourceGroupNames <rgname>

 

 

 

 

 

magdysalem_8-1611108266372.png

Like the last test, AzSK  command will open the result folder where I can find the security scan result report

magdysalem_9-1611108266382.png

magdysalem_10-1611108266464.png

Also, there will be a “FixControlScript” folder where I will find the “RunFixScript” file

magdysalem_11-1611108266473.png

If I edit the file I could see the script and how it will attempt to fix the problem

magdysalem_12-1611108266491.png

Also if I checked the result folder again I could see a “security-validation-rg” folder that contains logs for each azure service that exists under the resource group. The log will contain information about the test and results that executed against the resource.

magdysalem_13-1611108266505.png

Summary

AzSK enables us to run security health checks against our subscriptions or resource groups. The tool will give a report and also an option to automatically fix issues that are found. In our next blog, I will discuss Azure sentinel.

 

 

4 Comments
New Contributor

The link to the kit is wrong:

unsafe:auto:blank
Microsoft

Thank you @Tomasz Wiśniewski  I fixed the link

Occasional Visitor

Unfortunately, it seems it will be deprecated soon according to this page : IMPORTANT: DevOps Kit (AzSK) is being sunset by end of FY21. More details here | AzSK website

Microsoft

Azure Tenant Security Solution (AzTS) is the way to go, now.

%3CLINGO-SUB%20id%3D%22lingo-sub-2077225%22%20slang%3D%22en-US%22%3ESecure%20DevOps%20Kit%20for%20Azure%20(AzSK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2077225%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20my%20previous%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fcore-infrastructure-and-security%2Fsecure-application-lifecycle-part-1-using-credscan%2Fba-p%2F1986960%22%20target%3D%22_self%22%3Eblog%3C%2FA%3E%26nbsp%3BI%20addressed%20the%20issue%20of%20managing%20credentials%20in%20the%20code%20and%20presented%20two%20different%20alternatives%20to%20secure%20it.%20In%20this%20post%2C%20I%20will%20focus%20on%20Azure%20subscription%20security%20health%20and%20its%20challenge.%20I%20could%20summarize%20the%20subscription%20security%20health%20challenges%20as%20follows%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ENew%20resources%20are%20deployed%20to%20Azure%20subscriptions%20all%20the%20time%2C%20especially%20if%20the%20company%20has%20many%20developers%20and%20DevOps%20working%20on%20the%20same%20subscription.%3C%2FLI%3E%0A%3CLI%3EConducting%20subscription%20security%20health%20checks%20frequently%20for%20many%20subscriptions%20to%20make%20sure%20all%20the%20resources%20within%20the%20subscriptions%20follow%20the%20security%20best%20practices.%3C%2FLI%3E%0A%3CLI%3EFor%20a%20big%20subscription%2C%20a%20manual%20check%20can%20be%20challenging.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EOf%20course%2C%20there%20is%20an%20option%20to%20develop%20manual%20security%20checks%20as%20the%20scripts%20and%20run%20them%20on%20the%20subscription.%20However%20maintaining%20such%20a%20tool%20and%20updating%20it%20would%20be%20a%20nightmare%2C%20especially%20as%20the%20company%20adapts%20more%20resources%20type%20in%20the%20subscription.%3C%2FP%3E%0A%3CP%3EWouldn't%20it%20be%20nice%20if%20there%20was%20a%20tool%20that%20I%20could%20run%20against%20the%20subscription%3F%20And%20it%20could%20come%20back%20with%20a%20list%20of%20security%20issues%20and%20even%20give%20me%20the%20option%20to%20fix%20them%20automatically%3F%20Fortunately%2C%20this%20tool%20exists%2C%20and%20it%20is%20called%20a%20secure%20DevOps%20kit%20for%20Azure%20or%20AzSK.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_0-1611108265970.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247632iF300EC634DE692C0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_0-1611108265970.png%22%20alt%3D%22magdysalem_0-1611108265970.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1947099291%22%20id%3D%22toc-hId-1947099288%22%20id%3D%22toc-hId-1947099288%22%20id%3D%22toc-hId-1947099288%22%20id%3D%22toc-hId-1947099288%22%20id%3D%22toc-hId-1947099288%22%20id%3D%22toc-hId-1947099288%22%3EWhat%20is%20Secure%20DevOps%20kit%20(AzSK)%3F%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3ESecure%20DevOps%20kit%20was%20an%20internal%20tool%20for%20Microsoft%20and%20was%20developed%20to%20help%20Microsoft%20internal%20teams%20to%20move%20to%20Azure%20quicker%20on%20more%20easily.%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BIt%20is%20an%20open-source%20tool%20and%20not%20an%20official%20product.%3C%2FLI%3E%0A%3CLI%3EMicrosoft%20released%20this%20tool%20so%20it%20can%20share%20Azure%20cloud%20security%20best%20practices%20with%20the%20community.%3C%2FLI%3E%0A%3CLI%3EBoth%20the%20code%20and%20documentation%20can%20be%20found%20on%20GitHub.%3C%2FLI%3E%0A%3CLI%3EIt%20allows%20the%20option%20to%20customize%20these%20is%20scripts%20so%20they%20can%20match%20company%20needs%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId-139644828%22%20id%3D%22toc-hId-139644825%22%20id%3D%22toc-hId-139644825%22%20id%3D%22toc-hId-139644825%22%20id%3D%22toc-hId-139644825%22%20id%3D%22toc-hId-139644825%22%20id%3D%22toc-hId-139644825%22%3EAzSK%20Focus%20Area%3A%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3ESecure%20the%20subscription%3A%20It%20can%20run%20global%20subscription%20health%20checks%20then%20it%20will%20come%20back%20with%20a%20list%20of%20improvements.%20Then%20I%20can%20go%20ahead%20and%20apply%20these%20improvements%20manually%20or%20automatically.%3C%2FLI%3E%0A%3CLI%3EIntegrate%20Security%20into%20CICD%3A%20%26nbsp%3BThese%20security%20tests%20can%20be%20integrated%20into%20the%20company's%20continuous%20integration%20on%20continuous%20delivery%20pipelines.%3C%2FLI%3E%0A%3CLI%3EEnable%20Secure%20Development%3A%20It%20enables%20secure%20development.%20There%20is%20a%20visual%20extension%20that%20can%20be%20installed%20on%20the%20developers'%20machine.%20It%20adds%20security%20intelligence%20to%20the%20developers'%20IDE%2C%20so%20developers%20will%20be%20presented%20with%20the%20security%20best%20practices%20at%20the%20time%20of%20development.%3C%2FLI%3E%0A%3CLI%3EContinuous%20Assurance%3A%20It%20has%20the%20option%20to%20integrate%20these%20security%20tests%20with%20Azure%20automation%2C%20so%20this%20test%20can%20be%20run%20automatically%20as%20part%20of%20Azure%20automation%20process.%3C%2FLI%3E%0A%3CLI%3EAlerting%20%26amp%3B%20Monitoring%3A%20It%20will%20provide%20verbal%E2%80%99s%20alerting%20and%20monitoring%20data%20where%20users%20can%20implement%20it%20as%20part%20of%20Azure%20monitor.%3C%2FLI%3E%0A%3CLI%3ESecurity%20Telemetry%20in%20App%20Insights%3A%20It%20can%20write%20security%20telemetry%20information%20to%20an%20instance%20of%20Application%20Insights.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId--1667809635%22%20id%3D%22toc-hId--1667809638%22%20id%3D%22toc-hId--1667809638%22%20id%3D%22toc-hId--1667809638%22%20id%3D%22toc-hId--1667809638%22%20id%3D%22toc-hId--1667809638%22%20id%3D%22toc-hId--1667809638%22%3EHow%20does%20it%20work%3F%3C%2FH3%3E%0A%3CP%3EIn%20the%20subscription%2C%20I%20can%20have%20different%20azure%20services%20like%20Azure%20SQL%20Server%2C%20virtual%20machines%2C%20storage%20accounts%2C%20Azure%20key%2C%20Walt%20Instances%2C%20API%20management%20instances%20..etc%2C%20there%20are%20few%20options%20to%20user%20AzSK%20tool%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ERunning%20a%20few%20security%20tests%20against%20the%20subscription.%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BPerforming%20all%20these%20tests%20on%20come%20back%20with%20the%20test%20result.%20The%20test%20result%20is%20a%20CSV%20file.%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BAutomatically%20fix%20the%20issues%20for%20us.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3A%20Not%20all%20the%20issues%20found%20can%20be%20fixed%20automatically.%20DevOps%20Admin%20will%20need%20to%20fix%20them%20manually.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_1-1611108266002.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247633i00AFAB7A8E057CAF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_1-1611108266002.png%22%20alt%3D%22magdysalem_1-1611108266002.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-819703198%22%20id%3D%22toc-hId-819703195%22%20id%3D%22toc-hId-819703195%22%20id%3D%22toc-hId-819703195%22%20id%3D%22toc-hId-819703195%22%20id%3D%22toc-hId-819703195%22%20id%3D%22toc-hId-819703195%22%3ESetting%20up%20AzSK%3C%2FH3%3E%0A%3CP%3EAll%20the%20requirement%20and%20step%20by%20step%20instruction%20can%20be%20found%20%3CA%20href%3D%22about%3Ablank%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fazsk.azurewebsites.net%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_2-1611108266068.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247634iC316E4666F84FBDB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_2-1611108266068.png%22%20alt%3D%22magdysalem_2-1611108266068.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20will%20need%20the%20following%20Pre-requisites%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EPowerShell%205.0%20or%20higher.%3C%2FLI%3E%0A%3CLI%3EWindows%20OS%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_3-1611108266128.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247636i454B6029D182F96A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_3-1611108266128.png%22%20alt%3D%22magdysalem_3-1611108266128.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20Install%20the%20Secure%20DevOps%20Kit%20for%20Azure%20(AzSK)%20PS%20module%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EInstall-Module%20AzSK%20-Scope%20CurrentUser%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--987751265%22%20id%3D%22toc-hId--987751268%22%20id%3D%22toc-hId--987751268%22%20id%3D%22toc-hId--987751268%22%20id%3D%22toc-hId--987751268%22%20id%3D%22toc-hId--987751268%22%20id%3D%22toc-hId--987751268%22%3EDemo%3A%20Running%20Security%20Validation%20Tests%20(SVT)%20with%20AzSK%3C%2FH3%3E%0A%3CP%3EI%20am%20going%20to%20use%20the%20tool%20to%20scan%20on%20Azure%20subscription%20for%20Security%20Health.%20I%20will%20also%20use%20the%20tool%20to%20scan%20a%20resource%20group%20for%20security%20health.%20The%20resource%20group%20will%20have%20the%20following%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EStorage%20Account%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BAzure%20SQL%20Database.%3C%2FLI%3E%0A%3CLI%3EVirtual%20Machine%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BAzure%20Key%20Vault%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BAzure%20Cosmos%20DB%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20following%20the%20azSK%20command%20will%20run%20security%20scans%20against%20the%20subscription.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EGet-AzSKSubscriptionSecurityStatus%20-SubscriptionId%20'%3CSUBSCRIPTIONID%3E'%20--GenerateFixScript%3C%2FSUBSCRIPTIONID%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_4-1611108266198.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247637i8015F79AE60E48FB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_4-1611108266198.png%22%20alt%3D%22magdysalem_4-1611108266198.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOnce%20the%20command%20is%20finished%20it%20will%20open%20an%20explorer%20window%20and%20show%20the%20result.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_5-1611108266209.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247635i32260017F7362100%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_5-1611108266209.png%22%20alt%3D%22magdysalem_5-1611108266209.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20SecurityReport%20file%20will%20show%20a%20list%20of%20the%20subscription%20level%20test%2C%20which%20were%20executed%2C%20and%20its%20result.%20For%20example%2C%20there%20is%20a%20test%20to%20make%20sure%20the%20admin%20owners%20off.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_6-1611108266285.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247639i1B7047F850E21383%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_6-1611108266285.png%22%20alt%3D%22magdysalem_6-1611108266285.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlso%2C%20since%20I%20used%20%E2%80%9CGenerateFixScript%E2%80%9D%20flag%2C%20there%20is%20a%20folder%20calls%20%E2%80%9CFixControlScript%E2%80%9D%20and%20if%20I%20opened%20this%20folder%20I%20can%20see%20Powershell%20fix%20script%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_7-1611108266295.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247638i9F82FE7FCD825D4D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_7-1611108266295.png%22%20alt%3D%22magdysalem_7-1611108266295.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20this%20second%20test%2C%20I%20will%20run%20the%20AzSK%20command%20against%20a%20resource%20group%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EGet-AzSKAzureServicesSecurityStatus%20-SubscriptionId%20%3CSUBSCRIPTIONID%3E%20-ResourceGroupNames%20%3CRGNAME%3E%3C%2FRGNAME%3E%3C%2FSUBSCRIPTIONID%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_8-1611108266372.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247640iE3475BE77E6711D5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_8-1611108266372.png%22%20alt%3D%22magdysalem_8-1611108266372.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ELike%20the%20last%20test%2C%20AzSK%26nbsp%3B%20command%20will%20open%20the%20result%20folder%20where%20I%20can%20find%20the%20security%20scan%20result%20report%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_9-1611108266382.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247641i9F6DBF09425C43AC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_9-1611108266382.png%22%20alt%3D%22magdysalem_9-1611108266382.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_10-1611108266464.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247643iA43F25C6B9322917%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_10-1611108266464.png%22%20alt%3D%22magdysalem_10-1611108266464.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlso%2C%20there%20will%20be%20a%20%E2%80%9CFixControlScript%E2%80%9D%20folder%20where%20I%20will%20find%20the%20%E2%80%9CRunFixScript%E2%80%9D%20file%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_11-1611108266473.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247642i444C920BED0ED444%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_11-1611108266473.png%22%20alt%3D%22magdysalem_11-1611108266473.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20I%20edit%20the%20file%20I%20could%20see%20the%20script%20and%20how%20it%20will%20attempt%20to%20fix%20the%20problem%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_12-1611108266491.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247645i9E57DCFC6F3127C7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_12-1611108266491.png%22%20alt%3D%22magdysalem_12-1611108266491.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlso%20if%20I%20checked%20the%20result%20folder%20again%20I%20could%20see%20a%20%E2%80%9Csecurity-validation-rg%E2%80%9D%20folder%20that%20contains%20logs%20for%20each%20azure%20service%20that%20exists%20under%20the%20resource%20group.%20The%20log%20will%20contain%20information%20about%20the%20test%20and%20results%20that%20executed%20against%20the%20resource.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22magdysalem_13-1611108266505.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247644iBCFD7F4123B56A63%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22magdysalem_13-1611108266505.png%22%20alt%3D%22magdysalem_13-1611108266505.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESummary%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAzSK%20enables%20us%20to%20run%20security%20health%20checks%20against%20our%20subscriptions%20or%20resource%20groups.%20The%20tool%20will%20give%20a%20report%20and%20also%20an%20option%20to%20automatically%20fix%20issues%20that%20are%20found.%20In%20our%20next%20blog%2C%20I%20will%20discuss%20Azure%20sentinel.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2077225%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screenshot_3.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247647i05AA24ED5D9CC2A5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot_3.jpg%22%20alt%3D%22Screenshot_3.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20my%20previous%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fcore-infrastructure-and-security%2Fsecure-application-lifecycle-part-1-using-credscan%2Fba-p%2F1986960%22%20target%3D%22_self%22%3Eblog%3C%2FA%3E%26nbsp%3BI%20addressed%20the%20issue%20of%20managing%20credentials%20in%20the%20code%20and%20presented%20two%20different%20alternatives%20to%20secure%20it.%20In%20this%20post%2C%20I%20will%20focus%20on%20Azure%20subscription%20security%20health%20and%20its%20challenge%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2077225%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Emagdysalem%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2078142%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20DevOps%20Kit%20for%20Azure%20(AzSK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2078142%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20link%20to%20the%20kit%20is%20wrong%3A%3C%2FP%3E%3CPRE%3Eunsafe%3Aauto%3Ablank%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2078781%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20DevOps%20Kit%20for%20Azure%20(AzSK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2078781%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242567%22%20target%3D%22_blank%22%3E%40Tomasz%20Wi%C5%9Bniewski%3C%2FA%3E%26nbsp%3B%20I%20fixed%20the%20link%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2107365%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20Application%20Lifecycle%20-%20Part%202-%20Secure%20DevOps%20Kit%20for%20Azure%20(AzSK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2107365%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazsk%2FDevOpsKit-docs%2Ftree%2Fmaster%2F13-Tenant%2520Security%2520Solution%2520Setup%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Tenant%20Security%20Solution%20(AzTS)%3C%2FA%3E%20is%20the%20way%20to%20go%2C%20now.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Version history
Last update:
‎Jan 25 2021 02:27 PM
Updated by: