semvec/pypi-packages huggingface dataset:
overprivileged 0.0.1
CLI for discovering overprivileged AWS IAM roles
License: MIT
Requires Python: >=3.6
Keywords: overprivileged aws iam cloudtrail roles python

# overprivileged
Overprivileged is a utility for discovering over privileged IAM roles in AWS. 

**Caution:** This software is in version 0.0.1 and not currently tested

## Installation
From PyPi:
```bash
$ pip install overprivileged
```

## Usage
Overprivileged utilizes Cloudtrail logs stored in Cloudwatch to parse out exactly which IAM actions
have been performed by an IAM role over a given number of days and returns a diff of which IAM actions
have been used and which ones have not.

### Prerequisites
1. Cloudtrail logging enabled
2. Cloudtrail logs saved to Cloudwatch log group

### CLI

**Check Role Privileges**

Example Usage:
```bash
op check-privileges \
    --role-name role-name \
    --log-group-name cloudtrail-log-group-name \
    --days 5
```

Example Output:
```json
{
    "usedActions": [
        "route53:ListHostedZones",
        "route53:ListResourceRecordSets"
    ],
    "unusedActions": [
        "route53:ChangeResourceRecordSets"
    ]
}
```

Help:
```bash
op check-privileges --help
Usage: op check-privileges [OPTIONS]

  Checks what actions are used and unused by a role

Options:
  --role-name TEXT       The name of the role to check privileges for.
  --log-group-name TEXT  The name of the log group where the Cloudtrail logs
                         are stored.

  --days INTEGER RANGE   The number of days in the past that the current
                         privileges should be checked against.

  --region TEXT          The aws region where the log group is stored.
  --help                 Show this message and exit.
```
palantir-cli 0.0.1
security analyzer and predictor
License: MIT
Requires Python: >=3.6

# ![](docs/media/logo.svg)

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Build Status](https://travis-ci.org/nathanielCherian/palantir.svg?branch=master)](https://travis-ci.org/nathanielCherian/palantir)
[![Project Status: WIP â€“ Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)


The Palantir Project is an attempt to aggregate and take advantage of the patterns of tradable assets. As if now Palantir has been optimized soley for bitcoin (for its high volatility) but will soon expand into all aspects of trade. 

## Background

At it's core palantir combines techinal indicators from different time periods and settings to form predictions about markets in the near-future. Then the optimal decisions are made to maximize profit. 


![](docs/media/classifier-sim-train.png)

The preceding chart shows a simulation of a model trained on data from 2020-06-01 to 2020-06-20 and actively playing on unseen data from 2020-06-21 to 2020-06-30 with 1 bitcoin and 200USD. Based on it's predictions palantir shorts or holds to maintain constant profit-growth.


## Installation

```pip install palantir-cli```

or for the latest dev version...

```pip install git+git:https://github.com/nathanielCherian/palantir.git```


## Usage

Palantir's CLI interface can be activated from terminal with

```$ palantir```

palantir also comes with two additional packages releasing you from the grasp of dependencies these include a data-scraper and a simulator.


## Problems

Palantir is still a WORK IN PROGRESS and will need more work before it has become a useful tool

* ~~Bitcoin trading fees: After applying the maximum fee (.30% per transaction) to trades the basic machine suffers greatly. To counteract this we have to find the equilibrium between minimizing trades and maximizing profits. Note: This will not be a problem in the palantir-stocks~~

* Need to work on the CLI 

## Contributing

All contributions are very welcome.