Skip to content

Getting Started

Prerequisites

Requirement Details
Docker Docker Desktop or Docker Engine + Compose v2
make GNU Make (pre-installed on macOS)
Resources 16 GB RAM minimum, SSD recommended
CloudTrail logs .json or .json.gz files exported from AWS
(Optional) VPC Flow Logs Plain-text .log.gz files delivered to S3
(Optional) AWS Config snapshots .json or .json.gz files for AWS resource graph
(Optional) OpenAI API key Required for AI query generation
(Optional) MaxMind GeoLite2 .mmdb files for GeoIP enrichment

Quick Start

Step 1. Download the whole AWSLogs/ prefix from S3 — CloudTrail logs and, if you have them, VPC Flow Logs. Files from other services are skipped at ingest.

aws s3 sync s3://<your-bucket>/AWSLogs/ <local-output-dir>/AWSLogs/

Step 2. Clone the repository and put your data in place.

# Clone the repository
git clone https://github.com/Yamato-Security/senrigan.git
cd senrigan

# Place the downloaded AWSLogs/ tree here
cp -r <local-output-dir>/ docker/logs/

The two optional directories below are detected automatically. Fill them in before the next step — there is no extra command to run.

Directory Contents What it adds
docker/data/geoip/ GeoLite2 .mmdb Resolves source IPs to country, city, and ASN
docker/data/config-snapshots/ AWS Config snapshot .json files Builds the AWS Config resource graph

Step 3. Ingest the logs and start the services.

make ingest
make up

Step 4. 🪽 Open your browser and start hunting!🪽

  • http://localhost:8501 — Built-in queries and AI Chat
  • http://localhost:8088 — Dashboard (admin / admin)
  • http://localhost:8502 — AWS Config resource graph

Everyday commands

Running make with no arguments prints this list. make help-all shows every target.

Command What it does
make ingest Load CloudTrail + VPC Flow Logs from docker/logs/ into DuckDB
make up Start the UI, dashboard, and resource graph
make down Stop everything
make logs Tail service logs (SERVICE=agent for just one)
make reset Delete the database and start over

Corporate Proxy / Custom CA Certificate

If you are behind a TLS-inspecting corporate proxy, see doc/DEVELOPMENT.md for setup instructions.