GithubHelp home page GithubHelp logo

rileydakota / cfn-sweeper Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 1.0 139 KB

A CLI Tool to find resources in an AWS Account not actively managed by Cloudformation!

License: MIT License

Python 100.00%

cfn-sweeper's Introduction

Welcome to Dakota Riley's GitHub Portfolio page!

I am a Security Engineer, Consultant, and Leader with skills in Cloud Security, Application Security, Detection Engineering, and Automation.

"I just want to do cool cloud security stuff with my friends" - me

alt text

I have worked at startups, large enterprises, FAANG, and the Federal Government, helping customers solve security engineering challenges, as both a consultant, and owner. I enjoy getting to solve large scale challenges with both code and strategy, and enabling engineering teams to move fast without having to worry about security. I deeply care about making the right thing as easy as possible, and the end user experience of security.

I prefer environments that reward creative thinking, strong ownership of problems, and data driven decision making.

While I enjoy going deep on technical problems, I love being able to step back and solve problems at the source vs bandaid fixes.

Speaking

CloudNativeSecurityCon 2024: Detection Engineering in Kubernetes Environments

๐Ÿ“ˆ Slides

AWS Community Day Midwest: Exploring Amazon Lake

๐Ÿ“น YouTube
๐Ÿ“ˆ Slides
๐Ÿ““ Jupyter Notebook

SANS CloudSecNext 2023: Detective Controls in Kubernetes Environments

๐Ÿ“น Youtube

The Security Engineers Guide To Infrastructure-As-Code

๐Ÿ“ˆ Slides

Blogs

Exploring the GitHub Advisory Database for fun and (no) profit

In this blog, I downloaded the entire GitHub Advisory Database, and loaded it into Pandas to look for trends across Open Source Vulnerabilities.

Tactical Cloud Audit Log Analysis with DuckDB - AWS CloudTrail \

In this blog, I cover how to load, parse, and interact with AWS CloudTrail logs utilizing DuckDB, a tool that allows you to locally query and interact with larger than memory datasets that still fit on a single device. Its a great tool for needing to query when you don't have a SIEM available, and is faster than Athena with certain data sizes.

Taking the Secrets Manager Lambda Extension for a spin

This blog, I use the AWS Secrets Manager Lambda extension in different Lambda functions, and benchmark how it impacts performance compared to other methods.

Threat Detection on EKS - Comparing Falco and GuardDuty for EKS Protection

I partnered with co-worker and friend Dustin Whited [@dgwhited] to compare Falco and EKS GuardDuty as options for threat detection in EKS environments.

Using Semgrep to find security issues and misconfigurations in AWS Cloud Development Kit projects

In this blog, I combined my love of static code analysis and infrastructure-as-code to find problems in CDK projects in the actual CDK code itself.

Contributions and OSS

Stratus Red Team - added GCP Support and Initial GCP Technique, added an EKS specific technique that eventually made it into the codebase as well

Peirates - added support for detecting AWS as a Cloud Provider when IMDSv2 is in use

Semgrep - added rules for the static analysis of AWS Cloud Development Kit (CDK) projects

Panther-Analysis - added new detection rules for CodeBuild Public Projects on AWS and some initial K8s rules (WIP)

Matano - added a managed enrichment table for the Cybersecurity and Infrastructure Agency Known Exploited Vulnerabilities (AKA CISA KEV), allowing users to help enrich/prioritize vulnerability finding data sources with KEV status.

CfnSweeper - A CLI tool I built for finding AWS resources unmanaged by AWS Cloudformation, built to help engineers clean up AWS resources often left behind from CDK constructs that have removalPolicies that retain the resource by default.

rileydakota's Stats rileydakota's Streak rileydakota's Top Languages

cfn-sweeper's People

Contributors

rileydakota avatar unkn0wn-binary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

donmagee

cfn-sweeper's Issues

Make sure README.md matches reality before release

Because we used the README as more of a design doc (written before implementation) - we should reevaluate it at somepoint to make sure we are planning to incorporate features or remove them from the doc

Add the ability to scan all supported resource types

Currently the tool requires specifying particular cloudformation resource types (eg AWS::EC2::Instance). We should add a parameter that allows the tool to scan all supported resource types without specifying them (and notify the user what types were not checked)

Add support for customizable output options

Our CLI Tool should be able to output in the following methods:

  • pretty
  • yaml
  • stdout literally just a list of non-managed resources seperated by a newline character
  • json

In addition - we should abstract the logic for this out of the main.py (eg - have an output.py module that contains a class for the reportdata with different methods to output to the various output formats)

Add GitHub Actions checks

On Pull Requests - we should run the following:

  • pylint
  • bandit
  • pytest

some sort of code coverage tool would be ideal as well

Add configurable logging

The user should be able to specify a "verbosity" setting that will change the amount of log information the tool emits. In addition - we should try to seperate this from the boto3 logging (turning our setting on shouldnt spew all the unneeded boto3 logs).

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.