ClaudeSec

DevSecOps toolkit for AI-assisted secure development

View the Project on GitHub Twodragon0/claudesec

Getting Started with ClaudeSec

This guide follows the same scanner onboarding anchors as README.md.

Scanner Anchors

Scanner Quick Start

Copy-paste minimal example

./scripts/run-scan.sh

Expected output: security scan starts and creates scan-report.json in the project root.

Prerequisites

Clone and run

git clone https://github.com/Twodragon0/claudesec.git
cd claudesec

./scripts/run-scan.sh
./scanner/claudesec scan -d .
./scanner/claudesec scan --category cloud
./scanner/claudesec scan --severity high,critical

Scanner CI Templates

Copy-paste minimal example

./scripts/setup.sh /path/to/project

Expected output: workflow templates and reusable actions are copied into the target repository.

Bootstrap a target repository

./scripts/setup.sh /path/to/project

Core templates

Reusable workflow components

CI policy variables

Scanner OAuth & Token Policy

Copy-paste minimal example

export OKTA_OAUTH_TOKEN="<okta-oauth-access-token>"
./scanner/claudesec scan -c saas

Expected output: SaaS checks run with OAuth-first paths; strict mode (if enabled) fails on missing required scopes.

Okta automation should prefer scoped OAuth tokens over SSWS tokens.

export OKTA_ORG_URL="https://dev-123456.okta.com"
export OKTA_OAUTH_TOKEN="<okta-oauth-access-token>"
export CLAUDESEC_OKTA_REQUIRED_SCOPES="okta.users.read,okta.policies.read,okta.logs.read"
export CLAUDESEC_STRICT_OKTA_SCOPES=1
./scanner/claudesec scan -c saas

See Okta OAuth guidance.

Scanner SaaS Live Scan

Copy-paste minimal example

./scanner/claudesec dashboard --serve --host 127.0.0.1 --port 11665

Expected output: dashboard is generated and served locally at http://127.0.0.1:11665.

SaaS scan + dashboard

./scanner/claudesec scan -c saas

export GH_TOKEN_EXPIRES_AT="2026-04-30T08:30:00Z"
export OKTA_OAUTH_TOKEN_EXPIRES_AT="2026-04-30T09:00:00Z"
export CLAUDESEC_TOKEN_EXPIRY_WARNING_24H="24h"
export CLAUDESEC_TOKEN_EXPIRY_WARNING_7D="7d"

./scanner/claudesec dashboard --serve --host 127.0.0.1 --port 11665

Optional Datadog local fetch

DD_API_KEY=<your-dd-api-key> DD_APP_KEY=<your-dd-app-key> DD_SITE=datadoghq.com ./scanner/claudesec dashboard

Kubernetes and Prowler: kubeconfig and OIDC

What’s Next?

  1. Workflow Components
  2. DevSecOps Pipeline Guide
  3. Branch Protection
  4. SaaS Best Practices Scans
  5. Shell Lint Policy