%3CLINGO-SUB%20id%3D%22lingo-sub-1537591%22%20slang%3D%22en-US%22%3ERe%3A%20Threat%20Protection%20for%20SQL%20IaaS%20VMs%20using%20Azure%20Security%20Center%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1537591%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20the%20detailed%20blog.%20This%20is%20very%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1539103%22%20slang%3D%22en-US%22%3ERe%3A%20Threat%20Protection%20for%20SQL%20IaaS%20VMs%20using%20Azure%20Security%20Center%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1539103%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20Article.%20Very%20helpful%20to%20me%20and%20my%20SLG%20customers.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20You%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1536529%22%20slang%3D%22en-US%22%3EThreat%20Protection%20for%20SQL%20IaaS%20VMs%20using%20Azure%20Defender%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1536529%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20enterprises%20are%20working%20to%20reduce%20their%20attack%20surface%20area%2C%20one%20area%20that%20is%20often%20overlooked%20is%20the%20potential%20database%20vulnerabilities%20and%20detection%20of%20anomalous%20activity%20that%20could%20indicate%20a%20sign%20of%20intrusion.%20In%20this%20blog%20post%20series%2C%20we%20will%20walk%20you%20through%20different%20scenarios%20on%2C%20how%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fsecurity-center-intro%23%3A~%3Atext%3DAzure%2520Security%2520Center%2520is%2520a%2Cas%2520well%2520as%2520on%2520premises.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Security%20Center%3C%2FA%3E%20protects%20SQL%20server%20hosted%20on%20either%20Azure%20VMs%2C%20Azure%20Arc%20and%20On-prem.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdvanced%20Data%20Security%20(ADS)%20is%20one%20of%20many%20features%20that%20is%20included%20in%20Azure%20Defender%20and%20falls%20under%20Cloud%20Workload%20Protection%20Platform%20(CWPP)%20capability%20(read%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSecurity-Identity%2FIntegrating-Azure-Security-Center-with-Azure-Sentinel%2Ftd-p%2F482847%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ethis%20article%3C%2FA%3E%26nbsp%3Bto%20understand%20CWPP).%20Advanced%20data%20security%20for%20SQL%20machines%20is%20an%20extension%20of%20Azure%20Defender's%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-advanced-data-security%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSTRONG%3Eadvanced%20data%20security%20package%3C%2FSTRONG%3E%3C%2FA%3E%20that%E2%80%99s%20already%20available%20for%20Azure%20SQL%20Databases%2C%20Synapse%2C%20and%20SQL%20Managed%20Instances.%20This%20feature%20(by%20the%20time%20this%20blog%20was%20written%20it%20was%20in%20public%20preview)%20brings%20the%20same%20level%20of%20protection%20that%20were%20introduced%20for%20SQL%20servers%20on%20Azure%20VMs%20which%20includes%20SQL%20Injection%20vulnerabilities%2C%20brute-force%20against%20SQL%20credentials%2C%20and%20much%20more.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.listennotes.com%2Fpodcasts%2Fthe-packt-podcast%2Fyuri-diogenes-discusses-AG8zs4iIulL%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECloud%20security%20posture%20management%26nbsp%3B%3C%2FA%3Eand%20proactive%20threat%20protection%20with%20Azure%20Security%20Center%20helps%20SOC%20(Security%20Operation%20Center)%20operators%20to%20get%20handle%20on%20threats%20and%20keep%20pace%20with%20attackers%20and%20Advanced%20Data%20Security%20(ADS)%20for%20SQL%20servers%20on%20Azure%20Virtual%20Machines%2C%20is%20a%20unified%20package%20for%20advanced%20SQL%20security%20capabilities%20which%20is%20in%20public%20preview%20at%20the%20time%20of%20this%20writing.%3C%2FP%3E%0A%3CP%3EThis%20public%20preview%20feature%20that%20was%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fupdates%2Fadvanced-data-security-available-for-sql-server-on-azure-virtual-machines%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eannounced%20last%20year%3C%2FA%3E%20includes%20functionalities%20for%20identifying%20and%20mitigating%20potential%20database%20vulnerabilities%20and%20detecting%20anomalous%20activities%20that%20could%20indicate%20threats%20to%20your%20database%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fsql-vulnerability-assessment%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVulnerability%20Assessment%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fthreat-detection-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAdvanced%20Threat%20Protection%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EBreakthroughs%20in%20big%20data%20and%20machine%20learning%20make%20it%20possible%20for%20Security%20Center%20to%20detect%20anomalous%20database%20access%20and%20query%20patterns%2C%20SQL%20injection%20attacks%2C%20and%20other%20threats%20targeting%20your%20SQL%20databases%20in%20Azure.%20With%20Azure%20Security%20Center%20you%20receive%20alerts%20on%20suspicious%20activity%20and%20recommended%20actions%20for%20investigating%20and%20mitigating%20these%20threats.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdvanced%20Data%20Security%20pricing%20aligns%20with%20Azure%20Security%20Center%20standard%20tier%2C%20where%20each%20protected%20server%20or%20managed%20instance%20is%20counted%20as%20one%20node.%20Newly%20protected%20resources%20qualify%20for%20a%20free%20trial%20of%20Security%20Center%20standard%20tier.%20For%20more%20information%2C%20see%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fpricing%2Fdetails%2Fsecurity-center%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Security%20Center%20pricing%20page%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20blog%20post%2C%20we%20will%20be%20covering%20how%20Azure%20Defender%20protects%20SQL%20IaaS%20machines%20hosted%20on%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--597930838%22%20id%3D%22toc-hId--597930838%22%3E%3CSTRONG%3E1.%20SQL%20server%20on%20an%20Azure%20VM%20%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%3ESQL%20Server%20on%20Azure%20Virtual%20Machines%20enables%20you%20to%20use%20full%20versions%20of%20SQL%20Server%20in%20the%20cloud%20without%20having%20to%20manage%20any%20on-premises%20hardware.%20SQL%20Server%20virtual%20machines%20(VMs)%20also%20simplify%20licensing%20costs%20when%20you%20pay%20as%20you%20go.%20Refer%20to%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Fsql-server-on-azure-vm-iaas-what-is-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Earticle%3C%2FA%3E%20for%20more%20understanding%2C%20plus%20instructions%20to%20spin%20the%20Azure%20SQL%20VM.%3C%2FP%3E%0A%3CP%3EAs%20a%20prerequisite%2C%20make%20sure%20the%20optional%20bundle%20%3CEM%3E(SQL%20servers%20on%20Machine)%3C%2FEM%3E%20is%20enabled%20in%20Security%20Center's%20pricing%20and%20settings%20page%20(Subscription)%20as%20shown%20in%20%3CEM%3E%E2%80%98Image%201%E2%80%99%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Image%201.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206916i95BE883755242A50%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image%201.jpg%22%20alt%3D%22Image%201.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%201%3A%20Pricing%20settings%20in%20Azure%20Security%20Center%20dashboard%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fsecurity-center-enable-data-collection%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CEM%3EAuto-provisioning%3C%2FEM%3E%3C%2FA%3E%20turned%20on%20(Refer%2C%20%3CEM%3EImage%202%3C%2FEM%3E)%2C%20Azure%20Security%20Center%20will%20automatically%20provision%20the%20Log%20Analytics%20Agent%20on%20the%20Azure%20VMs.%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%22Image%202.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206917i11A939C4F120A6D1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image%202.jpg%22%20alt%3D%22Image%202.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%202%20%3A%20Auto%20Provisioning%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20an%20instance%20where%20you%20don%E2%80%99t%20have%20Auto-Provisioning%20turned%20on%2C%20you%20would%20have%20to%20manually%20install%20the%20agent.%20Refer%20to%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fsecurity-center-enable-data-collection%23manual-agent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Earticle%3C%2FA%3E%20for%20step-by-step%20process%20of%20the%20installation.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20choose%20to%20collect%20the%20data%20in%20a%20default%20workspace%20that%20Azure%20Security%20Center%20creates%20or%20select%20your%20own%20workspace.%20Advanced%20Data%20Security%20for%20SQL%20servers%20on%20machines%20will%20be%20enabled%20on%20all%20SQL%20servers%20connected%20to%20the%20selected%20workspace.%20The%20protection%20will%20be%20fully%20active%20after%20the%20first%20restart%20of%20the%20SQL%20Server.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20sample%20scenario%2C%20a%20SQL%20IaaS%20VM%20(sqlserver)%20was%20provisioned.%20Azure%20Security%20Center%20installed%20the%20Log%20Analytics%20agent%20and%20started%20gathering%20data%20to%20provide%20security%20recommendations%20for%20your%20SQL%20VM%20under%20%3CEM%3ERecommendations%3C%2FEM%3E%20section%20(as%20shown%20in%20%3CEM%3E%E2%80%98Image%203%E2%80%99%3C%2FEM%3E).%20Furthermore%2C%20you%20can%20select%20the%20security%20option%20at%20the%20left%20pane%20and%20view%20recommendations%20from%20Security%20Center%20and%20alternatively%2C%20you%20may%20navigate%20to%20Azure%20Security%20Center%20for%20more%20information%20on%20a%20recommendation.%20You%20can%20enable%20threat%20protection%20for%20Azure%20SQL%20Database%20SQL%20servers%20at%20either%20the%20subscription%20level%20or%20resource%20level.%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%22Image%203.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206918i046810E57CE58901%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image%203.jpg%22%20alt%3D%22Image%203.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%203%3A%20Recommendations%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20filter%20just%20the%20%3CEM%3ESQL%3C%2FEM%3E%20recommendations%20%3CEM%3E(Data%20%26amp%3B%20Storage%20hive)%3C%2FEM%3E%20from%20%3CEM%3EResource%20security%20hygiene%3C%2FEM%3E%20section%20(as%20shown%20in%20the%20%3CEM%3EImage%204%3C%2FEM%3E)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Image%205.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206919i1FCDB4000372A77A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image%205.jpg%22%20alt%3D%22Image%205.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%204%3A%20Data%20%26amp%3B%20Storage%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EMake%20sure%20to%20address%20and%20review%20all%20security%20recommendations%20for%20the%20SQL%20databases.%20In%20my%20example%2C%20I%20have%20these%20unhealthy%20resources%20which%20is%20grouped%20beautifully%20by%20Severity.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-1889581995%22%20id%3D%22toc-hId-1889581995%22%3E%3CSTRONG%3E1.1%20Executing%20the%20Attack%20%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%3EHackers%20are%20always%20trying%20to%20find%20workloads%20that%20are%20exposed%20to%20the%20Internet%20and%20databases%20that%20are%20very%20common%20target.%20As%20part%20of%20this%20type%20of%20attack%2C%20it%20is%20common%20to%20see%20scanning%20to%20discover%20public%20IP%20addresses%20that%20have%20SQL%20workloads%20running%20on%20it%2C%20and%20once%20they%20find%20that%20they%20will%20move%20forward%20to%20try%20to%20crack%20their%20password%20using%20different%20methods%2C%20such%20as%20brute%20force%20attack.%20%E2%80%9CBrute%20Force%E2%80%9D%2C%20which%20is%20a%20type%20of%20attack%20that%20attempts%20to%20calculate%20or%20guess%20valid%20username%2Fpassword%20combinations%20to%20gain%20unauthorized%20access%20to%20a%20host.%20Oftentimes%2C%20the%20sheer%20amount%20of%20Brute%20Force%20attempts%20can%20effectively%20result%20in%20DDoS%20of%20the%20targeted%20system.%20In%20case%20threat%20actors%20can%20compromise%20the%20SQL%20database%20and%20gain%20access%20to%20it%2C%20they%20will%20likely%20find%20a%20wealth%20of%20valuable%20information%20that%20includes%2C%20personally%20identifiable%20information%2C%20credit%20card%20numbers%2C%20intellectual%20property%2C%20etc.%20Even%20if%20the%20database%20does%20not%20have%20much%20information%2C%20a%20successful%20attack%20on%20an%20insecurely%20configured%20SQL%20installation%20can%20be%20leveraged%20to%20get%20full%20system%20admin%20privileges.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20this%20example%2C%20a%20PowerShell%20script%20was%20utilized%20to%20simulate%20a%20SQL%20brute%20force%20attack%20against%20a%20SQL%20database%20that%20is%20connected%20to%20the%20Azure%20Security%20Center.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20brute%20force%20attempts%20occurred%20over%20TCP%20port%201433%2C%20which%20was%20exposed%20on%20a%20public%20facing%20interface.%20TCP%20port%201433%20is%20the%20default%20port%20for%20SQL%20server.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%26nbsp%3BIt%20is%20a%20very%20common%20recommendation%20to%20change%20the%20SQL%20default%20port%201433%2C%20this%20may%20impart%20a%20%E2%80%9Cfalse%20sense%20of%20security%E2%80%9D%2C%20because%20many%20port%20scanning%20tools%20can%20scan%20a%20%E2%80%9Crange%E2%80%9D%20of%20network%20ports%20and%20eventually%20find%20SQL%20listening%20on%20ports%20other%20than%201433.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20PowerShell%20script%20used%20in%20this%20case%20is%20simulating%20the%20attack%20by%20trying%20to%20login%20with%20%E2%80%98sa%E2%80%99%20account%20and%20trying%20with%20a%20list%20of%20commonly%20used%20password%20defined%20in%20the%20text%20file%20or%20the%20inline%20array%20of%20the%20script.%20(In%20a%20real-world%20scenario%2C%20once%20the%20attacker%20finds%20TCP%2FUDP%20ports%20open%2C%20it%20starts%20to%20brute%20force%20the%20login%20with%20the%20set%20of%20most%20common%20passwords%20used%20by%20database%20administrators%20to%20perform%20a%20successful%20attack)%3C%2FP%3E%0A%3CP%3EAssuming%20the%20attack%20was%20successful%2C%20Azure%20Security%20Center%20was%20able%20to%20detect%20and%20report%20the%20attack%20under%20Security%20alerts%20dashboard%20as%20shown%20in%20the%20%3CEM%3E%E2%80%98Image%205%E2%80%99%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Image%204.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206921i967B43D72980AFBD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image%204.jpg%22%20alt%3D%22Image%204.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%205%20%3A%20Security%20Alerts%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20further%20investigate%20the%20alert%20to%20view%20more%20information%20of%20the%20affected%20VM%20name%2C%20activity%20name%2C%20Environment%2C%20state%20of%20alert%20and%20more.%20The%20first%20step%20is%20to%20click%20on%20the%20alert%20itself%2C%20and%20see%20how%20many%20instances%20does%20that%20alert%20has%20occurred%2C%20as%20show%20in%20the%20%3CEM%3E%E2%80%98Image%206%E2%80%99%3C%2FEM%3E%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%22Image%206.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206922iBF0875954970138E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image%206.jpg%22%20alt%3D%22Image%206.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%206%20%3A%20Brute%20Force%20attempt%20alert%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20further%20select%20the%20attacked%20resource%20to%20understand%20the%20extent%20and%20the%20details%20of%20the%20attack.%20Alert%20details%20will%20give%20you%20more%20information%20that%20could%20help%20during%20investigation%20of%20a%20security%20alert%2C%20such%20as%2C%20IP%20addresses%2C%20related%20processes%2C%20user%20accounts%20and%20more.%20%3CEM%3E%E2%80%98Image%207%E2%80%99%3C%2FEM%3E%20below%20has%20an%20example%20of%20how%20this%20looks%20like%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-inline%22%20image-alt%3D%22Image%207.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206923iF5D556A33AEE869A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image%207.jpg%22%20alt%3D%22Image%207.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%207%20%3A%20Security%20Alert%20details%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20you%20further%20navigate%20to%20the%20%E2%80%9CTake%20action%E2%80%9D%20tab%20in%20the%20right%20pane%2C%20you%20can%20benefit%20from%20information%20like%2C%20remediation%20steps%20for%20this%20alert%20to%20mitigate%20the%20threat%2C%20prevent%20future%20attacks%20by%20applying%20the%20security%20recommendations%20and%20increase%20security%20posture.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20create%20a%20logic%20app%20defining%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fworkflow-automation%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eworkflow%20automation%3C%2FA%3E%20so%20that%2C%20when%20an%20alert%20is%20created%20in%20Security%20Center%20and%20if%20it%20matches%20the%20evaluation%20criteria%20that%20you%E2%80%99ve%20configured%20in%20an%20automation%2C%20then%20the%20logic%20app%20triggers.%20For%20example%2C%20you%20might%20want%20your%20Logic%20App%20to%20run%20when%20a%20security%20alert%20that%20contains%20%22SQL%22%20is%20generated.%20You%20can%20also%20run%20Logic%20Apps%20manually%20when%20viewing%20a%20security%20alert%20or%20any%20recommendation%20that%20offers%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fsecurity-center-remediate-recommendations%23quick-fix-remediation%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EQuick%20Fix%20remediation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20will%20also%20notice%20the%20option%20to%20Suppress%20the%20future%20alerts%20with%20similar%20characteristics%20if%20the%20alert%20is%20not%20relevant%20for%20your%20organization%20as%20highlighted%20below%20in%20%3CEM%3E%E2%80%98Image%208%E2%80%99%3C%2FEM%3E%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%22image%208.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206924i705DE9863522FC64%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image%208.jpg%22%20alt%3D%22image%208.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%208%3A%20Suppress%20Similar%20Alerts%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20is%20recommended%20to%20configure%20Azure%20subscription(s)%20to%20receive%20future%20alerts%20and%20email%20notifications%20from%20Azure%20Security%20Center.%20Please%20refer%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-security-center%2Femail-notification-for-alerts-triggered-by-atp-for-azure-storage%2Fba-p%2F616261%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Earticle%20%3C%2FA%3Ethat%20explains%20how%20to%20configure%20the%20email%20settings.%20Below%20is%20an%20example%20of%20the%20email%20alert%20received%20from%20ASC%20when%20this%20SQL%20incident%20was%20detected%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-inline%22%20image-alt%3D%22image%209.jpg%22%20style%3D%22width%3A%20855px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206925i4C2EEFFB5EF9EC98%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image%209.jpg%22%20alt%3D%22image%209.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EImage%209%3A%20Email%20Notification%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20next%20blog%20posts%2C%20we%20will%20discuss%20on%20how%20you%20can%20leverage%20Azure%20Defender%20to%20protect%20your%20SQL%20IaaS%20VMs%20hosted%20on%20Azure%20Arc%20and%20On-premises.%20Stay%20Tuned!!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESpecial%20thanks%20to%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYuri%20Diogenes%2C%20Senior%20PM%2C%20CxE%20Security%20%E2%80%93%20ASC%20Team%20for%20reviewing%20this%20post.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1536529%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Security%20Center%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

As enterprises are working to reduce their attack surface area, one area that is often overlooked is the potential database vulnerabilities and detection of anomalous activity that could indicate a sign of intrusion. In this blog post series, we will walk you through different scenarios on, how Azure Security Center protects SQL server hosted on either Azure VMs, Azure Arc and On-prem.

 

Advanced Data Security (ADS) is one of many features that is included in Azure Defender and falls under Cloud Workload Protection Platform (CWPP) capability (read this article to understand CWPP). Advanced data security for SQL machines is an extension of Azure Defender's advanced data security package that’s already available for Azure SQL Databases, Synapse, and SQL Managed Instances. This feature (by the time this blog was written it was in public preview) brings the same level of protection that were introduced for SQL servers on Azure VMs which includes SQL Injection vulnerabilities, brute-force against SQL credentials, and much more.

 

Cloud security posture management and proactive threat protection with Azure Security Center helps SOC (Security Operation Center) operators to get handle on threats and keep pace with attackers and Advanced Data Security (ADS) for SQL servers on Azure Virtual Machines, is a unified package for advanced SQL security capabilities which is in public preview at the time of this writing.

This public preview feature that was announced last year includes functionalities for identifying and mitigating potential database vulnerabilities and detecting anomalous activities that could indicate threats to your database:

  1. Vulnerability Assessment
  2. Advanced Threat Protection

Breakthroughs in big data and machine learning make it possible for Security Center to detect anomalous database access and query patterns, SQL injection attacks, and other threats targeting your SQL databases in Azure. With Azure Security Center you receive alerts on suspicious activity and recommended actions for investigating and mitigating these threats.

 

Advanced Data Security pricing aligns with Azure Security Center standard tier, where each protected server or managed instance is counted as one node. Newly protected resources qualify for a free trial of Security Center standard tier. For more information, see the Azure Security Center pricing page.

 

In this blog post, we will be covering how Azure Defender protects SQL IaaS machines hosted on Azure.

 

1. SQL server on an Azure VM

SQL Server on Azure Virtual Machines enables you to use full versions of SQL Server in the cloud without having to manage any on-premises hardware. SQL Server virtual machines (VMs) also simplify licensing costs when you pay as you go. Refer to this article for more understanding, plus instructions to spin the Azure SQL VM.

As a prerequisite, make sure the optional bundle (SQL servers on Machine) is enabled in Security Center's pricing and settings page (Subscription) as shown in ‘Image 1’

 

Image 1.jpg

Image 1: Pricing settings in Azure Security Center dashboard

 

If you have Auto-provisioning turned on (Refer, Image 2), Azure Security Center will automatically provision the Log Analytics Agent on the Azure VMs.

 

Image 2.jpg

Image 2 : Auto Provisioning 

 

In an instance where you don’t have Auto-Provisioning turned on, you would have to manually install the agent. Refer to this article for step-by-step process of the installation.

 

You may choose to collect the data in a default workspace that Azure Security Center creates or select your own workspace. Advanced Data Security for SQL servers on machines will be enabled on all SQL servers connected to the selected workspace. The protection will be fully active after the first restart of the SQL Server.

 

In this sample scenario, a SQL IaaS VM (sqlserver) was provisioned. Azure Security Center installed the Log Analytics agent and started gathering data to provide security recommendations for your SQL VM under Recommendations section (as shown in ‘Image 3’). Furthermore, you can select the security option at the left pane and view recommendations from Security Center and alternatively, you may navigate to Azure Security Center for more information on a recommendation. You can enable threat protection for Azure SQL Database SQL servers at either the subscription level or resource level.

 

Image 3.jpg

Image 3: Recommendations

 

You can also filter just the SQL recommendations (Data & Storage hive) from Resource security hygiene section (as shown in the Image 4)

Image 5.jpg

Image 4: Data & Storage 

Make sure to address and review all security recommendations for the SQL databases. In my example, I have these unhealthy resources which is grouped beautifully by Severity.

 

1.1 Executing the Attack

Hackers are always trying to find workloads that are exposed to the Internet and databases that are very common target. As part of this type of attack, it is common to see scanning to discover public IP addresses that have SQL workloads running on it, and once they find that they will move forward to try to crack their password using different methods, such as brute force attack. “Brute Force”, which is a type of attack that attempts to calculate or guess valid username/password combinations to gain unauthorized access to a host. Oftentimes, the sheer amount of Brute Force attempts can effectively result in DDoS of the targeted system. In case threat actors can compromise the SQL database and gain access to it, they will likely find a wealth of valuable information that includes, personally identifiable information, credit card numbers, intellectual property, etc. Even if the database does not have much information, a successful attack on an insecurely configured SQL installation can be leveraged to get full system admin privileges.

 

For this example, a PowerShell script was utilized to simulate a SQL brute force attack against a SQL database that is connected to the Azure Security Center.

 

The brute force attempts occurred over TCP port 1433, which was exposed on a public facing interface. TCP port 1433 is the default port for SQL server.

Note: It is a very common recommendation to change the SQL default port 1433, this may impart a “false sense of security”, because many port scanning tools can scan a “range” of network ports and eventually find SQL listening on ports other than 1433.

 

The PowerShell script used in this case is simulating the attack by trying to login with ‘sa’ account and trying with a list of commonly used password defined in the text file or the inline array of the script. (In a real-world scenario, once the attacker finds TCP/UDP ports open, it starts to brute force the login with the set of most common passwords used by database administrators to perform a successful attack)

Assuming the attack was successful, Azure Security Center was able to detect and report the attack under Security alerts dashboard as shown in the ‘Image 5’

 

Image 4.jpg

Image 5 : Security Alerts

 

You can further investigate the alert to view more information of the affected VM name, activity name, Environment, state of alert and more. The first step is to click on the alert itself, and see how many instances does that alert has occurred, as show in the ‘Image 6’

 

Image 6.jpg

Image 6 : Brute Force attempt alert

 

You can further select the attacked resource to understand the extent and the details of the attack. Alert details will give you more information that could help during investigation of a security alert, such as, IP addresses, related processes, user accounts and more. ‘Image 7’ below has an example of how this looks like:

 

Image 7.jpg

Image 7 : Security Alert details 

 

When you further navigate to the “Take action” tab in the right pane, you can benefit from information like, remediation steps for this alert to mitigate the threat, prevent future attacks by applying the security recommendations and increase security posture.

 

You can create a logic app defining a workflow automation so that, when an alert is created in Security Center and if it matches the evaluation criteria that you’ve configured in an automation, then the logic app triggers. For example, you might want your Logic App to run when a security alert that contains "SQL" is generated. You can also run Logic Apps manually when viewing a security alert or any recommendation that offers Quick Fix remediation.

 

You will also notice the option to Suppress the future alerts with similar characteristics if the alert is not relevant for your organization as highlighted below in ‘Image 8’

 

image 8.jpg

Image 8: Suppress Similar Alerts

 

It is recommended to configure Azure subscription(s) to receive future alerts and email notifications from Azure Security Center. Please refer to the article that explains how to configure the email settings. Below is an example of the email alert received from ASC when this SQL incident was detected:

 

image 9.jpg

Image 9: Email Notification

 

In the next blog posts, we will discuss on how you can leverage Azure Defender to protect your SQL IaaS VMs hosted on Azure Arc and On-premises. Stay Tuned!!

 

Special thanks to:

Yuri Diogenes, Senior PM, CxE Security – ASC Team for reviewing this post.

2 Comments
Visitor

Thank you for the detailed blog. This is very helpful.

Microsoft

Great Article. Very helpful to me and my SLG customers. 

 

Thank You