Skip to content
identrailPublic

About

Machine identity security platform for AWS, GitHub/OIDC, and Kubernetes. Find risky trust paths, repository exposure, and authorization gaps before they become incidents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,255 Commits

Folders and files

Identrail Logo

Open-source machine identity security for AWS, GitHub, and Kubernetes.

Find risky trust paths, repository exposure, and authorization gaps before they become incidents.

CI status Version v1.0.2 OpenSSF Best Practices

Enterprise Quickstart · Website · Discord · Issues

Who is this for?

Identrail is for security and platform teams that need fast answers to practical machine identity questions:

  • Which GitHub workflows, secrets, or automation paths can expose sensitive access?
  • Which AWS roles and trust relationships create unnecessary blast radius?
  • Which Kubernetes service accounts and RBAC bindings can reach more than they should?
  • How can teams turn those signals into explainable findings and safer authorization decisions?

Use Identrail when you want read-only visibility first, then a clear path to hosted scans, source onboarding, trends, and audit-ready evidence.

Quickstart

Choose the source you want to check first. GitHub, AWS, and Kubernetes each have a separate first-run path.

1. Install Identrail

Install the CLI with Homebrew:

brew install identrail/tap/identrail

Or build from source when you want to contribute:

git clone https://github.com/identrail/identrail.git
cd identrail
go build -o ./bin/identrail ./cmd/cli

If you build from source, replace identrail with ./bin/identrail in the commands below unless you add the binary to your PATH.

2. Scan a GitHub Repository

Scan a public repository:

identrail scan owner/repo

Use limits when you want a faster first look:

identrail scan owner/repo --history-limit 5 --max-findings 5

Scan a private repository you already cloned:

cd private-repo
identrail scan .

For hosted private-repository scans, sign in to identrail.com, create or select a project, and connect the Identrail GitHub App.

3. Scan AWS

Make sure your terminal has read-only AWS credentials:

aws sts get-caller-identity

Run an AWS machine identity scan:

IDENTRAIL_PROVIDER=aws \
IDENTRAIL_AWS_SOURCE=sdk \
IDENTRAIL_AWS_REGION=us-east-1 \
identrail scan

Change IDENTRAIL_AWS_REGION to the AWS region you want to inspect.

For hosted AWS connectors, check the connected status and next action from the API-backed CLI:

identrail aws-status \
  --api-url "$IDENTRAIL_API_URL" \
  --api-key "$IDENTRAIL_API_KEY" \
  --tenant-id tenant-a \
  --workspace-id workspace-a \
  --project-id production

The app's single-account path opens a prefilled read-only CloudFormation stack. After the AWS administrator approves it, Identrail registers and validates the role automatically; no role ARN, External ID, access key, or secret key is copied into the app.

4. Scan Kubernetes

Make sure kubectl can reach the cluster:

kubectl config current-context

Check that your current identity can list the objects Identrail needs:

kubectl auth can-i list serviceaccounts --all-namespaces
kubectl auth can-i list rolebindings --all-namespaces
kubectl auth can-i list clusterrolebindings
kubectl auth can-i list roles --all-namespaces
kubectl auth can-i list clusterroles
kubectl auth can-i list pods --all-namespaces

Run a Kubernetes machine identity scan:

IDENTRAIL_PROVIDER=kubernetes \
IDENTRAIL_K8S_SOURCE=kubectl \
identrail scan

Use a specific kube context when needed:

IDENTRAIL_PROVIDER=kubernetes \
IDENTRAIL_K8S_SOURCE=kubectl \
IDENTRAIL_KUBE_CONTEXT=my-cluster-context \
identrail scan

5. Run with Docker

Use Docker when you do not want to install the CLI locally.

Scan a GitHub repository:

docker run --rm ghcr.io/identrail/identrail-cli:latest scan owner/repo

Scan a private repository you already cloned:

cd private-repo
docker run --rm -v "$PWD:/repo" -w /repo ghcr.io/identrail/identrail-cli:latest scan .

Run an AWS scan with a local AWS profile:

docker run --rm \
  -v "$HOME/.aws:/aws:ro" \
  -e AWS_CONFIG_FILE=/aws/config \
  -e AWS_SHARED_CREDENTIALS_FILE=/aws/credentials \
  -e AWS_PROFILE=default \
  -e IDENTRAIL_PROVIDER=aws \
  -e IDENTRAIL_AWS_SOURCE=sdk \
  -e IDENTRAIL_AWS_REGION=us-east-1 \
  ghcr.io/identrail/identrail-cli:latest scan

For live Kubernetes scans, use the Homebrew or source-built CLI where kubectl is installed and configured. The CLI container stays small and does not include kubectl.

6. Use the Hosted App

Go to identrail.com, sign in, create or select a workspace, and connect the sources your project owns: GitHub, AWS, and Kubernetes.

Use the hosted app when you want project-scoped source onboarding, GitHub App scans, scan history, findings, trends, and owner-ready review workflows.

For production deployment, SSO, tenant/workspace scope, connector secrets, and audit logging, use the Enterprise Quickstart.

What Identrail Does

  • Scans GitHub repositories for secrets, risky GitHub Actions workflows, CI exposure, and repository posture signals.
  • Discovers AWS IAM trust paths, role relationships, and machine identity risk from live AWS accounts or fixtures.
  • Discovers Kubernetes service accounts, RBAC bindings, and cluster identity paths from live clusters or fixtures.
  • Produces explainable findings with evidence, severity, confidence, ownership, and remediation context.
  • Provides CLI, Docker, API, worker, and web workflows for local scans, hosted scans, source onboarding, trends, and review.

What Identrail Does Not Do

  • It is not a cloud SIEM replacement.
  • It is not an endpoint runtime agent.
  • It is not a generic CSPM for every cloud and SaaS provider.
  • It does not mutate your cloud, cluster, or repository state during read-only scans.

V1 focuses on machine identity security across GitHub, AWS, and Kubernetes.

How It Works

Source -> Collector -> Normalizer -> Graph -> Risk Rules -> Findings -> CLI/API/Web

The CLI runs local scans directly. The API enqueues hosted scans, the worker processes them, and results are available through the API, CLI, and web UI.

Deployment Options

Choose the path that matches how you want to run Identrail:

  • Hosted app: use identrail.com for source onboarding and scan review.
  • Local CLI: use Homebrew, Docker, or a source build for quick read-only scans.
  • Local stack: use Docker Compose from deploy/docker.
  • Kubernetes: use manifests in deploy/kubernetes or the Helm chart in deploy/helm/identrail.
  • Infrastructure as code: use the Terraform modules in deploy/terraform.
  • Linux VM: use the systemd units in deploy/systemd.

See Deployment Anywhere for operator commands.

Comparison (Where Identrail Fits)

  • Versus broad CSPM tools: Identrail is narrower and deeper on machine identity trust, repository automation exposure, and authorization workflows.
  • Versus secret scanners alone: Identrail links repository findings into identity risk context.
  • Versus policy engines alone: Identrail adds discovery and risk evidence, not only policy evaluation.
Security and Support SLA

If you discover a vulnerability, please use private reporting only:

Maintainer targets for supported versions:

  • Acknowledge valid reports within 72 hours.
  • Initial triage within 7 days.
  • Weekly status updates until resolution.

Full policy: SECURITY.md.

Contributing

About

Machine identity security platform for AWS, GitHub/OIDC, and Kubernetes. Find risky trust paths, repository exposure, and authorization gaps before they become incidents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages