Environment:AIPentest CyberStrikeAI Go 1 25 Plus
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Backend |
| Last Updated | 2026-10-19 00:00 GMT |
Overview
Go 1.25+ toolchain required to build and run the CyberStrikeAI Go server, CLI entry points, and all `internal/` packages.
Description
CyberStrikeAI is a Go application. The module declared in `go.mod` targets `go 1.25.0`, and the build/run/upgrade scripts enforce a minimum Go version before compiling the server. This environment covers the primary server (`cmd/server`), the MCP stdio bridge (`cmd/mcp-stdio`), the diagnostic CLIs (`cmd/test-config`, `cmd/test-external-mcp`), and the entire `internal/` library (app wiring, database, multiagent, attackchain, toolguard, einomcp, project, skillpackage, typesafe, c2, security).
Usage
Use this environment for any build, run, self-update, or test workflow of the CyberStrikeAI Go binary. It is the mandatory prerequisite for the App_New_RunWithContext composition root and every implementation that ships as compiled Go code.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux / macOS / Windows | Linux recommended for production deployment |
| Hardware | 2+ CPU cores, 1GB+ RAM | Minimum for development; scale for engagement load |
| Disk | 500MB+ free | Go toolchain + module cache + compiled binary |
| Software | Go toolchain >= 1.25 | `go.mod` declares `go 1.25.0`; run.sh enforces 1.21+ floor but build requires 1.25+ |
Dependencies
System Packages
- `go` >= 1.25.0 (toolchain; `go.mod` directive)
- `git` (module retrieval, self-update fast-forward)
- `gcc` / C toolchain (required by the `github.com/mattn/go-sqlite3` cgo build)
Go Modules (direct, from go.mod)
- `github.com/cloudwego/eino` v0.9.21 (agent framework)
- `github.com/cloudwego/eino-ext/adk/backend/local` v0.2.6
- `github.com/cloudwego/eino-ext/components/model/agenticclaude` v0.1.7
- `github.com/cloudwego/eino-ext/components/model/agenticopenai` v0.2.4
- `github.com/modelcontextprotocol/go-sdk` v1.3.1 (MCP SDK)
- `github.com/mattn/go-sqlite3` v1.14.18 (SQLite driver, cgo)
- `github.com/gin-gonic/gin` v1.9.1 (HTTP server)
- `github.com/gorilla/websocket` v1.5.3
- `github.com/robfig/cron/v3` v3.0.1
- `github.com/pkoukk/tiktoken-go` v0.1.8 (token counting)
- `github.com/google/uuid` v1.6.0
- `github.com/bytedance/sonic` v1.15.0 (JSON)
- `go.uber.org/zap` v1.26.0 (logging)
- `go.opentelemetry.io/otel` v1.39.0 (tracing)
- `golang.org/x/crypto` v0.50.0
- `gopkg.in/yaml.v3` v3.0.1 (config parsing)
Credentials
No Go-toolchain-level credentials are required. The build may optionally set:
- `GOPROXY` — Go module proxy (e.g. `https://goproxy.cn,direct`) when direct access to proxy.golang.org is unavailable.
Quick Install
# Install Go 1.25+ (Linux example)
wget https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.25.0.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
# Verify
go version
# Build the server
go build -o cyberstrike-ai ./cmd/server
# Optional: configure a mirror if module downloads time out
go env -w GOPROXY=https://goproxy.cn,direct
Code Evidence
Go version directive from `go.mod:5`:
go 1.25.0
Go version check from `run.sh:120-142` (the script enforces a 1.21+ floor for the launcher, but the module itself requires 1.25):
check_go() {
if ! command -v go >/dev/null 2>&1; then
error "Go not found"
info "Install Go 1.21 or later first:"
...
exit 1
fi
GO_VERSION=$(go version | awk '{print $3}' | sed 's/go//')
GO_MAJOR=$(echo "$GO_VERSION" | cut -d. -f1)
GO_MINOR=$(echo "$GO_VERSION" | cut -d. -f2)
if [ "$GO_MAJOR" -lt 1 ] || ([ "$GO_MAJOR" -eq 1 ] && [ "$GO_MINOR" -lt 21 ]); then
error "Go version too old: $GO_VERSION (requires 1.21+)"
exit 1
fi
}
Upgrade harness version gate from `upgrade.sh:184`:
err "Install Go (this module requires Go 1.25 or newer):"
README prerequisite from `README.md:195`:
- Go 1.25+ (Install; required by go.mod)
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `go: go.mod requires go >= 1.25.0` | Go toolchain older than module directive | Install Go 1.25+ from https://go.dev/dl/ |
| `go: download timed out` / module fetch failures | Cannot reach default Go proxy | `go env -w GOPROXY=https://goproxy.cn,direct` |
| `cgo: C compiler "gcc" not found` | Missing C toolchain for go-sqlite3 | Install `build-essential` / `gcc` (Ubuntu) or Xcode CLT (macOS) |
| `run.sh: Go version too old` | run.sh floor (1.21) not met | Upgrade Go to 1.25+ to satisfy both the script and the module |
Compatibility Notes
- run.sh floor vs go.mod: `run.sh` historically checks for Go 1.21+ as a launcher floor, but `go.mod` declares `go 1.25.0`; the actual build requires Go 1.25+. The `upgrade.sh` harness explicitly requires Go 1.25+.
- CGO: The `github.com/mattn/go-sqlite3` dependency is a cgo package; a C compiler (`gcc`/`clang`) is mandatory even though the rest of the codebase is pure Go.
- Windows: Builds but production deployment targets Linux; cgo toolchain setup on Windows requires `mingw-w64`.
Related Pages
- Implementation:AIPentest_CyberStrikeAI_App_New_RunWithContext
- Implementation:AIPentest_CyberStrikeAI_runEinoADKAgentLoop
- Implementation:AIPentest_CyberStrikeAI_config_Load
- Implementation:AIPentest_CyberStrikeAI_update_Check
- Implementation:AIPentest_CyberStrikeAI_update_Apply
- Implementation:AIPentest_CyberStrikeAI_update_Rollback
- Implementation:AIPentest_CyberStrikeAI_External_MCP_Connectivity_Validation
- Implementation:AIPentest_CyberStrikeAI_Toolguard_Manager_Check
- Implementation:AIPentest_CyberStrikeAI_mcpToolAuthorizer
- Implementation:AIPentest_CyberStrikeAI_DB_reconcileSchema
- Implementation:AIPentest_CyberStrikeAI_einomcp_ToolsFromDefinitions
- Implementation:AIPentest_CyberStrikeAI_DB_CreateConversation
- Implementation:AIPentest_CyberStrikeAI_Audit_Service