Giter Site home page Giter Site logo

bhanu-prakashl / aws_services_last_accessed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattfeltonma/aws_services_last_accessed

0.0 1.0 0.0 9 KB

This Python solution reports the AWS services used by an AWS security principal (user, group, role) and writes the results to the Azure Monitor API for analysis

License: MIT License

Python 100.00%

aws_services_last_accessed's Introduction

AWS Services Last Accessed Analysis

This solution uses AWS's Access Advisor's API to produce a report showing which services an AWS security principal (User, Group, Role) has accessed. The resulting data is then transformed and delivered to the Azure Monitor's HTTP Data Collector API.

What problem does this solve?

An effective way to mitigate risk is abide by least privilege and limit a human or non-human to only the permissions required. These required permissions may change over time and new permissions may be required. Often old permissions are not removed resulting in access creep. Additionally, when starting to the journey to the cloud, organizations often provide overly permissive permissions because roles and responsibilities are not yet clear.

AWS's Access Advisor API enables organizations to report on what AWS services a security principal has used and when the service was last used. This information can be analyzed to identify permissions to services that may no longer be required. Azure Monitor provides a powerful and simple to use tool to both take in the data and analyze it.

Requirements

Python Runtime and Modules

AWS Permissions Requirement

  • IAM:ListUsers
  • IAM:ListGroups
  • IAM:ListRoles
  • IAM:GenerateServiceLastAccessedDetails
  • IAM:GetServiceLastAccessedDetails

Setup

Use this blog post to setup the Azure side of the integration.

Ensure the appropriate version of Boto3 and Botocore are installed. A sample parameters file is provided with the repository.

python service_last_accessed.py --parameterfile parameters.json [--logfile]

aws_services_last_accessed's People

Contributors

mattfeltonma avatar

Watchers

 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.