# NeuroSploit v4.3.0 — environment / API keys (optional) # ------------------------------------------------------------------ # You only need this for the API-key auth path. If you log in with a # local subscription CLI instead (--subscription with Claude / Codex / # Gemini / Grok), you don't need any key here. # # Set the key(s) for the providers you use, then load and run: # set -a; . ./.env; set +a # neurosploit run http://target --model anthropic:claude-opus-4-8 -v # # Provider prefix -> env var (use as `--model :`). # anthropic: https://console.anthropic.com/ ANTHROPIC_API_KEY= # openai: https://platform.openai.com/api-keys OPENAI_API_KEY= # gemini: https://aistudio.google.com/app/apikey # (GOOGLE_API_KEY is also accepted as an alias if GEMINI_API_KEY is unset) GEMINI_API_KEY= #GOOGLE_API_KEY= # azure: Azure OpenAI (OpenAI-compatible). Use `--model azure:` # (the model name is your Azure *deployment* name). #AZURE_OPENAI_API_KEY= #AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com #AZURE_OPENAI_API_VERSION=2024-10-21 # bedrock: AWS Bedrock (native SigV4 Converse API). Use # `--model bedrock:`, e.g. # `bedrock:anthropic.claude-3-5-sonnet-20241022-v2:0`. # Uses the standard AWS credential chain from the environment. # Region defaults to us-east-1. #AWS_ACCESS_KEY_ID= #AWS_SECRET_ACCESS_KEY= # Optional temporary-credential session token. #AWS_SESSION_TOKEN= #BEDROCK_REGION=us-east-1 # Optional VPC endpoint / gateway override. #BEDROCK_ENDPOINT= # xai: https://console.x.ai/ XAI_API_KEY= # nvidia_nim: https://build.nvidia.com/ (keys look like nvapi-...) NVIDIA_NIM_API_KEY= # deepseek: https://platform.deepseek.com/ DEEPSEEK_API_KEY= # mistral: https://console.mistral.ai/ MISTRAL_API_KEY= # qwen: https://dashscope-intl.aliyuncs.com/ (Alibaba DashScope) DASHSCOPE_API_KEY= # zai: https://z.ai/ (GLM 5.1 / 5.2 / 5.3). Works as a plain API and, # with --subscription, drives GLM through the Claude Code CLI via # Z.ai's Anthropic-compatible endpoint (the devpack / cline / zcode # setup — https://docs.z.ai/devpack/tool/cline). ZAI_API_KEY= # Optional: override Z.ai's Anthropic-compatible base URL (default # https://api.z.ai/api/anthropic) for a self-hosted gateway. # ZAI_ANTHROPIC_BASE_URL= # moonshot: https://platform.moonshot.ai/ (Kimi models) MOONSHOT_API_KEY= # groq: https://console.groq.com/keys GROQ_API_KEY= # together: https://api.together.xyz/settings/api-keys TOGETHER_API_KEY= # openrouter: https://openrouter.ai/keys OPENROUTER_API_KEY= # opencode: https://opencode.ai/auth (OpenCode Zen gateway) # Or skip the key entirely and use --subscription with the # `opencode` CLI logged into your own Zen/plan account. OPENCODE_API_KEY= # nous: Nous Portal (https://portal.nousresearch.com) — Hermes models. # Or skip the key entirely and use --subscription with the # `hermes` CLI (`hermes setup --portal` for OAuth login). NOUS_API_KEY= # morse: https://console.trymorse.ai — uncensored open-weight models # with native tool calling. No prompt/reply storage. MORSE_API_KEY= # ollama: local, no key needed. Override the endpoint if not default: #OLLAMA_BASE_URL=http://localhost:11434/v1 # litellm: point at your LiteLLM proxy (OpenAI-compatible). Route any # model through it as `--model litellm:`. #LITELLM_BASE_URL=http://localhost:4000/v1 LITELLM_API_KEY= # TypeSafe System One (RLCD — Reinforcement Learning for Calibrated Decisions). # When set, NeuroSploit adjudicates each finding with a calibrated verdict # (confirmed/needs-review/rejected) + an "impact demonstrated" judgment over the # EVIDENCE, refining confidence and the needs-review boundary. Additive — never # overrules a deterministic validator. Disable with NEUROSPLOIT_TYPESAFE=off. TYPESAFE_API_KEY= # ------------------------------------------------------------------ # Attack-graph memory (Neo4j) — OPTIONAL. The graph is always written to the # run's graph/ folder; these only add a live Neo4j sync so paths accumulate # across runs. Pass the URI with --neo4j (or set NEO4J_URI); credentials # come ONLY from the environment, never flags, never written to disk. #NEO4J_URI=bolt://localhost:7687 #NEO4J_USER=neo4j #NEO4J_PASSWORD= #NEO4J_DATABASE=neo4j # Or skip all of the above: `neurosploit neo4j up` runs a local Neo4j in Docker and # runs use it automatically (connection saved to ~/.neurosploit/neo4j.json, mode 0600). # Salt for the graph's secret fingerprints (so credential reuse correlates # without storing any secret). Share one value across a team that shares a Neo4j. # Defaults to ~/.neurosploit/graph-salt when unset. #NEUROSPLOIT_GRAPH_SALT= # Target-authorization gate — OPTIONAL. When set, the harness verifies a signed # capability token (minted with `neurosploit capability issue`) before any recon # and refuses targets outside the grant. #NEUROSPLOIT_CAPABILITY_KEY= # # (For blind classes — SSRF/XXE/blind RCE — pass an out-of-band domain you # control with the --oob-domain flag; without it those are reported as leads.) # ------------------------------------------------------------------ # Run logs → OpenSearch (OPTIONAL). One index per project/customer/domain. # `docker compose -f docker-compose.opensearch.yml up -d` then: # neurosploit logs ping # neurosploit logs push --project acme #OPENSEARCH_URL=http://127.0.0.1:9200 #OPENSEARCH_USERNAME= #OPENSEARCH_PASSWORD= # Index template; {project} and {date} are substituted. #OPENSEARCH_INDEX=ns-{project} # Set to 0 only for a self-signed local endpoint. #OPENSEARCH_VERIFY_TLS=1 # Default project label when --project is omitted. #NS_LOG_PROJECT= # ------------------------------------------------------------------ # Public tunnel for OOB callbacks and webshells (OPTIONAL). ngrok only needs # the authtoken; `neurosploit tunnel --port 8080` starts the tunnel and a # local HTTP sink that records callbacks. #NGROK_AUTHTOKEN= #NEUROSPLOIT_TUNNEL_PORT=8080 #NEUROSPLOIT_TUNNEL_BIND=127.0.0.1 # ------------------------------------------------------------------ # Docker / PostgreSQL (used by docker-compose.yml) POSTGRES_USER=neurosploit POSTGRES_PASSWORD= # auto-generated by install.sh POSTGRES_DB=neurosploit # ------------------------------------------------------------------ # Web Console Authentication NS_JWT_SECRET= # auto-generated by install.sh NS_DEFAULT_USER=neurosploit # default login username NS_DEFAULT_PASSWORD= # auto-generated by install.sh; change after first login NS_PORT=8787 NS_BIND_ADDR=127.0.0.1 # 0.0.0.0 to listen on all interfaces # ------------------------------------------------------------------ # Sandbox / Worker NS_SANDBOX=required # required | optional | off NS_WORKER_IMAGE=neurosploit-kali:local # ------------------------------------------------------------------ # Output budgets. These are ceilings, not usage. Raise/lower per provider. #NEUROSPLOIT_MAX_TOKENS= #NEUROSPLOIT_CMD_CAP=1048576 #NEUROSPLOIT_C2_OUTPUT_CAP=524288 # ------------------------------------------------------------------ # Universal completion cache (ON by default). Identical prompts to the same # model are served from memory/disk instead of paid again. #NEUROSPLOIT_CACHE=on #NEUROSPLOIT_CACHE_TTL_SECS=604800 # Namespace the cache per engagement (default: current directory). #NEUROSPLOIT_CACHE_SCOPE= # Self-improvement review: cheap model used by `neurosploit improve`. #NEUROSPLOIT_IMPROVE_MODEL=deepseek:deepseek-chat # ------------------------------------------------------------------ # Phishing / Evilginx (authorized engagements only). # The module is disabled by default and requires: # neurosploit phish enable --authorization "SOW/ticket/URL" # State, generated phishlets and captures live under .neurosploit/phish/. #NEUROSPLOIT_PHISH_DIR=.neurosploit/phish #NEUROSPLOIT_PHISH_OUTPUT_CAP=65536 # ------------------------------------------------------------------ # Reactive worker tool loop (opt-in with --worker-tools). Cost control: # a single shared budget across all workers bounds total LLM rounds, tool # executions and concurrency. Identical tool commands are deduped/reused. #NEUROSPLOIT_WORKER_TOOL_MAX_CALLS=60 #NEUROSPLOIT_WORKER_TOOL_MAX_ROUNDS=80 #NEUROSPLOIT_WORKER_TOOL_CONCURRENCY=3 # Per-intent round cap (priority-weighted, <= this). Default 4. #NEUROSPLOIT_WORKER_TOOL_ROUNDS=4 # ------------------------------------------------------------------ # Operator checkpoints for high-impact actions (off | record | enforce). # Off by default. `enforce` blocks DCSync / ADCS abuse / delegation abuse / # credential dumping / persistence / lateral exec / destructive commands unless # the action id is allow-listed. Activity + audit record every decision. #NEUROSPLOIT_CHECKPOINTS=off # Comma list of action ids to allow under enforce (e.g. ad.dcsync,ad.adcs-abuse), # or * to allow every high-impact action. #NEUROSPLOIT_CHECKPOINT_ALLOW= #NEUROSPLOIT_CHECKPOINT_ALLOW_HIGH=0 # ------------------------------------------------------------------ # Planner/Worker architecture (opt-in). When enabled, the pipeline # delegates exploitation to a planning loop: a planner LLM reads the # exploration graph and emits investigation intents, workers execute # them in parallel, results feed back into the graph. Repeats until # no new intents, budget exhausted, or max rounds reached. #NEUROSPLOIT_PLANNER=1 #NEUROSPLOIT_PLANNER_ROUNDS=5 # max planner iterations (1-12) #NEUROSPLOIT_PLANNER_INTENTS=5 # max intents per round (1-10) # ------------------------------------------------------------------ # Traffic recording. Captures every HTTP request/response as evidence. # Writes traffic.json + traffic.har in the run workdir. #NEUROSPLOIT_TRAFFIC=1 #NEUROSPLOIT_TRAFFIC_MAX=10000 # max entries before rotation #NEUROSPLOIT_TRAFFIC_BODY_MAX=32768 # max body bytes per entry # ------------------------------------------------------------------ # LLM failover pool. Circuit breaker threshold and recovery time. #NEUROSPLOIT_BREAKER_THRESHOLD=3 # failures before tripping #NEUROSPLOIT_BREAKER_RECOVERY=60 # seconds to wait before retry # ------------------------------------------------------------------ # Reverse engineering. Set Ghidra home for decompilation; without it # the harness falls back to objdump/readelf/strings. #NEUROSPLOIT_GHIDRA_HOME=/opt/ghidra # ------------------------------------------------------------------ # Scope relaxation (all off by default — opt-in per engagement) #NEUROSPLOIT_SCOPE_AUTO_EXPAND=0 # auto-expand scope for same-domain discovered hosts #NEUROSPLOIT_SCOPE_FOLLOW_AUTH=0 # follow redirects to SSO/OAuth providers #NEUROSPLOIT_SCOPE_EXPAND_ASN=0 # expand to same-org IP ranges via ASN lookup # ------------------------------------------------------------------ # Planner / worker architecture (opt-in with NEUROSPLOIT_PLANNER=1) #NEUROSPLOIT_PLANNER=0 #NEUROSPLOIT_PLANNER_ROUNDS=5 # max planner wake cycles #NEUROSPLOIT_PLANNER_WORKERS=3 # concurrent workers per planner round # ------------------------------------------------------------------ # Noise profile (how aggressive the scan pacing is) #NEUROSPLOIT_NOISE=balanced # quiet | balanced | aggressive #NEUROSPLOIT_RATE_LIMIT_RPM=60 # LLM API requests per minute #NEUROSPLOIT_RATE_LIMIT_RPS=5 # LLM API requests per second # ------------------------------------------------------------------ # USD budget — stop exploring when this is exhausted (empty = unlimited) #NEUROSPLOIT_BUDGET_USD= # Exploration loop #NEUROSPLOIT_EXPLORE_ROUNDS=3 # max chained skill rounds #NEUROSPLOIT_EXPLORE_PER_ROUND=5 # max skills per round #NEUROSPLOIT_EXPLORE_MAX=20 # max total skill runs # ------------------------------------------------------------------ # Ghidra / Reverse Engineering (optional — enhances binary analysis) #NEUROSPLOIT_GHIDRA_URL=http://localhost:9100