Coder Social home page Coder Social logo

packetcaptureaws's Introduction

Packet Capture on AWS

Questions? DM me @TeriRadichel on Twitter.

Update cloud security automation code

For more recent and up to date code, training, and cybersecurity in the cloud, please check out 2nd Sight Lab's Cloud Security Architecture and Engineering class. We are constantly updating the material and writing new labs to help students understand and implement cybersecurity in the cloud.

Cloud Security Training: https://2ndsightlab.com/cloud-security-training.html

About This Repo:

This repo creates the following AWS resources:

- WatchGuard Firebox Cloud with three network interfaces
    - public Internet connected interface
    - private management interface
    - web server interface
- An EC2 key to connect to the Firebox
- S3 bucket and policy for key, lambda code
- S3 bucket and policy for log files
- A lambda function to configure the Firebox
- KMS key for lambda function to encrypt variables
- A packet capture instance that leverages the Firebox CLI
- A Web Server to test packet capture
- All the necessary networking and IAM resources

Before You Run This Script:

Create an AWS account:
https://aws.amazon.com (click the button to create an account)

Enable MFA on your user ID that is used to run this script:
http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_enable_virtual.html

Install and configure the AWS CLI with your access key ID, secret key and region: 
http://docs.aws.amazon.com/cli/latest/userguide/installing.html

Install git:
https://git-scm.com/

Clone (download) this repo with this command: 
git clone https://github.com/tradichel/PacketCaptureAWS.git
More info: https://git-scm.com/docs/git-clone

If you are using Windows install a bash shell:
https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/

Install Python
https://www.python.org

Activate The Firebox AMI In Your Account:
http://websitenotebook.blogspot.com/2017/05/manually-activating-watchguard-firebox.html

Follow AWS IAM Best Practices (like MFA)
http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html

Run the code:

Log into the console using MFA.

Navigate to PacketCaptureAWS/code folder

type ./run.sh

At the prompt, type 1 and hit enter:

    Please select action:
    1) Create/Update
    2) Delete
    3) Cancel
    #? 

The code will tell you the region your CLI is configured to use:

    * ---- NOTE --------------------------------------------
    * Your CLI is configured for region:  us-west-2
    * Resources will be created in this region.
    * Switch to this region in console when you login.
    * ------------------------------------------------------

When it asks if you want to use the default options type y and hit enter:

   * Would you like to use all the default options? (Y)

If you want to change defaults, hit enter above. Read prompts.

To delete all the resources run the script again and choose delete.

View The Results:

Watch the screen for updates.

Log into the console to see that actions were successful

About The Author:

@teriradichel http://twitter.com/teriradichel

Secplicity https://www.secplicity.org/author/teriradichel/?utm_source=teriradichel&utm_medium=gh

Slideshare https://www.slideshare.net/TeriRadichel

AWS Network Security Meetup Video: https://youtu.be/DSptV0km1aY

More about Firebox Cloud:

Set Up firebox_cloud Cloud: https://www.watchguard.com/help/docs/fireware/11/en-US/Content/en-US/firebox_cloud/fb_cloud_help_intro.html

Latest Firebox Documentation: https://www.watchguard.com/wgrd-help/documentation/xtm

Contact a WatchGuard reseller: http://www.watchguard.com/wgrd-resource-center/how-to-buy?utm_source=teriradichel&utm_medium=gh

Some resellers sell on Amazon: https://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=watchguard&utm_source=teriradichel&&utm_medium=gh

packetcaptureaws's People

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.