Coder Social home page Coder Social logo

azure-security-deployments's Introduction

Azure Security Deployments

Repo to deploy using terraform/bash

DISCLAIMER

This repo is published under the following LICENSE

requirements

  • on mac install coreutils, brew install coreutils
  • bash (the default shell on mac should also work too)
  • make
  • docker / docker-compose
  • terraform

Notice this might not work on Windows as I do not work or provision on Windows machines.

Resources:

Siem and Monitoring Alerts deployment

Deploy ELK

curl -sL https://raw.githubusercontent.com/bizmate/azure-security-deployments/main/siem-and-monitoring-alerts/provision-elk.sh | bash

Check that the ELK IP is now in your shell env | GREP ELK

Deploy Apache with Filebeat pointing to ELK

curl -sL https://raw.githubusercontent.com/bizmate/azure-security-deployments/main/siem-and-monitoring-alerts/provision-apache.sh | bash

SSH Public key

Mac

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCf8BFXl+5+SCel79uL4hBgxIY8JtgmjvpP4XR7sSOMeAqYbMlguW54IpLrJC660tzGNUZMqdtoP9BYSv2QUjDOy1DHjfUiDRL95/aA5WFwpMwrFfIDGhQLyUHa/zo2rH6VCSpX/7i3Nk+FQ9MTSUAij+eD9zHQCjzQdPoVPX4WfJNWnIy4HDGKbwFL8WkGMU4zFvrezqjQpxBOFk+wkoWp2bedNT7sO9lWFJqALD0r+SQz95o6qJIIlzRgo8W+Wj9NxKnM6sfmyJXGteWdpUYgZ/6ok5NhYX9QX/DP6I6ctF55nOrSv2s75Tyh57w3V7VDCdu4kdEg+D15Qh3nnzW1

Dockerisation

Run it in each specific project, for instance for siem do cd siem-and-monitoring-alerts and then run the below you can run the local docker instance by running

export UID
make up

Terraforming

Terraform is used in the project 1 folder, cd in the folder to run terraform commands import resource group or other resources, notice the commands below might have ids and references that are there only as examples. You might need to use the Azure CLI to find the correct subscription or resource group id

az login
az account set --subscription c4f47e86-cf48-4611-8c4d-6f6124a34a60
# show the resource group information
az group show -n entp-256356
# import resource group
terraform import "azurerm_resource_group.XYZ_rg"  "/subscriptions/c4f47e86-cf48-4611-8c4d-6f6124a34a60/resourceGroups/entp-256356"

Destroy them all

terraform destroy -target azurerm_linux_virtual_machine.XYZ_DMZ_Private_vm -target azurerm_linux_virtual_machine.XYZ_DMZ_Public_vm -target azurerm_linux_virtual_machine.XYZ_Internal_Enterprise_vm -target azurerm_linux_virtual_machine.XYZ_Internal_Management_vm -target azurerm_linux_virtual_machine.XYZ_Internal_Secure_vm -target azurerm_network_interface.XYZ_DMZ_Private_vm_netint -target azurerm_network_interface.XYZ_DMZ_Public_vm_netint -target azurerm_network_interface.XYZ_Internal_Enterprise_vm_netint -target azurerm_network_interface.XYZ_Internal_Management_vm_netint -target azurerm_network_interface.XYZ_Internal_Secure_vm_netint -target azurerm_network_security_group.XYZ_DMZ_Private_nsg -target azurerm_network_security_group.XYZ_DMZ_Public_nsg -target azurerm_network_security_group.XYZ_Internal_Enterprise_nsg -target azurerm_network_security_group.XYZ_Internal_Management_nsg -target azurerm_network_security_group.XYZ_Internal_Secure_nsg -target azurerm_network_security_rule.XYZ_DMZ_NSRAllowElk -target azurerm_network_security_rule.XYZ_DMZ_NSRAllowHttp -target azurerm_network_security_rule.XYZ_DMZ_NSRAllowKibana -target azurerm_network_security_rule.XYZ_DMZ_NSRAllowSSH -target azurerm_public_ip.XYZ_DMZ_Public_vm_public_ip -target azurerm_public_ip.XYZ_VPN_public_ip -target azurerm_virtual_network.XYZ_DMZ_vnet -target azurerm_virtual_network.XYZ_Internal_vnet 

Terraform notes

Vagrant Images

Generic links/notes

azure-security-deployments's People

Contributors

bizmate avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.