identrail

module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2026 License: Apache-2.0

README

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.1 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.

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

Directories

Path Synopsis
cmd
cli command
identrail-agent command
migrate command
server command
worker command
internal
api
app
cli
db
enterprise
Package enterprise provides the foundational domain models for Identrail's enterprise-tier controls: SCIM provisioning, SAML federation, data-residency policy enforcement, and executive risk reporting.
Package enterprise provides the foundational domain models for Identrail's enterprise-tier controls: SCIM provisioning, SAML federation, data-residency policy enforcement, and executive risk reporting.
remediation/fixpr
Package fixpr converts a finding and its remediation patch template into a deterministic source-control plan (branch, commit, PR title/body, files) and publishes that plan as a real GitHub pull request via the Git Data API.
Package fixpr converts a finding and its remediation patch template into a deterministic source-control plan (branch, commit, PR title/body, files) and publishes that plan as a real GitHub pull request via the Git Data API.
runtime/agentaccess
Package agentaccess correlates observed agent runtime / tool-call events with the static AI-agent inventory Identrail already discovered (declared agents, their backing runtime role, and their declared tools).
Package agentaccess correlates observed agent runtime / tool-call events with the static AI-agent inventory Identrail already discovered (declared agents, their backing runtime role, and their declared tools).
runtime/cloudtrail
Package cloudtrail implements bounded, metadata-only ingestion of AWS CloudTrail LookupEvents records into the runtime event contract defined in internal/api.
Package cloudtrail implements bounded, metadata-only ingestion of AWS CloudTrail LookupEvents records into the runtime event contract defined in internal/api.
runtime/cloudtraildelivery
Package cloudtraildelivery implements bounded, metadata-only ingestion of AWS CloudTrail records delivered through two channels that the existing internal/runtime/cloudtrail LookupEvents engine does not cover:
Package cloudtraildelivery implements bounded, metadata-only ingestion of AWS CloudTrail records delivered through two channels that the existing internal/runtime/cloudtrail LookupEvents engine does not cover:
runtime/s3access
Package s3access correlates observed S3 runtime data access (read / write / list events) with the static reachability edges Identrail already discovered (S3 bucket-policy `can_access` grants) and the bucket's exposure / sensitivity classification.
Package s3access correlates observed S3 runtime data access (read / write / list events) with the static reachability edges Identrail already discovered (S3 bucket-policy `can_access` grants) and the bucket's exposure / sensitivity classification.
runtime/secretsaccess
Package secretsaccess correlates observed Secrets Manager read and KMS decrypt runtime events with the static reachability edges Identrail already discovered (KMS key-policy / grant `can_decrypt` edges and Secrets Manager resource-policy grants).
Package secretsaccess correlates observed Secrets Manager read and KMS decrypt runtime events with the static reachability edges Identrail already discovered (KMS key-policy / grant `can_decrypt` edges and Secrets Manager resource-policy grants).
userexport
Package userexport builds the self-serve "Download my data" ZIP bundle for #1421.
Package userexport builds the self-serve "Download my data" ZIP bundle for #1421.
userpurge
Package userpurge runs the hard-delete pass for accounts that have completed the soft-delete grace window.
Package userpurge runs the hard-delete pass for accounts that have completed the soft-delete grace window.
workflow
Package workflow routes product lifecycle events to engineering and security workflow destinations (Slack, Jira, Linear) and emits an auditable record of every dispatch attempt for governance.
Package workflow routes product lifecycle events to engineering and security workflow destinations (Slack, Jira, Linear) and emits an auditable record of every dispatch attempt for governance.
workspacepurge
Package workspacepurge runs the hard-delete pass for workspaces that have completed the 30-day soft-delete grace window from #1420.
Package workspacepurge runs the hard-delete pass for workspaces that have completed the 30-day soft-delete grace window from #1420.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL