Skip to main content

Architecture

ProjectAchilles follows a three-tier architecture: a React SPA frontend, an Express API backend, and Go agents deployed to target endpoints. Elasticsearch stores test results for analytics, while SQLite manages agent state.

System Overview​

Data Flow​

Test Execution Flow​

Agent Enrollment Flow​

Tech Stack​

LayerTechnologyVersionPurpose
FrontendReact19.3UI framework
Vite8.3Build tool and dev server
Tailwind CSS4.1Utility-first styling
Redux Toolkit2.14State management
React Router7.18Client-side routing
Clerk5.xAuthentication
BackendExpress4.22HTTP framework
TypeScript5.9Type-safe development
better-sqlite3—Agent database
@elastic/elasticsearch8.xAnalytics queries
AgentGo1.26Cross-platform binary
AnalyticsElasticsearch8.17Result storage and aggregation
Signingosslsigncode—Windows Authenticode
rcodesign—macOS ad-hoc signing
CIGitHub Actions—Tests, CodeQL, Semgrep, dependency audit, releases

Project Structure​

ProjectAchilles/
├── frontend/ # React 19 + TypeScript + Vite
│ └── src/
│ ├── components/ # Layout shell and shared UI primitives (Button, Card, etc.)
│ ├── pages/ # Pages (dashboard, tests, analytics, endpoints, campaigns, settings)
│ ├── services/api/ # API client modules
│ ├── hooks/ # Custom hooks (useAuthenticatedApi, etc.)
│ └── store/ # Redux slices
├── backend/ # Express + TypeScript (ES modules)
│ └── src/
│ ├── api/ # Route handlers (*.routes.ts)
│ ├── services/ # Business logic by module
│ │ ├── agent/ # Enrollment, heartbeat, tasks, schedules
│ │ ├── analytics/ # Elasticsearch queries, client factory
│ │ ├── browser/ # Git sync, test indexing
│ │ ├── tests/ # Go cross-compilation, cert management
│ │ ├── campaigns/ # Saved campaigns, runs, evidence matrix
│ │ ├── notices/ # Pre-execution notices
│ │ ├── outcomes/ # Verdict rules, EDR vendor registry
│ │ ├── reports/ # Execution report and export payloads
│ │ ├── edr/ # Vendor-neutral EDR enrichment and analytics
│ │ ├── defender/ # Microsoft Graph API client
│ │ ├── crowdstrike/ # CrowdStrike Falcon API client
│ │ ├── sentinelone/ # SentinelOne Management API client
│ │ ├── sophos/ # Sophos Central API client
│ │ └── alerts/ # Slack + email dispatch
│ ├── middleware/ # Auth, error handling, rate limiting
│ └── types/ # TypeScript definitions
├── backend-serverless/ # Vercel serverless fork (Turso + Blob)
├── agent/ # Go agent source
│ ├── main.go # CLI entry point (--enroll, --run, --install, --status)
│ └── internal/ # Agent modules
│ ├── config/ # Configuration management
│ ├── enrollment/ # Token-based registration
│ ├── executor/ # Test binary execution, leftover cleanup
│ ├── httpclient/ # HTTP client with auth
│ ├── poller/ # Task polling loop
│ ├── queue/ # On-disk queue for unsent results
│ ├── reporter/ # Result reporting
│ ├── service/ # OS service management
│ ├── store/ # Persistent agent state
│ ├── sysinfo/ # Platform-specific system info
│ └── updater/ # Self-update mechanism
├── installer/ # achilles-installer (Go TUI wizard for server installs)
├── appliance/ # Windows Hyper-V appliance image
├── cli/ # Command-line client
├── scripts/ # Start, deploy and install scripts
├── deploy/ # Caddy config, lab endpoint, offline kit
├── docs/ # Changelog, deployment guides, design notes
├── wiki/ # This documentation site (Docusaurus)
├── blog/ # Blog (Next.js)
└── docker-compose*.yml # Local, single-server and lab deployments

Deployment Architecture​

ProjectAchilles supports several deployment targets, each with different trade-offs:

TargetBackendDatabaseFile StorageAgent BuildsCost
Docker Composebackend/SQLite (volume)Filesystem (volume)YesFree
Public or on-prem server (Caddy, one origin)backend/SQLite (volume)Filesystem (volume)YesYour server
Windows Hyper-V appliancebackend/SQLite (volume)Filesystem (volume)YesYour host
Renderbackend/SQLite (persistent disk)Filesystem (disk)Partial~$14/mo
Fly.iobackend/SQLite (volume)Filesystem (volume)Yes~$8/mo
Vercelbackend-serverless/Turso (libSQL)Vercel BlobNo~$20/mo

The Vercel target uses a purpose-built serverless fork (backend-serverless/) that replaces SQLite with Turso, filesystem with Vercel Blob, and process-based scheduling with Vercel Cron jobs. It lacks several features: Go builds, campaigns, pre-execution notices, alerting, SentinelOne, Sophos, console identity, API keys and CLI sign-in. See Deployment Overview for detailed comparisons.

End-to-End Data Flow​

The following diagram shows the complete journey of data through the platform — from test discovery to defense metrics:

Detailed Execution Sequence​

Integration Data Flows​

Beyond the core test execution pipeline, several integration-specific flows run in parallel:

Microsoft Defender Sync (background, every 5 min / 6 hours):

Microsoft Graph API → Graph Client → Sync Service → achilles-defender index

CrowdStrike Falcon Sync (background, alerts every 5 min / ZTA every 6 hours):

CrowdStrike Falcon API → Falcon Client → Sync Service → achilles-crowdstrike index

SentinelOne and Sophos Sync (background, backend only; alerts every few minutes, posture every 6 hours):

SentinelOne Management API → S1 Client → Sync Service → achilles-sentinelone index
Sophos Central API → Sophos Client → Sync Service → achilles-sophos index

EDR Evidence (after every EDR poll): the enrichment pass matches alerts to the test runs that caused them and writes detection and prevention flags on the result documents. Two further passes turn an agent run that the EDR killed, and a test launch that the EDR blocked (exit 260), into Protected results when an alert proves it.

Alert Evaluation (triggered per result ingestion):

Result Ingestion → Defense Score Query → Threshold Check → Slack/Email Dispatch

Risk Acceptance (user-initiated):

Accept Risk → achilles-risk-acceptances index → Exclusion Filter Cache → Defense Score recalculation