The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(security): update security reporting email address
Steven Enamakelff806f7019ce
diff --git a/.oss-scanner/Dockerfile b/.oss-scanner/Dockerfilenew file mode 100644index 0000000000..2e627c5593--- /dev/null+++ b/.oss-scanner/Dockerfile@@ -0,0 +1,41 @@+# Keep source, compilers and dependency caches for the scanner's offline audit.+FROM node:24-bookworm AS node+FROM rust:1.99.1-bookworm++ENV DEBIAN_FRONTEND=noninteractive \+ CARGO_BUILD_JOBS=2 \+ CARGO_INCREMENTAL=0 \+ CARGO_PROFILE_DEV_DEBUG=line-tables-only \+ RUSTFLAGS="-C force-frame-pointers=yes"++RUN apt-get update && apt-get install -y --no-install-recommends \+ build-essential ca-certificates clang cmake curl git libasound2-dev \+ libclang-dev libevdev-dev libssl-dev libx11-dev libxdo-dev libxtst-dev \+ pkg-config python3 \+ && rm -rf /var/lib/apt/lists/*++COPY --from=node /usr/local/bin/node /usr/local/bin/node+COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules+RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \+ && npm install --global [email protected]++COPY . /src+WORKDIR /src++# The scanner clones the top-level repository without recursive submodules.+RUN git submodule update --init --recursive --depth 1 --jobs 4+RUN pnpm install --frozen-lockfile+RUN cargo fetch --locked+RUN bash scripts/ci-cancel-aware.sh cargo build --locked -p openhuman-cli --bin openhuman-core+RUN pnpm build++# Fetch and verify native modules now; audit-time networking is disabled.+ENV OPENHUMAN_BUNDLED_MODULES=/src/target/oss-scanner-modules+RUN node scripts/release/stage-modules.mjs --output /src/target/oss-scanner-modules++# Leave unit-test tooling and caches in the image. No real service credentials+# are needed: service-dependent scenarios should use the repository's mocks.+# The default one-worker suite takes 27 minutes, exhausting tools/check's+# 45-minute clone/build/export budget. Use the project-supported CI settings+# and run the complete suite; leave failures visible.+RUN VITEST_MAX_WORKERS=2 VITEST_POOL=threads pnpm testdiff --git a/.oss-scanner/Dockerfile.dockerignore b/.oss-scanner/Dockerfile.dockerignorenew file mode 100644index 0000000000..cb3c3ab6e8--- /dev/null+++ b/.oss-scanner/Dockerfile.dockerignore@@ -0,0 +1,11 @@+# Override the production .dockerignore for this audit image. Keep .git,+# .gitmodules, app/, scripts/ and tests/: recursive setup and auditing need them.+**/target/+**/node_modules/+**/worktrees/+app/dist/+.vite/+**/.env+**/.env.*+!**/.env.example+**/.DS_Storediff --git a/.oss-scanner/README.md b/.oss-scanner/README.mdnew file mode 100644index 0000000000..5251e48422--- /dev/null+++ b/.oss-scanner/README.md@@ -0,0 +1,73 @@+# OSS Scanner setup++This directory maintains OpenHuman's audit environment and threat model for+[Anthropic OSS Scanner](https://github.com/anthropics/oss-scanner).+The enrollment request is+[anthropics/oss-scanner#849](https://github.com/anthropics/oss-scanner/pull/849).+Enrollment and scan scheduling are decided by Anthropic; these files alone do+not mean the service has accepted OpenHuman.++Security findings and build problems go to **[email protected]**, the+address published in [SECURITY.md](../SECURITY.md).++## Enrollment configuration++After these files are on OpenHuman's `main` branch, the scanner enrollment can+use the following `projects/openhuman/project.yaml`:++```yaml+repo: https://github.com/tinyhumansai/openhuman#main+primary_contact: [email protected]+dockerfile: .oss-scanner/Dockerfile+threat_model: .oss-scanner/threat_model.md+```++Remove any `Dockerfile` and `threat_model.md` beside that enrollment file when+switching to these paths: OSS Scanner requires each file in exactly one place.+Until then, the enrollment's existing files remain usable.++## Validate and build++From a checkout of `anthropics/oss-scanner` with that enrollment configuration,+run:++```bash+python3 tools/validate.py+python3 tools/check --no-shell openhuman+python3 tools/check openhuman+```++The final command opens the built image with networking disabled. For example,+run the complete frontend unit suite there with:++```bash+VITEST_MAX_WORKERS=2 VITEST_POOL=threads pnpm test+```++The Dockerfile builds the headless Rust core and React frontend, downloads and+verifies registry-pinned native modules, and runs the complete frontend unit+suite with the project's supported two-worker threads configuration. It keeps+source, build tools and dependency caches for offline investigation. Native+Tauri desktop builds and platform-specific GUI E2E tests are outside this+headless image; their source remains available for review.++For a direct Docker build, use a fresh standalone clone of OpenHuman as the+build context:++```bash+git clone https://github.com/tinyhumansai/openhuman.git openhuman-audit+cd openhuman-audit+docker build -f .oss-scanner/Dockerfile -t openhuman-audit .+```++A linked worktree has `.git` pointers outside the Docker context, so use a+standalone clone for this build. The Dockerfile initializes recursive+submodules itself. Its adjacent `Dockerfile.dockerignore` includes Git+metadata, frontend source, scripts and tests that the production+`.dockerignore` omits, while excluding local environment files and generated build+output.++Keep the Rust image version aligned with `rust-toolchain.toml`, the pnpm version+with `package.json`, and the threat model aligned with current host and module+boundaries. Use local mocks for reproductions that need backend responses;+never supply production credentials or contact production services.diff --git a/.oss-scanner/threat_model.md b/.oss-scanner/threat_model.mdnew file mode 100644index 0000000000..4880f6ed81--- /dev/null+++ b/.oss-scanner/threat_model.md@@ -0,0 +1,62 @@+# OpenHuman++OpenHuman is a React/Tauri desktop assistant with an in-process Rust core,+JSON-RPC server, CLI and terminal client. The Linux scanner image builds the+headless core and web frontend; native desktop integration still needs review+of the source in crates/openhuman-app.++## Trust boundaries and priorities++Untrusted input includes chat messages and attachments, model output and tool+arguments, web content, integration and MCP responses, imported files and+archives, and requests to the core's HTTP/JSON-RPC server.++Prioritize authentication and authorization, RPC origin and bearer validation,+credential handling, path traversal, archive extraction, tool execution and+sandbox escapes, cross-agent/user data access, and untrusted content reaching+frontend rendering or native IPC. Review native module admission and integrity+checks and the host adapters under crates/openhuman-core/src/modules.++Business logic lives in crates/openhuman-core/src; transport and server behavior+in crates/openhuman-rpc; hosted integration and login ownership in+crates/openhuman-tinyhumans; frontend rendering in app/src. Recursive vendor/+submodules contain the agent harness, tool types and loadable components.+Report integration defects and reachable dependency flaws with the owning+component identified.++## Intended execution policy++The assistant intentionally executes tools, including shell commands, with the+operator's granted access. The optional in-process autonomy policy is disabled+by default. Ordinary authorized tool execution is expected behavior. A useful+finding demonstrates crossing an actual boundary: bypassing authentication,+escaping a configured sandbox, accessing another identity's state, exposing+credentials, or turning untrusted content into execution without the required+user authorization. When testing the optional autonomy policy, explicitly+state the configuration and privileges used.++## Build and offline reproduction++The source is at /src; the core binary is target/debug/openhuman-core and the+frontend build is app/dist. Cargo and pnpm caches remain available. Registry+native modules are staged in target/oss-scanner-modules and selected through+OPENHUMAN_BUNDLED_MODULES.++Run `pnpm test` for frontend unit tests. Run focused Rust tests with+`cargo test --offline -p openhuman <filter> --lib`; root tests/ targets instead+belong to openhuman-cli (`cargo test --offline -p openhuman-cli --test <name>`).+Cargo dependencies are prefetched, but Rust test binaries are not precompiled.+Use scripts/mock-api-server.mjs and the repository's test helpers for scenarios+that need backend responses. Do not use production accounts, keys or services.+The full desktop GUI and platform-specific E2E suites are not built by this+headless recipe.++## Reporting++Provide the affected revision, configuration, attacker capabilities, concrete+reproducer, observed impact and a regression test where practical. Assess+severity by demonstrated impact and required privileges: unauthenticated code+execution or cross-user credential compromise is a priority; a crash limited+to an explicitly imported local file has a different impact. Avoid speculative+severity claims based solely on dangerous APIs or on intended tool access.+Do not publish findings or include real credentials or user data in reports.diff --git a/SECURITY.md b/SECURITY.mdindex b087af4d26..380c1e3dcb 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -19,7 +19,7 @@ We take security seriously. If you believe you have found a security vulnerabili### How to Report1. **Do not** open a public GitHub issue for security vulnerabilities.-2. Email the maintainers with a clear description of the issue, steps to reproduce, and impact. You can reach us via the contact details listed in the [OpenHuman organization](https://github.com/openhumanxyz) or repository.+2. Email [[email protected]](mailto:[email protected]) with a clear description of the issue, steps to reproduce, and impact. This is also the primary contact for automated security reports, including OSS Scanner findings.3. Include as much detail as possible (platform, version, configuration) so we can reproduce and triage quickly.### What to Expect