Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
ruveydacPublic

Latest commit

 

History

265 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTserver

Self-hosted OT inventory with automatic discovery

Native OT discovery · Quality-aware inventory · Site-scoped access · Immutable history

Website Next.js codecov MongoDB Rust AGPL v3

Quick start · Features · Otter · Development


Self-hosted asset management for operational technology (OT) networks.

OTserver helps you keep track of industrial devices, where they are installed, and how they change over time. Add assets manually or import discovery results from OTserver Otter, Siemens PRONETA, or Nmap.

OTserver asset management dashboard

What you can do

  • Maintain an inventory of device manufacturers, models, firmware, protocols, ownership, and custom fields.
  • Create manual or rule-matched tags, group them for administration, and filter assets by tag.
  • Organize assets into sites using a hierarchy that fits your organization.
  • Give teams read-only or read/write access to the sites they manage.
  • Combine discovery results while preserving manual edits and the source of each value.
  • Search and filter assets, inspect topology, and review an immutable change history.
  • Enroll Otter scanners, configure discovery, schedule scans, and review results centrally.
  • Find and review potential vulnerability matches using recorded device metadata and local catalogs. Confirm, dismiss, resolve, and reopen findings without probing devices; changed matching criteria flag confirmed findings for review.

Quick start

With Docker Engine and Compose installed, save this as compose.yaml:

services:
  otserver:
    image: ghcr.io/ruveydac/otserver:latest
    restart: unless-stopped
    ports:
      - '3000:3000'
    environment:
      DATABASE_URL: mongodb://mongo:27017/otserver?replicaSet=rs0
      OTSERVER_SECRET: ${OTSERVER_SECRET:?Set OTSERVER_SECRET in .env}
    volumes:
      - import-files:/app/import-files
    depends_on:
      mongo:
        condition: service_healthy

  mongo:
    image: mongo:8
    restart: unless-stopped
    command:
      ['--replSet', 'rs0', '--bind_ip_all', '--setParameter', 'transactionLifetimeLimitSeconds=180']
    healthcheck:
      test:
        [
          'CMD',
          'mongosh',
          '--quiet',
          '--eval',
          'try { if (!rs.status().ok) quit(1) } catch (e) { rs.initiate({_id:"rs0",members:[{_id:0,host:"mongo:27017"}]}); quit(1) }',
        ]
      interval: 5s
      timeout: 5s
      retries: 30
    volumes:
      - data:/data/db

volumes:
  data:
  import-files:

Create a .env file beside it:

OTSERVER_SECRET=replace-with-a-long-random-secret

Keep this secret across restarts. Then start OTserver:

docker compose pull
docker compose up -d

Open http://localhost:3000/admin and create the first administrator account. The named volumes retain the database and uploaded import files. For a pinned deployment, replace latest with an exact release tag (X.Y.Z).

Signed-in users can open API documentation from the admin navigation for authentication examples, inventory endpoints, and a downloadable OpenAPI specification. The reference stays on the OTserver host and is not available to unauthenticated visitors.

MCP is off by default. An administrator can enable it under Settings > Application settings > Enable MCP access, then create a key under Settings > MCP keys for a selected user and allow Find for assets and/or sites on that key. Connect an MCP client to https://<your-host>/api/mcp using Authorization: Bearer <MCP key>. Only read tools are available, and reads follow the key owner's current site permissions. Disable MCP in Application settings to reject new MCP requests, or delete a key to revoke that client. Use HTTPS and store keys securely.

Firewall rules

Source Destination / URL Firewall rule Purpose
Users OTserver or HTTPS reverse proxy TCP 443 to the proxy, then TCP 3000 to OTserver; direct TCP 3000 only on a trusted network Web UI and API
OTserver and workers MongoDB TCP 27017 on a private network only Application data and jobs
Otter scanners HTTPS OTSERVER_PUBLIC_URL (/api/otter/v1/*, including /api/otter/v1/updates/{id}/binary, and /api/asset-imports*) Outbound TCP 443; no inbound scanner rule Enrollment, scans, uploads, and managed updates
OTserver and maintenance worker CISA KEV: https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
NVD: https://nvd.nist.gov/feeds/json/cve/2.0/nvdcve-2.0-YYYY.json.gz and https://nvd.nist.gov/feeds/json/cve/2.0/nvdcve-2.0-YYYY.meta
DNS UDP/TCP 53 and outbound TCP 443, when online sync is enabled CISA KEV and NVD catalogs
OTserver and maintenance worker CERT@VDE: https://aggregator.certvde.com/.well-known/csaf-aggregator/aggregator.json
CSAF provider directory: https://hub.isidaten.com/csaf-quellen.json
CISA CSAF OT/IT indexes: https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/OT/white/cisa-csaf-ot-feed-tlp-white.json and https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/cisa-csaf-it-feed-tlp-white.json
ICS Advisory: https://raw.githubusercontent.com/icsadvprj/ICS-Advisory-Project/main/ICS-CERT_ADV/CISA_ICS_ADV_Master.csv
Also allow provider metadata, ROLIE feeds, directory indexes, changes files, and advisory URLs referenced by the CSAF aggregators and administrator-configured custom CSAF sources; hosts can vary.
DNS UDP/TCP 53 and outbound TCP 443, when online sync is enabled CSAF and ICS Advisory catalogs
OTserver and maintenance worker; admin browser for manual downloads https://api.github.com/repos/ruveydac/otserver-otter/releases/latest; https://github.com/ruveydac/otserver-otter/releases; downloads may redirect to release-assets.githubusercontent.com or objects.githubusercontent.com DNS UDP/TCP 53 and outbound TCP 443, when release imports or manual downloads are used Otter release imports and manual downloads
OTserver and maintenance worker https://api.github.com/repos/ruveydac/OTserver-metadata and https://raw.githubusercontent.com/ruveydac/OTserver-metadata DNS UDP/TCP 53 and outbound TCP 443, when daily metadata updates are enabled Manufacturer and device metadata updates

Otter also needs access from the scanner to approved target networks for the configured discovery protocols. Ports depend on enabled probes; ARP, PROFINET DCP, LLDP, and CDP require the same Layer-2 segment. See Otter's supported discovery protocols.

Failed catalog and release requests are logged as warnings by the application logger, with the destination, status, and error. Query strings are omitted from logged URLs. Isolated deployments can upload feeds and signed Otter releases manually.

Build your first inventory

  1. Create your site hierarchy under Sites.
  2. Add assets manually or create an import, selecting its site and discovery source.
  3. Review the import results, then open an asset to see its details and history.

Under Review > Lifecycle review, select one site to step through its active physical assets and virtual systems. The review shows CISA's high-priority inventory fields and their recorded values. Edit the fields on the page, explain fields that do not apply, and save corrections before continuing. After checking a record, enter its review date, reviewer, evidence, and next due date, then save the review. Virtual-system services are editable on the review page. Physical service bindings and mapped custom fields can be edited in their existing Payload records. The review uses the site's exact scope, not its descendants; it cannot discover missing assets or verify entered values automatically. Click or focus a review field to see its suggestions. Type a custom value when none fits; for multi-entry fields, press Enter to add it. Suggestions include known protocols, account roles recorded at the selected site, and common review evidence. When an administrator replaces an empty or Other asset class, they can also confirm an exact manufacturer-and-model rule for future automatic classification; declining saves the class without creating the rule.

Supported import formats are OTserver Otter JSON, Siemens PRONETA topology XML, and Nmap XML produced with -oX.

Discovery with OTserver Otter

OTserver Otter is the companion discovery tool for Windows and Linux. It uses read-only industrial protocol requests to collect device identities, network interfaces, and topology. Only scan networks you own or are authorized to assess.

Download it from the Otter releases page, run discovery, and import the resulting JSON into OTserver. You can also enroll scanners in OTserver to manage configurations and schedules centrally.

For managed scanners, set a stable OTSERVER_OTTER_ENCRYPTION_KEY and configure the public controller URL under Settings > Application settings. See Otter management for setup.

Before upgrading an installation with managed Otter configurations, finish or cancel pending runs and back up the database. The migration runs on production startup, or you can run pnpm migrate from the upgraded source checkout. It disables IO-Link and CDP in saved configurations that had no setting for them. To opt in, clear the corresponding Disable checkbox under Discovery and protocols. Managed configurations that disable IO-Link require Otter 0.18.0 or newer; disabling CDP requires Otter 0.17.0 or newer.

Development and technical guidance

Local development requires Node.js 22, pnpm 10, and a MongoDB 8 replica set:

cp .env.example .env
# Set DATABASE_URL and replace OTSERVER_SECRET with a long random value.
pnpm install
pnpm dev

See here for architecture, domain rules, worker configuration, runtime sizing, vulnerability-feed operations, and test commands.

License

OTserver and OTserver Otter are dual-licensed:

  1. GNU Affero General Public License v3.
  2. A commercial license for enterprises, SaaS providers, and organizations integrating OTserver.

The open-source core will remain open source, including the scanner, detection needed to find assets and device capabilities, and base asset-management features. Optional proprietary add-ons, such as SSO integrations or customized dashboards, do not replace or restrict that core.

For commercial licensing, SLA support, or enterprise features, visit otserver.org/enterprise.

Releases

Sponsor this project

Packages

Used by

Contributors

Languages