LW.

Glorified Notepad

Azure Sentinel - Log4J

2021-12-15 Azure Sentinel Log4J CVE
Intro Apache Log4j is a Java-based logging utility that has recently had a zero-day exploit released codenamed “Log4Shell” (CVE-2021-44228). This zero-day allows an attacker to execute code on the remote server (Remote Code Execution) and can allow an attacker the ability to fully compromise the server the service is running on. Why is this a problem? The log4J package uses a JNDILookup plugin to allow the application/service to search for data throughout a Java directory and is found on all platforms running Java+logging from version 2. Continue reading

Why Terraform?

2021-03-06 Azure ARM Terraform IaC
Intro I’m often asked if Microsoft provides the ability the deploy resources into Azure using Azure Resource Manager templates (ARM Templates) then why would I use Terraform for CI/CD deployments? In this post, I’ll try to answer this and provide an understanding of the differences and why, in my opinion, Terraform is the most versatile and agile tool available for IaC deployments. Why Infrastructure as code? Anyone who’s spent anytime deploying to Azure knows that the user interface is intuitive and that it guides you through the creation of deploying resources really well, prompting you for missing information and providing handy tooltips. Continue reading

Create enterprise applications for external access using Terraform

2021-01-08 Azure Terraform
3rd party services such as threat management tools for Azure can add incredible value but to access services, they need a secure way of connecting to the platform. Enterprise Application give full IAM (Identity and Access Management) control and can be used to provide granular access to services. During deployment I found a need to automate the following elements: Registration of application within Azure with customized API permissions Creation of Enterprise application (Service Principal) linked to application Creation of client secret with no expiry date Creation of custom RBAC Assign app to subscriptions using custom RBAC role To make sure this process was repeatable easily and at scale the following Terraform elements were used. Continue reading

Deploy VM from Azure Marketplace image using Terraform

2021-01-05 Azure Terraform
During code deployment via terraform to Azure, it’s useful to be able to reference marketplace-based images to support the deployment of 3rd party services. This brief guide will cover how to find an image and then how to use that data to deploy, in this case, an AlertLogic Linux VM. Windows images can be found in the same manner. For the purpose of this example, I will deploy Alert Logic Professional - BYOL. Continue reading

Azure to Azure Migration

2021-01-04 Azure Powershell
Due to mergers, acquisitions or sale it’s likely that companies develop a need to migrate key services from platform to platform. Although it is currently possible to migrate resources between subscriptions it is not possible to migrate across tenants natively. The below covers the steps required to migrate tenant to tenant using MigAZ a community tool availble from GitHub (covering ARM to ARM migration) https://github.com/Azure/migAz Pre-reqs Windows 8 or higer Latest PowerShell AzureRM module Install-Module -Name AzureRM -AllowClobber Import-Module -Name AzureRM Separate “Owner” role accounts for both tenants The resource being migrated should be powered off & any active connections removed Disk encryption using ADE v1. Continue reading
Older posts Newer posts