For Industrial & IoT, go to portainer.industries · For Kubernetes management, go to portainer.io
Technical detail

How Portainer-AiSecure works

The architecture and platform detail behind the Portainer-AiSecure product page, for your security architects and engineers.

How it works

A coordinator in your core, an agent in every segment

Portainer-AiSecure has two parts. The coordinator is a central MisterShell deployment in your core. The agents run at the edge, one in each network segment. The coordinator directs the agents, and the agents carry out the work from inside the segment they sit in.

How Portainer-AiSecure works A self-hosted open-weight model that you run connects to the coordinator in your core. The coordinator directs agents at the edge, one per network segment. Each agent works on network-attached devices and applications in its segment. Your model Self-hosted open-weight LLM Run by you Coordinator MisterShell Central deployment in your core Directs the agents Agents at the edge Segment A Segment B Segment C One agent per network segment Targets Network- attached devices and apps

The coordinator

A central MisterShell deployment in your core. It connects to your model and directs the agents.

The agents

Run at the edge, one per network segment. Each runs simulated attacks on the network-attached devices and applications in its segment, and listens to the network to hunt systems that are already compromised.

Your model

An enterprise self-hosted, open-weight LLM that you run. It coordinates and creates the attacks, and it is unrestricted for authorized security testing. Portainer can recommend a model if you need one.

What it does

MisterShell is the platform underneath

Portainer-AiSecure is built on MisterShell, a self-hosted privileged access and fleet intelligence platform. The rest of this page describes what the platform does: sessions, policy, inventory, monitoring, and audit.

Connect

Shells, SQL, RDP, VNC, and web apps, in the browser or from your own SSH client, recorded for replay.

Govern

A policy firewall on every session and every command.

Inventory

Locations and resources, identified and kept up to date.

Monitor

Dashboards, a map, live health, trends, and an event feed.

Detect and collect

Passive IDS sensors and searchable device syslog, as licensed add-ons.

Track

Configuration drift, down to individual elements.

Automate

Event-driven playbooks built in a visual studio, with human approval steps.

Report

On demand or scheduled, with AI executive summaries.

Ask

An opt-in AI assistant in chat, in sessions, and in playbooks.

Sessions

Every kind of session, from one place

From the location tree, Connect opens the right session type for each resource. Each session runs through a worker in the resource’s location, so there is no direct network path from the workstation to the device.

SSH and console

Network devices, Linux hosts, and Windows hosts.

Cloud and Kubernetes

Pre-authenticated aws, az, and kubectl shells signed in on your behalf.

Database

PostgreSQL, MySQL, MariaDB, SQL Server, and ClickHouse.

Remote desktop

Windows over RDP, any desktop over VNC.

Web application

Admin consoles and portals over HTTPS, in a headless browser.

Record and replay

Terminal timeline or visual replay, set per Recording Policy.

The built-in SSH gateway gives a text UI, direct connections for ssh, sftp, scp, WinSCP, and FileZilla, and SFTP access to catalog files, all under the same policies and recording. Any interactive session can be shared with teammates or account-less external guests, observed read-only, terminated, or held behind human approval before access.

Govern

Seven policy engines, first match wins

Each engine is an independent, ordered decision chain over its own stream. Rules are evaluated top to bottom and the first match decides. A Notify action raises an automation event, and decisions feed the Policy Log, the compliance heatmap, and your SIEM.

PolicyOn a match it can
SessionAccept or deny a session or a command
RecordingRecord or skip, and pick the store and retention
File TransferAccept or deny a file copy
FactPass or fail a compliance rule
ConfigBind templates to render and push
IDSNotify, log, or suppress an alert
SyslogLog, notify, forward, or discard

A firewall for sessions and commands

Session Policy is checked twice, when the session opens and again on every command, at the worker. With no matching Accept rule the answer is deny. Command lines are split on chaining operators and every piece must be accepted, so a rule that allows ls * does not let ls; rm -rf / through. The whole line is blocked and the session stays open.

Architecture

Three cooperating tiers

The core server is the control plane and system of record. Remote components (workers, IDS sensors, and session proxies) sit close to your resources and dial out to the core. People, scripts, and AI agents reach the same instance through four access surfaces: the web UI, the SSH gateway, a REST API, and an MCP endpoint.

MisterShell architecture Four access surfaces (web UI, SSH gateway, REST API, MCP) connect to the core server. Workers, IDS sensors, and proxies open outbound connections to the core. Workers reach managed resources. Access surfaces Web UI SSH gateway REST API MCP endpoint Users, scripts, CI, AI agents Core server Web UI, REST API, MCP Event bus Session gateway Policy engines Relational store In-memory store Embedded by default, external for production Remote components Worker IDS sensor Proxy Sensor and proxy are licensed add-ons Outbound only, one authenticated channel Resources SSH, RDP, VNC, web, cloud, K8s, SQL

Workers

Per site, region, or segment, routed by location. Stateless, with an optional syslog collector, and an embedded worker ships inside the core.

IDS sensors

Passively watch network traffic and stream alerts, routed by IDS Policy.

Proxies

A public bridge so external guests can join a session without ever reaching the core.

All remote components share one model: one outbound connection, token-based enrollment, and live status on the Fabric page.

Topologies and HA

Four topologies, and what you run yourself

MisterShell makes its own application tier highly available. In every multi-core topology you operate, and make highly available, the load balancer or GSLB, the database, the app-state store, and the object store.

TopologyCoresRegionsIn-region HAGeographicExternal services you run
All in One11NoNoNone, everything embedded
HA Cluster3 or more1YesNoDatabase, app-state store, load balancer, object store
Distributed1 per region2 or moreNoYesCentral database, app-state store, GSLB, object store
Distributed with HA3+ per region2 or moreYesYesCentral database, app-state store, GSLB, object store

Lose a core, keep the workspace

Under 25 sTypical automatic leader re-election, coordinated through a database lease
Exactly onceScheduled work is claimed atomically, so a handoff never double-runs or drops a tick
ReplicatedSession recordings stay replayable even if the hosting core dies mid-session
RollingCompatible releases replace cores one at a time while the cluster keeps serving

Workers are covered too. Several workers can serve one location, new sessions go to the online worker with the fewest active tasks, and a lost worker means new sessions go to its peers. Because workers are stateless, adding capacity is registering another one. Take and verify a database backup before any upgrade.

Security

Your infrastructure, your data, your rules

Self-hosted

You choose where data lives. Licensing is offline and never phones home.

Identity and RBAC

Local, LDAP, OIDC, and SAML sign-in, MFA, and roles scoped per location and feature.

Credentials

An encrypted vault, or HashiCorp Vault, OpenBao, AWS Secrets Manager, or Azure Key Vault read at connection time.

No exposed resources

Workers dial out, and guests connect only to a proxy.

Recorded evidence

Session replay, the policy log, approvals, and security audit trails, each kept as its own trail.

Log forwarding

Send MisterShell’s own audit events to syslog (RFC 3164, RFC 5424, CEF), your SIEM, or a webhook (JSON, Splunk HEC).

Every recording, whether terminal, RDP, VNC, or web, is SHA-256 hashed at capture, the hash is stored apart from the recording, and it is checked on replay. SSH host keys are strictly verified by default, for live sessions and background checks alike, and any change needs explicit acceptance.

AI assistant

An optional AI assistant for operators

The platform also includes an optional AI assistant. You register the model providers you want, you own the account and the billing, and nothing is sent to a provider until you invoke an agent. Attack coordination is described above and uses your self-hosted model.

AnthropicOpenAIAzure OpenAIGoogleBedrockMistralxAICohereOpenRouterOllama

Agents

A model, a prompt, and an allowed tool list. Built-in agents cover config analysis, session assistance, summaries, and chat, and you can create your own.

Tools and skills

Read inventory, changes, and events, and run read-only diagnostics, with more than 100 built-in skills.

Surfaces

Chat, Quick Assist, in-session help, Run Agent in playbooks, and an MCP endpoint for your own agents, opened with a personal API key.

Guardrails and audit

Limits on what can be injected into sessions per resource type, usage attributed per user, and a unified AI audit trail.

Compliance

Built to be audited

MisterShell publishes a control mapping that speeds up evidence gathering for your security, compliance, and audit teams. It is a mapping to help you answer auditor questions and agree scope, and the full version is at mistershell.com/compliance.

SOC 2ISO/IEC 27001:2022NIST SP 800-53 Rev 5PCI DSS v4.0CIS Controls v8IEC 62443ISO/IEC 42001NIST AI RMF
DomainMisterShell capabilityExample controls
Identity and accessSSO and MFA, location-scoped RBAC, approvals, session ACLsCC6.1, A.5.15, AC-3
Logging and auditPolicy log, approvals timeline, recordings, SIEM exportCC7.2, A.8.15, AU-2
Crypto and dataSelf-hosted, encrypted secrets, recordings in your object storeCC6.7, A.8.24, SC-28
SegmentationOutbound-only workers, File Transfer Policy, passive IDSCC6.6, A.8.22, SC-7
AvailabilityActive/active core mesh, replicated recordings, backupsA1.2, A.8.14, CP-10
Change trackingSnapshots, structured diffs, changelog, approved pushCC8.1, A.8.32, CM-3
Operational stateFact Policy checks and the compliance heatmapCC4.1, A.8.9, CA-7
AI governanceUser-scoped AI, tool limits, unified AI audit trailISO/IEC 42001, AI RMF

Sample control IDs shown as SOC 2, ISO/IEC 27001 Annex A, and NIST 800-53. MisterShell covers its own application tier; you run the load balancer, database, cache, and object store. It is not a full change-management system and does not ship canned CIS or PCI baseline suites.

Common questions

Portainer-AiSecure technical questions

Which model directs the attacks?

An enterprise self-hosted, open-weight LLM that you run, unrestricted for authorized security testing. Portainer can recommend a model if you need one.

Do my managed resources need to be exposed to the network?

No. MisterShell workers sit close to your resources and dial out to the core over one authenticated channel. External guests connect only to a proxy.

Can my team use its own SSH client?

Yes. The SSH gateway in the core accepts ssh, sftp, scp, WinSCP, and FileZilla connections, and applies the same policies and recording as browser sessions.

Is the AI assistant required?

No. The assistant is optional, runs on model providers you register, and nothing is sent to a provider until you invoke an agent. You can use a local model through Ollama.

What do I have to run myself?

In All in One, nothing, because everything is embedded. In any multi-core topology you operate the load balancer or GSLB, the database, the app-state store, and the object store, and you make them highly available.

Which compliance frameworks does it map to?

The published MisterShell control mapping references SOC 2, ISO/IEC 27001:2022 Annex A, NIST SP 800-53 Rev 5, PCI DSS v4.0, and CIS Controls v8, plus IEC 62443 for OT and ISO/IEC 42001 and NIST AI RMF for AI governance. It is a mapping to speed up evidence gathering, and you agree scope with your auditor.

Request a briefing

See it run against a network like yours

We will walk you through Portainer-AiSecure and show how the variant that fits your estate is deployed.