Skip to content
Yassir Kachri

Projects & open source

Tools I build to audit, govern and secure production systems

Open-source tooling and companion repositories. Each one exists because a production review needed it.

Open source MIT license Python 3.10+ v3.6.1 273 stars · 26 forks on GitHub

Kosty

One-command AWS audit: cost waste, security gaps, GenAI workloads and attack surface.

Kosty is an open-source AWS security and FinOps auditing CLI. One scan engine runs 151 checks across 32 AWS services, maps the external attack surface, detects IAM privilege-escalation paths, audits Amazon Bedrock and SageMaker workloads, and estimates the monthly saving for many of the cost findings.

checks
151
AWS services
32
IAM escalation patterns
21
public resource types mapped
15
Kosty dashboard overview: security findings by severity, cost savings, accounts scanned and services affected
The single-file HTML dashboard, shown with the demo report bundled in the repository.

What it solves

Cloud security posture

Security groups, IAM, KMS, WAF, GuardDuty, CloudTrail and Config checks, plus 21 IAM privilege-escalation patterns, run with --deep and confirmed by policy simulation.

External attack surface

Maps internet-reachable ALBs, EC2, S3, RDS, API Gateway, Lambda URLs, CloudFront, OpenSearch, EKS, ECR and more, and classifies each as exposed, partially protected or protected.

GenAI workload security

Amazon Bedrock and SageMaker checks: invocation logging, regions with no guardrail, AI roles without an approval tag, and endpoints with no invocations.

FinOps compliance

Stopped instances, oversized databases, idle NAT gateways and load balancers, orphaned volumes and secrets, many with an estimated monthly saving.

Architecture overview

One scan engine, plugin-based checks, read-only credentials. The same path runs a full audit or a single-service check.

  1. 01

    Credentials

    AWS profiles, assumed roles or an AWS Organization, read-only. Multi-profile and multi-region in parallel.

  2. 02

    Scan engine

    Every command, full audit or per service, runs through one plugin-based engine. Checks are plugins under kosty/providers/aws/services/.

  3. 03

    Findings

    Severity, service, resource and, for many cost findings, an estimated monthly saving, filtered by kosty.yaml exclusions.

  4. 04

    Reports

    Console, JSON or CSV output, a .sha256 sidecar for default local reports, and a single-file HTML dashboard with no build step.

Install

# PyPI (recommended) — requires Python 3.10+
pip install kosty

# Docker
docker run --rm -v ~/.aws:/home/nonroot/.aws:ro ghcr.io/kosty-cloud/kosty:latest audit

CLI usage

# Full audit — cost + security across 32 services
kosty audit --output all

# External attack surface mapping
kosty public-exposure --output console

# AI/ML audit — Bedrock + SageMaker
kosty ai audit --output console
kosty ai bedrock check-no-guardrails     # region with no guardrail
kosty ai bedrock check-shadow-ai         # AI roles without approval tag

# IAM privilege escalation (21 patterns, needs --deep)
kosty iam check-privilege-escalation --deep

# Organization-wide scan
kosty audit --organization --max-workers 20 --output all

Reports: console, JSON or CSV, a .sha256 sidecar for default local reports, and a single-file HTML dashboard. Run it with read-only credentials.

Co-creator

ConfigLens

ConfigLens audits monitoring platforms such as Zabbix, Centreon and Prometheus, detects drift between expected and actual configuration, compares audits over time and prioritizes findings, so DevOps, SRE and infrastructure teams keep a reliable, readable and governed monitoring estate.

configlens.com

GitHub

Repositories

Reference configurations and companion code for the books and whitepapers.

Everything public lives at github.com/yassirkachri.