ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.
Python active-directorycloud-securitydefensive-validationfastapigood-first-issuemitre-attackopsecreactred-teamreportingsecurity
docs: remediate third-party review feedback on test architecture, docker deployment, and security claims
Mafifrizid68254f120b5
diff --git a/Dockerfile b/Dockerfilenew file mode 100644index 0000000..305d58e--- /dev/null+++ b/Dockerfile@@ -0,0 +1,71 @@+# ── Stage 1: Frontend builder ─────────────────────────────────────────────────+FROM node:22-bookworm-slim AS frontend-builder++WORKDIR /frontend+COPY frontend/package.json frontend/package-lock.json ./+RUN npm ci+COPY frontend/ ./+RUN npm run build++# ── Stage 2: Python wheel builder ─────────────────────────────────────────────+FROM python:3.11-slim AS builder++WORKDIR /build+COPY pyproject.toml README.md ./+COPY ares/ ./ares/+COPY migrations/ ./migrations/+# Build wheel for reproducible installs+RUN pip install --no-cache-dir build \+ && python -m build --wheel \+ && ls dist/++# ── Stage 3: Runtime ──────────────────────────────────────────────────────────+FROM python:3.11-slim AS runtime++# Security: non-root user+RUN groupadd --system ares && useradd --system --gid ares --no-create-home ares++# OS deps for weasyprint PDF generation only - curl removed (use Python healthcheck)+RUN apt-get update && apt-get install -y --no-install-recommends \+ libpango-1.0-0 libpangoft2-1.0-0 libgdk-pixbuf2.0-0 \+ libffi-dev libcairo2 \+ && rm -rf /var/lib/apt/lists/*++WORKDIR /app++# Install built wheel.+# Base wheel includes all core dependencies.+# Add [pdf] for PDF report generation (weasyprint).+# Add [ad] for Active Directory modules (impacket, ldap3).+# Add [cloud] for AWS/Azure/GCP modules (boto3, azure-identity, google-cloud).+# Add [postgres] for PostgreSQL backend (asyncpg).+# Adjust extras to match your deployment requirements.+COPY --from=builder /build/dist/*.whl .+RUN pip install --no-cache-dir "$(ls *.whl)[pdf]" && rm *.whl++# Note: config is embedded in the wheel. No external config/ directory needed.++# Dashboard static assets built by the Node stage.+COPY --from=frontend-builder /frontend/dist /app/frontend/dist++# Runtime directories+RUN mkdir -p /data/campaigns /data/reports /var/log/ares \+ && chown -R ares:ares /app /data /var/log/ares++USER ares++# Environment defaults (override in docker-compose or k8s secrets)+ENV ARES_API_HOST=0.0.0.0 \+ ARES_API_PORT=8080 \+ ARES_DATABASE_URL=sqlite:////data/ares.db \+ ARES_DASHBOARD_DIST=/app/frontend/dist \+ ARES_LOG_FILE=/var/log/ares/ares.log \+ ARES_LOG_LEVEL=INFO++EXPOSE 8080++# Python-based healthcheck - no curl needed in runtime image+HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \+ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')" || exit 1++CMD ["python", "-c", "from ares.api.server import start; start()"]diff --git a/README.md b/README.mdindex 036aef6..78df745 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@### Operator-Directed Red Team Orchestration & Continuous Security Validation Platform-**The open-core platform empowering enterprise red teams, MSSPs, and security operations centers to execute targeted offensive engagements, discover deterministic attack paths, and continuously validate defensive posture with zero collateral risk.**+**The open-core platform empowering enterprise red teams, MSSPs, and security operations centers to execute targeted offensive engagements, discover deterministic attack paths, and continuously validate defensive posture with deterministic scope enforcement and fail-closed isolation controls.**<br>@@ -15,7 +15,7 @@[](docs/modules.md)[](docs/security-model.md)[](LICENSE)-[](tests/)+[](tests/)[](https://github.com/sponsors/Mafifrizi)[](https://saweria.co/mafifrizi)@@ -522,7 +522,26 @@ $env:ARES_PDF_BROWSER = "C:\Program Files (x86)\Microsoft\Edge\Application\msedgOpen your browser to **`http://127.0.0.1:5173/dashboard/`**.- **Initial Operator**: `admin`-- **Initial Password**: Configured via `ARES_DEFAULT_ADMIN_PASSWORD` in `.env` (default: `Admin123456!`)+- **Initial Password**: Configured via `ARES_DEFAULT_ADMIN_PASSWORD` in `.env` (mandatory; minimum 12 characters; no hardcoded default).++### Verification & Testing Architecture++ARES maintains a comprehensive test suite of **5,074 automated tests** covering core orchestration, cryptography, scope firewalls, Active Directory tradecraft, API security policies, and PostgreSQL database migrations:++- **Fast Unit Tests (Recommended for local dev & PR gates)**:+ ```powershell+ pytest tests/unit -q+ ```+- **Parallel Execution (Multi-core acceleration)**:+ ```powershell+ pytest tests/unit -n auto -q+ ```+- **PostgreSQL Integration Tests (Requires running database)**:+ ```powershell+ pytest tests/integration/test_postgres_*.py -q+ ```+- **Full Monolithic Suite Notice**:+ Executing all 5,074 unit, integration, and simulation tests sequentially on a single thread requires approximately 45–65 minutes. Automated testing harnesses or CI pipelines should enforce partitioned or parallel execution (`tests/unit`) rather than imposing short timeouts on the monolithic suite.### Seamless Platform Updates & In-Place Upgrades (`ares update` & `ares upgrade`)@@ -783,6 +802,6 @@ ARES is distributed under the open-source **[MIT License](LICENSE)**.<div align="center">**ARES - Modern Red Team Engagement & Continuous Security Validation System.**-*Continuous Security Validation. Zero Collateral Risk.*+*Continuous Security Validation. Deterministic Scope Containment.*</div>