%3CLINGO-SUB%20id%3D%22lingo-sub-1577947%22%20slang%3D%22en-US%22%3EBuilt-in%20vulnerability%20assessment%20for%20VMs%20in%20Azure%20Security%20Center%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1577947%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--1295246774%22%20id%3D%22toc-hId--1295246774%22%20id%3D%22toc-hId--1295246774%22%3EWhat%20is%20the%20built-in%20vulnerability%20assessment%20tool%20in%20Azure%20Security%20Center%3F%3C%2FH2%3E%0A%3CP%3EThere%20are%20several%20options%20for%20deploying%20a%20vulnerability%20assessment%20solutions%20for%20Azure%20VMs.%20If%20you're%20using%20Security%20Center%E2%80%99s%20standard%20tier%20for%20VMs%2C%20you%20can%20quickly%20deploy%20a%20vulnerability%20assessment%20solution%20powered%20by%20Qualys%20with%20no%20additional%20configuration%20or%20extra%20costs.%20In%20this%20blog%20post%2C%20I%20will%20focus%20on%20a%20the%20built-in%20capabilities%20as%20you%20can%20see%20on%20the%20left%20side%20in%20the%20image%20below.%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%22asc-va-options.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211730i0BC321DE587C156F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-options.PNG%22%20alt%3D%22asc-va-options.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EQualys%E2%80%99s%20scanner%20is%20the%20leading%20tool%20for%20identifying%20vulnerabilities%20in%20your%20Azure%20virtual%20machines.%20Once%20this%20integration%20is%20enabled%2C%20Qualys%20continually%20assesses%20all%20the%20installed%20applications%20on%20a%20virtual%20machine%20to%20find%20vulnerabilities%20and%20presents%20its%20findings%20in%20the%20Security%20Center%20console.%20This%20offering%20is%20available%20to%20all%20commercial%20Azure%20customers%20that%20have%20enabled%20Azure%20Security%20Center%20standard%20pricing%20tier%20for%20VMs.%20In%20this%20post%2C%20I%20will%20focus%20on%20vulnerability%20scanning%20of%20virtual%20machines%2C%20although%20standard%20tier%20also%20offers%20scanning%20for%20both%20containers%20and%20container%20registries%20-%20learn%20more%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fcontainer-security%23vulnerability-management---scanning-container-images%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1192266059%22%20id%3D%22toc-hId-1192266059%22%20id%3D%22toc-hId-1192266059%22%3EHow%20does%20the%20integration%20work%3F%3C%2FH2%3E%0A%3CP%3EOur%20integrated%20vulnerability%20scanner%20is%20based%20on%205%20different%20stages%3A%20from%20discovery%20to%20findings.%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-center%22%20image-alt%3D%22asc-va-integration.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211386i76C51700638AE02B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-integration.png%22%20alt%3D%22asc-va-integration.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%5B1%5D%20Discovery%3C%2FSTRONG%3E%20%E2%80%93%20To%20make%20this%20integration%20work%2C%20a%20policy%20named%20%E2%80%9Cvulnerability%20assessment%20should%20be%20enabled%20on%20virtual%20machines%E2%80%9D%20which%20is%20part%20of%20the%20%E2%80%9CASC%20default%E2%80%9D%20initiative%20must%20be%20enabled.%20Upon%20Azure%20Policy%20evaluation%2C%20we%20get%20the%20compliance%20data%20to%20identify%20potential%20and%20supported%20virtual%20machines%20which%20don%E2%80%99t%20have%20a%20vulnerability%20assessment%20solution%20deployed.%20Based%20on%20the%20result%2C%20we%20propagate%20the%20data%20into%20the%20recommendation%20so%20you%20can%20see%20all%20relevant%20virtual%20machines.%20Based%20on%20compliance%20data%2C%20we%20categorize%20the%20virtual%20machines%20as%20one%20of%20the%20following%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%E2%80%9Chealthy%E2%80%9D%20-%20VMs%20that%20have%20the%20extension%20installed%20and%20report%20data.%3C%2FLI%3E%0A%3CLI%3E%E2%80%9Cunhealthy%E2%80%9D%20-%20VMs%20which%20could%20support%20the%20extension%2C%20but%20which%20currently%20don%E2%80%99t%20have%20it.%3C%2FLI%3E%0A%3CLI%3E%22not%20applicable%E2%80%9D%20-%20Where%20the%20OS%20type%2Fimage%20is%20not%20supported%20(for%20example%2C%20a%20virtual%20machine%20running%20Network%20Virtual%20Appliance%20(NVA)%2C%20Databricks%2FAKS%20instances%20or%20Classic%20VMs).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%5B2%5D%20Deployment%3C%2FSTRONG%3E%20-%20This%20is%20the%20step%20where%20you%20can%20enable%20the%20integrated%20ASC%20vulnerability%20scanner%20by%20deploying%20the%20extension%20on%20your%20selected%20virtual%20machine%2Fs%20either%20by%20using%20ASC%20console%20and%20quick%20fix%20button%2C%20or%20by%20using%20an%20automated%20method%20(see%20a%20reference%20below%20for%20deployment%20at%20scale).%3C%2FP%3E%0A%3CP%3EPrerequisites%20for%20deploying%20the%20extension%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ERunning%20VM%20with%20a%20supported%20operating%20system%20version%20as%20mentioned%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fbuilt-in-vulnerability-assessment%23deploying-the-qualys-built-in-vulnerability-scanner%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EAzure%20VM%20agent%20installed%20and%20in%20healthy%20state.%3C%2FLI%3E%0A%3CLI%3ELog%20Analytics%20agent%20installed%20(formerly%20known%20as%20the%20Microsoft%20Monitoring%20Agent).%3C%2FLI%3E%0A%3CLI%3ETo%20install%20using%20the%20quick%20fix%20option%2C%20you'll%20need%20write%20permissions%20for%20any%20VM%20on%20which%20you%20want%20to%20deploy%20the%20extension.%20Like%20any%20other%20extension%2C%20this%20one%20runs%20on%20top%20of%20the%20Azure%20Virtual%20Machine%20agent.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EOnce%20all%20prerequisites%20are%20met%2C%20you%20should%20use%20our%20newly%20and%20consolidated%20recommendation%20%E2%80%9C%3CSTRONG%3EA%20vulnerability%20assessment%20solution%20should%20be%20enabled%20on%20your%20virtual%20machines%3C%2FSTRONG%3E%E2%80%9D.%20In%20this%20recommendation%2C%20you%20can%20choose%20to%20deploy%20ASC%20integrated%20vulnerability%20scanner%20or%203%3CSUP%3Erd%3C%2FSUP%3E%20party%20scanner%20(BYOL).%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-center%22%20image-alt%3D%22asc-va-recommendation.png%22%20style%3D%22width%3A%20906px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211387i13E42B0AE51AB1EB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-recommendation.png%22%20alt%3D%22asc-va-recommendation.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20recommendation%20installs%20the%20extension%20on%20unhealthy%20machines.%20Review%20the%20heathy%20and%20not%20applicable%20lists%20too.%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-center%22%20image-alt%3D%22asc-va-recommendation-list.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211388i7043A21E20C8AAD4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-recommendation-list.png%22%20alt%3D%22asc-va-recommendation-list.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20extension%20is%20deployed%2C%20you%20can%20see%20if%20it%20exists%2C%20by%20navigating%20to%20the%20VM%20page%20of%20the%20Azure%20portal%2C%20and%20selecting%20%E2%80%9Cextensions%E2%80%9D%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOn%20Windows%2C%20the%20extension%20is%20called%20%E2%80%9CWindowsAgent.AzureSecurityCenter%E2%80%9D%20and%20the%20provider%20name%20is%20%22Qualys%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EOn%20Linux%2C%20the%20extension%20is%20called%20LinuxAgent.AzureSecurityCenter%20and%20the%20provider%20name%20is%20%22Qualys%E2%80%9D%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22asc-va-extension.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211389iC47982D66F2EF1A6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-extension.png%22%20alt%3D%22asc-va-extension.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELike%20the%20Log%20Analytics%20agent%20itself%20and%20all%20other%20Azure%20extensions%2C%20minor%20updates%20of%20the%20vulnerability%20scanner%20may%20automatically%20happen%20in%20the%20background%3B%20the%20VA%20agent%20is%20self-healing%20and%20self-updating%20to%20counter%20common%20issues.%20All%20agents%20and%20extensions%20are%20tested%20extensively%20before%20being%20automatically%20deployed.%20On%20a%20virtual%20machine%20(on%20Windows%20for%20example)%2C%20you%20will%20see%20a%20process%20QualysAgent.exe%20and%20service%20%E2%80%9CQualys%20Cloud%20Agent%E2%80%9D%20running%3A%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-center%22%20image-alt%3D%22asc-va-agent.png%22%20style%3D%22width%3A%20673px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211390i3105085D39498B8A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-agent.png%22%20alt%3D%22asc-va-agent.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20deploying%20a%20vulnerability%20assessment%20solution%2C%20Security%20Center%20previously%20performed%20a%20validation%20check%20before%20deploying.%20The%20check%20was%20to%20confirm%20a%20marketplace%20SKU%20of%20the%20destination%20virtual%20machine.%3CBR%20%2F%3ERecently%2C%20the%20check%20was%20removed%20and%20you%20can%20now%20deploy%20vulnerability%20assessment%20tools%20to%20'custom'%20Windows%20and%20Linux%20machines.%20Custom%20images%20are%20ones%20that%20you've%20modified%20from%20the%20marketplace%20defaults.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%5B3%5D%20Scan%3C%2FSTRONG%3E%20-%20The%20gathered%20data%20collected%20by%20the%20agent%20includes%20many%20things%20for%20the%20baseline%20snapshot%20like%20network%20posture%2C%20operating%20system%20version%2C%20open%20ports%2C%20installed%20software%2C%20registry%20info%2C%20what%20patches%20are%20installed%2C%20environment%20variables%2C%20and%20metadata%20associated%20with%20files.%20The%20agent%20stores%20a%20snapshot%20on%20the%20agent%20host%20to%20quickly%20determine%20differences%20to%20the%20host%20metadata%20it%20collects.%20Such%20scans%20occur%20every%204%20hours%20and%20are%20performed%20per%20VM%2C%20where%20artifacts%20are%20collected%20and%20sent%20for%20analysis%20to%20the%20Qualys%20Cloud%20service%20in%20the%20defined%20region.%20For%20virtual%20machines%20created%20within%20European%20regions%2C%20the%20gathered%20information%20is%20sent%20securely%20to%20Qualys%20Cloud%20Service%20in%20the%20Netherlands.%20For%20all%20non-EU%20resources%2C%20data%20is%20sent%20for%20processing%20in%20the%20Qualys%20Cloud%20Service%20in%20the%20US.%3C%2FP%3E%0A%3CP%3EThe%20sent%20artifacts%20are%20considered%20as%20metadata%20and%20the%20same%20as%20the%20ones%20collected%20by%20%3CA%20href%3D%22https%3A%2F%2Fwww.qualys.com%2Fdocs%2Fqualys-cloud-agent-getting-started-guide.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EQualys%E2%80%99%20standalone%20cloud%20agent%3C%2FA%3E%20-%20Microsoft%20doesn't%20share%20customer%20details%20or%20any%20sensitive%20data%20with%20Qualys.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%5B4%5D%20Analysis%3C%2FSTRONG%3E%20%E2%80%93%20Qualys%20analyzes%20the%20metadata%2C%20registry%20keys%2C%20and%20other%20information%20and%20builds%20the%20findings%20per%20VM.%20Findings%20are%20sent%20to%20Azure%20Security%20Center%20matching%20customer%E2%80%99s%20ID%20and%20are%20removed%20from%20the%20Qualys%20Cloud.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%5B5%5D%20Findings%3C%2FSTRONG%3E%20%E2%80%93%20You%20can%20monitor%20vulnerabilities%20on%20your%20virtual%20machines%20as%20discovered%20by%20the%20ASC%20vulnerability%20scanner%20using%20a%20recommendation%20named%20%E2%80%9C%3CSTRONG%3EVulnerabilities%20in%20virtual%20machines%20should%20be%20remediated%E2%80%9D%20%3C%2FSTRONG%3Efound%20under%20the%20recommendations%20list.%20This%20recommendation%20is%20divided%20to%20the%20affected%20resources%20and%20security%20checks%20(also%20known%20as%20nested%20recommendations%20or%20sub-assessments).%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%22asc-va-findings.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211391iECC7528812D80DD2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-findings.png%22%20alt%3D%22asc-va-findings.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOn%20the%20affected%20resources%20section%2C%20you%20will%20find%20virtual%20machines%20categorized%20as%20unhealthy%2C%20healthy%2C%20and%20not%20applicable.%20The%20section%20named%20%E2%80%9CSecurity%20Checks%E2%80%9D%20shows%20the%20vulnerabilities%20found%20on%20the%20unhealthy%20resource.%20Findings%20are%20categorized%20by%20severity%20(high%2C%20medium%2C%20and%20low).%20Below%2C%20you%20can%20see%20the%20matching%20between%20ASC%20severity%20on%20the%20left%20and%20Qualys%E2%80%99%20severities%20on%20the%20right%3A%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-center%22%20image-alt%3D%22asc-va-severities.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211392iC0C5B616A462357B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22asc-va-severities.png%22%20alt%3D%22asc-va-severities.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20looking%20for%20a%20specific%20vulnerability%2C%20you%20can%20use%20the%20search%20field%20to%20filter%20the%20items%20based%20on%20ID%20or%20security%20check%20title.%20Selecting%20a%20security%20check%2C%20will%20open%20a%20window%20containing%20the%20vulnerability%20name%2C%20description%2C%20the%20impact%20on%20your%20resources%2C%20severity%2C%20if%20this%20could%20be%20resolved%20by%20applying%20patch%2C%20the%20CVSS%20base%20score%20(when%20the%20highest%20is%20the%20most%20severe%20one)%2C%20relevant%20CVEs.%20Then%2C%20you%20will%20also%20find%20the%20threat%2C%20remediation%20steps%2C%20additional%20references%20(if%20applicable)%20and%20the%20affected%20resource.%20Once%20you%20remediate%20the%20vulnerability%20on%20the%20affected%20resource%2C%20it%20will%20be%20removed%20from%20the%20recommendation%20page.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--615188404%22%20id%3D%22toc-hId--615188404%22%20id%3D%22toc-hId--615188404%22%3EDeployment%20at%20scale%3C%2FH2%3E%0A%3CP%3EIf%20you%20have%20large%20number%20of%20virtual%20machines%20and%20would%20like%20to%20automate%20deployment%20at%20scale%20of%20the%20ASC%20integrated%20scanner%2C%20we%E2%80%99ve%20got%20you%20covered!%20There%20are%20several%20ways%20to%20accomplish%20such%20deployment%20based%20on%20your%20business%20requirements.%20Some%20customers%20prefer%20to%20automate%20deployment%20by%20executing%20an%20ARM%20template%2C%20others%20prefer%20automation%20using%20Azure%20Automation%20or%20Azure%20Logic%20Apps%20and%20others%20by%20using%20Azure%20Policy%20for%20both%20automation%20and%20compliance.%20For%20all%20these%20scenarios%20and%20even%20beyond%2C%20we%20encourage%20you%20to%20visit%20our%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Security-Center%2Ftree%2Fmaster%2FRemediation%2520scripts%2FEnable%2520the%2520built-in%2520vulnerability%2520assessment%2520solution%2520on%2520virtual%2520machines%2520(powered%2520by%2520Qualys)%2FAzure%2520Policy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EASC%20%3C%2FA%3EGitHub%20community%20repository.%20There%2C%20you%20can%20find%20scripts%2C%20automations%20and%20other%20useful%20resources%20you%20can%20leverage%20throughout%20your%20ASC%20deployment.%20Some%20of%20the%20methods%20will%20deploy%20the%20extension%20on%20new%20machines%2C%20others%20cover%20existing%20ones%20as%20well.%20There%20are%20other%20scenarios%20where%20customers%20prefer%20to%20make%20API%20calls%20to%20trigger%20an%20installation.%20This%20is%20also%20possible%20by%20executing%20a%20PUT%20call%20to%20one%20of%20our%20REST%20APIs%2C%20passing%20the%20resource%20ID%20to%20the%20URL.%20You%20can%20also%20decide%20to%20combine%20multiple%20approaches.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EARM%20Deployment%3C%2FSTRONG%3E%20%E2%80%93%20This%20method%20is%20available%20on%20the%20%E2%80%9Cview%20recommendation%20logic%E2%80%9D%20if%20you%20decide%20to%20remediate%20unhealthy%20resources%20using%20Azure%20portal.%20The%20automatic%20recommendation%20script%20content%20includes%20the%20relevant%20ARM%20template%20you%20can%20leverage%20for%20your%20automation.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EDeployIfNotExists%20policy%20definition%3C%2FSTRONG%3E%20%E2%80%93%20We%20recently%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Security-Center%2Ftree%2Fmaster%2FRemediation%2520scripts%2FEnable%2520the%2520built-in%2520vulnerability%2520assessment%2520solution%2520on%2520virtual%2520machines%2520(powered%2520by%2520Qualys)%2FAzure%2520Policy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eadded%20a%20custom%20Azure%20Policy%20definition%3C%2FA%3E%20which%20can%20easily%20be%20deployed%20into%20your%20Azure%20environment%20and%20assigned%20at%20the%20relevant%20scope%20(resource%20group%2Fsubscription%2Fmanagement%20group).%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EPowerShell%20Script%3C%2FSTRONG%3E%20%E2%80%93%20This%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Security-Center%2Ftree%2Fmaster%2FRemediation%2520scripts%2FEnable%2520the%2520built-in%2520vulnerability%2520assessment%2520solution%2520on%2520virtual%2520machines%2520(powered%2520by%2520Qualys)%2FPowerShell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Escript%3C%2FA%3E%20can%20be%20used%20to%20deploy%20the%20extension%20for%20all%20unhealthy%20virtual%20machines%20and%20can%20be%20automated%20using%20Azure%20Automation%20for%20installation%20on%20new%20resources.%20The%20script%20finds%20all%20unhealthy%20machines%20discovered%20by%20the%20recommendation%20and%20executes%20an%20ARM%20call%20as%20mentioned%20in%20the%20first%20bullet.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAzure%20Logic%20Apps%3C%2FSTRONG%3E%20%E2%80%93%20This%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Security-Center%2Ftree%2Fmaster%2FWorkflow%2520automation%2FInstall-VulnAssesmentAgent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esample%3C%2FA%3E%20leverages%20another%20functionality%20available%20as%20part%20of%20Security%20Center%E2%80%99s%20standard%20tier%3A%20workflow%20automation.%20Once%20a%20new%20security%20recommendation%20is%20generated%20for%20a%20resource%2C%20a%20trigger%20calls%20a%20Logic%20App%20to%20install%20the%20agent.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EREST%20API%3C%2FSTRONG%3E%20%E2%80%93%20Calling%20an%20API%20for%20agent%20deployment%20is%20available%20as%20well.%20Perform%20a%20PUT%20request%20for%20the%20following%20URL%20by%20adding%20the%20relevant%20resource%20ID%3A%26nbsp%3B%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ehttps%3A%2F%2Fmanagement.azure.com%2FresourceId%2Fproviders%2FMicrosoft.Security%2FserverVulnerabilityAssessments%2Fdefault%3Fapi-Version%3D2015-06-01-preview%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1872324429%22%20id%3D%22toc-hId-1872324429%22%20id%3D%22toc-hId-1872324429%22%3ETroubleshooting%3C%2FH2%3E%0A%3CP%3EBelow%20you%20will%20find%20a%20checklist%20for%20your%20initial%20troubleshooting%20if%20you%20experience%20issues%20related%20to%20the%20ASC%20vulnerability%20scanner%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAre%20you%20running%20a%20supported%20OS%20version%3F%20Use%20the%20following%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fbuilt-in-vulnerability-assessment%23deploying-the-qualys-built-in-vulnerability-scanner%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elist%3C%2FA%3E%20to%20quickly%20identify%20if%20your%20VMs%20are%20running%20a%20supported%20operating%20system%20version.%3C%2FLI%3E%0A%3CLI%3EIs%20the%20extension%20successfully%20deployed%3F%20Monitor%20VA%20extension%20health%20across%20subscriptions%20using%20Azure%20Resource%20Graph%20(ARG).%20ARG%20becomes%20handy%20if%20you%20want%20to%20validate%20the%20extension%20status%20across%20subscriptions%20is%20heathy%20for%20both%20Linux%20and%20Windows%20machines.%20Use%20the%20following%20query%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ewhere%26nbsp%3Btype%26nbsp%3B%3D%3D%26nbsp%3B%22microsoft.compute%2Fvirtualmachines%2Fextensions%22%0A%7C%26nbsp%3Bwhere%26nbsp%3Bname%26nbsp%3Bmatches%26nbsp%3Bregex%26nbsp%3B%22AzureSecurityCenter%22%0A%7C%26nbsp%3Bextend%26nbsp%3BExtensionStatus%26nbsp%3B%3D%26nbsp%3Btostring(properties.provisioningState)%2C%26nbsp%3B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BExtensionVersion%26nbsp%3B%3D%26nbsp%3Bproperties.typeHandlerVersion%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BResourceId%26nbsp%3B%3D%26nbsp%3Bid%2C%26nbsp%3B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BExtensionName%26nbsp%3B%3D%26nbsp%3Bname%2C%26nbsp%3B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BRegion%26nbsp%3B%3D%26nbsp%3Blocation%2C%26nbsp%3B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BResourceGroup%26nbsp%3B%3D%26nbsp%3BresourceGroup%0A%7C%26nbsp%3Bproject%26nbsp%3BResourceId%2C%26nbsp%3BExtensionName%2C%26nbsp%3BRegion%2C%26nbsp%3BResourceGroup%2C%26nbsp%3BExtensionStatus%2C%26nbsp%3BExtensionVersion%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%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22asc-va-extension-status.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211393i996FD58FBF65FC0D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22asc-va-extension-status.png%22%20alt%3D%22asc-va-extension-status.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Results%20can%20be%20exported%20into%20CSV%20or%20used%20to%20build%20an%20Azure%20Monitor%20workbook.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIs%20the%20service%20running%3F%20On%20Windows%20VMs%2C%20make%20sure%20%E2%80%9CQualys%20Cloud%20Agent%E2%80%9D%20is%20running.%20On%20Linux%2C%20run%20the%20command%20sudo%20service%20qualys-cloud-agent%3C%2FLI%3E%0A%3CLI%3EUnable%20to%20communicate%20with%20Qualys%3F%20To%20communicate%20with%20the%20Qualys%20Cloud%2C%20the%20agent%20host%20should%20reach%20the%20service%20platform%20over%20HTTPS%20port%20443%20for%20the%20following%20IP%20addresses%3A%0A%3CUL%3E%0A%3CLI%3E64.39.104.113%3C%2FLI%3E%0A%3CLI%3E154.59.121.74%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ECheck%20network%20access%20and%20ensure%20to%20accept%20the%20platform%20URL%20listed.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELooking%20for%20logs%3F%20Both%20agent%20and%20extension%20logs%20can%20be%20used%20during%20troubleshooting.%20However%2C%20Windows%20and%20Linux%20logs%20can%20be%20found%20in%20different%20places.%20Here%20are%20the%20paths%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EWindows%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EQualys%20extension%3A%0A%3CUL%3E%0A%3CLI%3EC%3A%5CQualys.WindowsAgent.AzureSecurityCenter%3C%2FLI%3E%0A%3CLI%3EC%3A%5CWindowsAzure%5CLogs%5CPlugins%5CQualys.WindowsAgent.AzureSecurityCenter%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EQualys%20agent%3A%0A%3CUL%3E%0A%3CLI%3E%25ProgramData%25%5CQualys%5CQualysAgent%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3ELinux%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EQualys%20extension%3A%0A%3CUL%3E%0A%3CLI%3E%2Fvar%2Flog%2Fazure%2FQualys.LinuxAgent.AzureSecurityCenter%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EQualys%20agent%3A%0A%3CUL%3E%0A%3CLI%3E%2Fvar%2Flog%2Fqualys%2Fqualys-cloud-agent.log%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-64869966%22%20id%3D%22toc-hId-64869966%22%20id%3D%22toc-hId-64869966%22%3EAdvanced%20scenarios%3C%2FH2%3E%0A%3CP%3EQualys%20assessment%20and%20sub-assessments%20(security%20checks)%20are%20stored%20and%20available%20for%20query%20in%20Azure%20Resource%20Graph%20(ARG)%20as%20well%20as%20through%20the%20API.%20A%20great%20example%20for%20that%20is%20available%20in%20this%20blog%20post.%20Moreover%2C%20you%20can%20also%20build%20and%20customize%20your%20own%20dashboards%20using%20Azure%20Monitor%20workbooks%20and%20create%20such%20dashboard%20for%20more%20insights.%20You%20can%20easily%20deploy%20a%20Qualys%20dashboard%20leveraging%20ARG%20queries%20and%20workbooks%20which%20is%20available%20%3CSPAN%3E.%20%3C%2FSPAN%3ESoon%2C%20you%20will%20be%20able%20to%20use%20Continuous%20Export%20feature%20to%20send%20nested%20recommendations%20for%20Qualys%20into%20Event%20Hub%20or%20Log%20Analytics%20workspaces.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1742584497%22%20id%3D%22toc-hId--1742584497%22%20id%3D%22toc-hId--1742584497%22%3EOn%20the%20roadmap%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3EAvailability%20for%20non-Azure%20virtual%20machines%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20proxy%20configuration%3C%2FLI%3E%0A%3CLI%3EFiltering%20vulnerability%20assessment%20findings%20by%20different%20criteria%20(e.g.%20exclude%20all%20low%20severity%20findings%20%2F%20exclude%20non-patchable%20findings%20%2F%20excluded%20by%20CVE%20%2F%20and%20more)%3C%2FLI%3E%0A%3CLI%3EMore%20items%20are%20work%20in%20progress.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-744928336%22%20id%3D%22toc-hId-744928336%22%20id%3D%22toc-hId-744928336%22%3EFrequently%20asked%20questions%3C%2FH2%3E%0A%3CP%3E%3CSTRONG%3EQuestion%3A%20%3C%2FSTRONG%3EDoes%20the%20built-in%20integration%20support%20both%20Azure%20VMs%20and%20non-Azure%20VMs%3F%3CBR%20%2F%3E%3CSTRONG%3EAnswer%3A%20%3C%2FSTRONG%3EOur%20current%20integration%20only%20supports%20Azure%20VMs.%20As%20mentioned%20in%20the%20roadmap%20section%2C%20we%20do%20have%20plans%20to%20support%20non-Azure%20virtual%20machines%20in%20the%20future.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQuestion%3A%20%3C%2FSTRONG%3EDoes%20the%20built-in%20vulnerability%20assessment%20as%20part%20of%20standard%20pricing%20tier%20also%20integrate%20into%20the%20Qualys%20Dashboard%20offering%3F%20%3CBR%20%2F%3E%3CSTRONG%3EAnswer%3A%20%3C%2FSTRONG%3EVulnerability%20assessments%20performed%20by%20our%20built-in%20integration%20is%20only%20available%20through%20Azure%20portal%20and%20Azure%20Resource%20Graph.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQuestion%3A%3C%2FSTRONG%3E%20Is%20it%20possible%20to%20initiate%20a%20manual%2Fon-demand%20scan%3F%3CBR%20%2F%3E%3CSTRONG%3EAnswer%3A%3C%2FSTRONG%3E%20Scan%20on%20Demand%20is%20a%20single%20use%20execution%20that%20is%20initiated%20manually%20on%20the%20VM%20itself%2C%20using%20locally%20or%20remotely%20executed%20scripts%20or%20GPO%2C%20or%20from%20software%20distribution%20tools%20at%20the%20end%20of%20a%20patch%20deployment%20job.%20To%20do%20so%2C%20the%20following%20command%20will%20trigger%20an%20on-demand%20metadata%20sync%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3EREG%20ADD%20HKLM%5CSOFTWARE%5CQualys%5CQualysAgent%5CScanOnDemand%5CVulnerability%20%2Fv%20%22ScanOnDemand%22%20%2Ft%20REG_DWORD%20%2Fd%20%221%22%20%2Ff%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%3CSTRONG%3EQuestion%3A%20%3C%2FSTRONG%3EI%20purchased%20a%20separate%20Qualys%2FRapid%207%20license%2C%20which%20recommendation%20should%20I%20use%3F%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAnswer%3A%20%3C%2FSTRONG%3EWe%20provide%20additional%20method%20for%20customers%20who%20have%20purchased%20VA%20scanner%20separately%20and%20do%20not%20use%20the%20integrated%20solution.%20To%20enable%203%3CSUP%3Erd%3C%2FSUP%3E-party%20integration%2C%20use%20%E2%80%9CA%20vulnerability%20assessment%20solution%20should%20be%20enabled%20on%20your%20virtual%20machines%E2%80%9D%20-%20this%20recommendation%20appears%20for%20both%20standard%20and%20free%20tiers.%20Then%2C%20select%20%E2%80%9CConfigure%20a%20new%20third-party%20vulnerability%20scanner%20(BYOL%20-%20requires%20a%20separate%20license)%E2%80%9D.%20For%20this%20kind%20of%20integration%2C%20you'll%20need%20to%20purchase%20a%20license%20for%20your%20chosen%20solution%20separately.%20Supported%20solutions%20report%20vulnerability%20data%20to%20the%20partner's%20management%20platform.%20In%20turn%2C%20that%20platform%20provides%20vulnerability%20and%20health%20monitoring%20data%20back%20to%20Security%20Center.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQuestion%3A%3C%2FSTRONG%3E%20Can%20I%20combine%20two%20Qualys%20installation%20approaches%20so%20that%20the%20same%20VM%20has%20both%20the%20integrated%20scanner%20and%20the%20BYOL%20agent%20installed%3F%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAnswer%3A%3C%2FSTRONG%3E%20No%2C%20this%20is%20not%20supported.%20You%20can%E2%80%99t%20combine%20additional%20deployment%20approaches%20of%20VA%20while%20using%20the%20built-in%20VA%20capabilities%20provided%20by%20ASC.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EIn%20the%20next%20blog%20posts%2C%20we%20will%20discuss%20on%20how%20you%20can%20leverage%20integration%20for%20container%20and%20container%20registry%20images.%20Stay%20tuned!%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EReviewers%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMelvyn%20Mildiner%20-%20Senior%20Content%20Developer%3C%2FLI%3E%0A%3CLI%3EBen%20Kliger%20-%20Senior%20PM%20Manager%3C%2FLI%3E%0A%3CLI%3EAviv%20Mor%20-%20Senior%20Program%20Manager%3C%2FLI%3E%0A%3CLI%3ENomi%20Gorovoy%20-%20Software%20Engineer%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1577947%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you're%20using%20Security%20Center%E2%80%99s%20standard%20tier%20for%20VMs%2C%20you%20can%20quickly%20deploy%20a%20vulnerability%20assessment%20solution%20powered%20by%20Qualys%20with%20no%20additional%20configuration%20or%20extra%20costs.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1783095%22%20slang%3D%22en-US%22%3ERe%3A%20Built-in%20vulnerability%20assessment%20for%20VMs%20in%20Azure%20Security%20Center%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1783095%22%20slang%3D%22en-US%22%3E%3CP%3ENice%20article!%20However%20when%20deploying%20the%20vulnerability%20scanner%20through%20an%20ARM%20template%20in%20%22complete%22%20mode%2C%20the%20extension%20is%20added%20to%20the%20VM%20during%20deployment%2C%20but%20then%20removed%20at%20the%20end%20as%20part%20of%20the%20cleanup%20process.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20prevent%20the%20extension%20from%20being%20removed%20when%20running%20in%20complete%20mode%3F%20It%20seems%20that%20it%20doesn't%20recognise%20that%20the%20extension%20is%20included%20in%20the%20template%20and%20therefore%20removes%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

What is the built-in vulnerability assessment tool in Azure Security Center?

There are several options for deploying a vulnerability assessment solutions for Azure VMs. If you're using Security Center’s standard tier for VMs, you can quickly deploy a vulnerability assessment solution powered by Qualys with no additional configuration or extra costs. In this blog post, I will focus on a the built-in capabilities as you can see on the left side in the image below.

 

asc-va-options.PNG

 

Qualys’s scanner is the leading tool for identifying vulnerabilities in your Azure virtual machines. Once this integration is enabled, Qualys continually assesses all the installed applications on a virtual machine to find vulnerabilities and presents its findings in the Security Center console. This offering is available to all commercial Azure customers that have enabled Azure Security Center standard pricing tier for VMs. In this post, I will focus on vulnerability scanning of virtual machines, although standard tier also offers scanning for both containers and container registries - learn more here.

 

How does the integration work?

Our integrated vulnerability scanner is based on 5 different stages: from discovery to findings.

 

asc-va-integration.png

 

[1] Discovery – To make this integration work, a policy named “vulnerability assessment should be enabled on virtual machines” which is part of the “ASC default” initiative must be enabled. Upon Azure Policy evaluation, we get the compliance data to identify potential and supported virtual machines which don’t have a vulnerability assessment solution deployed. Based on the result, we propagate the data into the recommendation so you can see all relevant virtual machines. Based on compliance data, we categorize the virtual machines as one of the following:

  • “healthy” - VMs that have the extension installed and report data.
  • “unhealthy” - VMs which could support the extension, but which currently don’t have it.
  • "not applicable” - Where the OS type/image is not supported (for example, a virtual machine running Network Virtual Appliance (NVA), Databricks/AKS instances or Classic VMs).

 

[2] Deployment - This is the step where you can enable the integrated ASC vulnerability scanner by deploying the extension on your selected virtual machine/s either by using ASC console and quick fix button, or by using an automated method (see a reference below for deployment at scale).

Prerequisites for deploying the extension:

  1. Running VM with a supported operating system version as mentioned here.
  2. Azure VM agent installed and in healthy state.
  3. Log Analytics agent installed (formerly known as the Microsoft Monitoring Agent).
  4. To install using the quick fix option, you'll need write permissions for any VM on which you want to deploy the extension. Like any other extension, this one runs on top of the Azure Virtual Machine agent.

Once all prerequisites are met, you should use our newly and consolidated recommendation “A vulnerability assessment solution should be enabled on your virtual machines”. In this recommendation, you can choose to deploy ASC integrated vulnerability scanner or 3rd party scanner (BYOL).

 

asc-va-recommendation.png

 

This recommendation installs the extension on unhealthy machines. Review the heathy and not applicable lists too.

 

asc-va-recommendation-list.png

 

Once the extension is deployed, you can see if it exists, by navigating to the VM page of the Azure portal, and selecting “extensions”:

  • On Windows, the extension is called “WindowsAgent.AzureSecurityCenter” and the provider name is "Qualys”
  • On Linux, the extension is called LinuxAgent.AzureSecurityCenter and the provider name is "Qualys”

asc-va-extension.png

 

Like the Log Analytics agent itself and all other Azure extensions, minor updates of the vulnerability scanner may automatically happen in the background; the VA agent is self-healing and self-updating to counter common issues. All agents and extensions are tested extensively before being automatically deployed. On a virtual machine (on Windows for example), you will see a process QualysAgent.exe and service “Qualys Cloud Agent” running:

 

asc-va-agent.png

 

When deploying a vulnerability assessment solution, Security Center previously performed a validation check before deploying. The check was to confirm a marketplace SKU of the destination virtual machine.
Recently, the check was removed and you can now deploy vulnerability assessment tools to 'custom' Windows and Linux machines. Custom images are ones that you've modified from the marketplace defaults.

 

[3] Scan - The gathered data collected by the agent includes many things for the baseline snapshot like network posture, operating system version, open ports, installed software, registry info, what patches are installed, environment variables, and metadata associated with files. The agent stores a snapshot on the agent host to quickly determine differences to the host metadata it collects. Such scans occur every 4 hours and are performed per VM, where artifacts are collected and sent for analysis to the Qualys Cloud service in the defined region. For virtual machines created within European regions, the gathered information is sent securely to Qualys Cloud Service in the Netherlands. For all non-EU resources, data is sent for processing in the Qualys Cloud Service in the US.

The sent artifacts are considered as metadata and the same as the ones collected by Qualys’ standalone cloud agent - Microsoft doesn't share customer details or any sensitive data with Qualys.

 

[4] Analysis – Qualys analyzes the metadata, registry keys, and other information and builds the findings per VM. Findings are sent to Azure Security Center matching customer’s ID and are removed from the Qualys Cloud.

 

[5] Findings – You can monitor vulnerabilities on your virtual machines as discovered by the ASC vulnerability scanner using a recommendation named “Vulnerabilities in virtual machines should be remediated” found under the recommendations list. This recommendation is divided to the affected resources and security checks (also known as nested recommendations or sub-assessments).

 

asc-va-findings.png

 

On the affected resources section, you will find virtual machines categorized as unhealthy, healthy, and not applicable. The section named “Security Checks” shows the vulnerabilities found on the unhealthy resource. Findings are categorized by severity (high, medium, and low). Below, you can see the matching between ASC severity on the left and Qualys’ severities on the right:

 

asc-va-severities.png

 

If you are looking for a specific vulnerability, you can use the search field to filter the items based on ID or security check title. Selecting a security check, will open a window containing the vulnerability name, description, the impact on your resources, severity, if this could be resolved by applying patch, the CVSS base score (when the highest is the most severe one), relevant CVEs. Then, you will also find the threat, remediation steps, additional references (if applicable) and the affected resource. Once you remediate the vulnerability on the affected resource, it will be removed from the recommendation page.

 

Deployment at scale

If you have large number of virtual machines and would like to automate deployment at scale of the ASC integrated scanner, we’ve got you covered! There are several ways to accomplish such deployment based on your business requirements. Some customers prefer to automate deployment by executing an ARM template, others prefer automation using Azure Automation or Azure Logic Apps and others by using Azure Policy for both automation and compliance. For all these scenarios and even beyond, we encourage you to visit our ASC GitHub community repository. There, you can find scripts, automations and other useful resources you can leverage throughout your ASC deployment. Some of the methods will deploy the extension on new machines, others cover existing ones as well. There are other scenarios where customers prefer to make API calls to trigger an installation. This is also possible by executing a PUT call to one of our REST APIs, passing the resource ID to the URL. You can also decide to combine multiple approaches.

  • ARM Deployment – This method is available on the “view recommendation logic” if you decide to remediate unhealthy resources using Azure portal. The automatic recommendation script content includes the relevant ARM template you can leverage for your automation.
  • DeployIfNotExists policy definition – We recently added a custom Azure Policy definition which can easily be deployed into your Azure environment and assigned at the relevant scope (resource group/subscription/management group).
  • PowerShell Script – This script can be used to deploy the extension for all unhealthy virtual machines and can be automated using Azure Automation for installation on new resources. The script finds all unhealthy machines discovered by the recommendation and executes an ARM call as mentioned in the first bullet.
  • Azure Logic Apps – This sample leverages another functionality available as part of Security Center’s standard tier: workflow automation. Once a new security recommendation is generated for a resource, a trigger calls a Logic App to install the agent.
  • REST API – Calling an API for agent deployment is available as well. Perform a PUT request for the following URL by adding the relevant resource ID: 
    https://management.azure.com/resourceId/providers/Microsoft.Security/serverVulnerabilityAssessments/default?api-Version=2015-06-01-preview​

Troubleshooting

Below you will find a checklist for your initial troubleshooting if you experience issues related to the ASC vulnerability scanner:

  • Are you running a supported OS version? Use the following list to quickly identify if your VMs are running a supported operating system version.
  • Is the extension successfully deployed? Monitor VA extension health across subscriptions using Azure Resource Graph (ARG). ARG becomes handy if you want to validate the extension status across subscriptions is heathy for both Linux and Windows machines. Use the following query:

 

where type == "microsoft.compute/virtualmachines/extensions"
| where name matches regex "AzureSecurityCenter"
| extend ExtensionStatus = tostring(properties.provisioningState), 
        ExtensionVersion = properties.typeHandlerVersion,
        ResourceId = id, 
        ExtensionName = name, 
        Region = location, 
        ResourceGroup = resourceGroup
| project ResourceId, ExtensionName, Region, ResourceGroup, ExtensionStatus, ExtensionVersion

 

 

asc-va-extension-status.png

 

              Results can be exported into CSV or used to build an Azure Monitor workbook.

  • Is the service running? On Windows VMs, make sure “Qualys Cloud Agent” is running. On Linux, run the command sudo service qualys-cloud-agent
  • Unable to communicate with Qualys? To communicate with the Qualys Cloud, the agent host should reach the service platform over HTTPS port 443 for the following IP addresses:
    • 64.39.104.113
    • 154.59.121.74

Check network access and ensure to accept the platform URL listed.

  • Looking for logs? Both agent and extension logs can be used during troubleshooting. However, Windows and Linux logs can be found in different places. Here are the paths:

Windows:

  • Qualys extension:
    • C:\Qualys.WindowsAgent.AzureSecurityCenter
    • C:\WindowsAzure\Logs\Plugins\Qualys.WindowsAgent.AzureSecurityCenter
  • Qualys agent:
    • %ProgramData%\Qualys\QualysAgent

Linux:

  • Qualys extension:
    • /var/log/azure/Qualys.LinuxAgent.AzureSecurityCenter
  • Qualys agent:
    • /var/log/qualys/qualys-cloud-agent.log

 

Advanced scenarios

Qualys assessment and sub-assessments (security checks) are stored and available for query in Azure Resource Graph (ARG) as well as through the API. A great example for that is available in this blog post. Moreover, you can also build and customize your own dashboards using Azure Monitor workbooks and create such dashboard for more insights. You can easily deploy a Qualys dashboard leveraging ARG queries and workbooks which is available . Soon, you will be able to use Continuous Export feature to send nested recommendations for Qualys into Event Hub or Log Analytics workspaces.

 

On the roadmap

  • Availability for non-Azure virtual machines
  • Support for proxy configuration
  • Filtering vulnerability assessment findings by different criteria (e.g. exclude all low severity findings / exclude non-patchable findings / excluded by CVE / and more)
  • More items are work in progress.

 

Frequently asked questions

Question: Does the built-in integration support both Azure VMs and non-Azure VMs?
Answer: Our current integration only supports Azure VMs. As mentioned in the roadmap section, we do have plans to support non-Azure virtual machines in the future.

 

Question: Does the built-in vulnerability assessment as part of standard pricing tier also integrate into the Qualys Dashboard offering?
Answer: Vulnerability assessments performed by our built-in integration is only available through Azure portal and Azure Resource Graph.

 

Question: Is it possible to initiate a manual/on-demand scan?
Answer: Scan on Demand is a single use execution that is initiated manually on the VM itself, using locally or remotely executed scripts or GPO, or from software distribution tools at the end of a patch deployment job. To do so, the following command will trigger an on-demand metadata sync:

 

REG ADD HKLM\SOFTWARE\Qualys\QualysAgent\ScanOnDemand\Vulnerability /v "ScanOnDemand" /t REG_DWORD /d "1" /f

 

 

Question: I purchased a separate Qualys/Rapid 7 license, which recommendation should I use?

Answer: We provide additional method for customers who have purchased VA scanner separately and do not use the integrated solution. To enable 3rd-party integration, use “A vulnerability assessment solution should be enabled on your virtual machines” - this recommendation appears for both standard and free tiers. Then, select “Configure a new third-party vulnerability scanner (BYOL - requires a separate license)”. For this kind of integration, you'll need to purchase a license for your chosen solution separately. Supported solutions report vulnerability data to the partner's management platform. In turn, that platform provides vulnerability and health monitoring data back to Security Center.

 

Question: Can I combine two Qualys installation approaches so that the same VM has both the integrated scanner and the BYOL agent installed?

Answer: No, this is not supported. You can’t combine additional deployment approaches of VA while using the built-in VA capabilities provided by ASC.

 

In the next blog posts, we will discuss on how you can leverage integration for container and container registry images. Stay tuned!

 

 

Reviewers:

  • Melvyn Mildiner - Senior Content Developer
  • Ben Kliger - Senior PM Manager
  • Aviv Mor - Senior Program Manager
  • Nomi Gorovoy - Software Engineer
1 Comment
Occasional Visitor

Nice article! However when deploying the vulnerability scanner through an ARM template in "complete" mode, the extension is added to the VM during deployment, but then removed at the end as part of the cleanup process.

 

Is there any way to prevent the extension from being removed when running in complete mode? It seems that it doesn't recognise that the extension is included in the template and therefore removes it.