Skip to content

Libertocrat/star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

106 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

STAR - Secure Templated Actions Runtime

Safe actions. No raw shell.

STAR Logo

STAR lets workflows, AI agents, and low-code automations run safe, predefined actions through an authenticated API, without exposing raw shell execution.
Use real system capabilities without giving workflows or agents a general-purpose command runner.

Release License CI Security Release Pipeline Docker Python OpenAPI


Table of Contents

Quick Start

The fastest current path is to download the deploy bundle from the latest GitHub release, extract it, and launch STAR from there. Run this to set up and start STAR:

curl -fsSL https://github.com/Libertocrat/star/releases/latest/download/star-deploy.tar.gz -o star-deploy.tar.gz && \
tar -xzf star-deploy.tar.gz && \
cd star-deploy

That leaves ./star available as the top-level STAR lifecycle command.

Fast Deploy

./star --auto
./star status

This is the fastest path to a configured local runtime and a quick health check.

STAR fast deploy with ./star --auto

Important

STAR is designed to be managed from the top-level ./star command.

You should not need to edit Docker Compose files, manually create secrets, or enter star-runtime/ for the normal local workflow.

This gives you the local runtime control surface:

  • ./star for the guided interactive flow
  • ./star --auto for a non-interactive default deploy
  • ./star demo for built-in API demos
  • ./star status to inspect package, Docker, runtime, health, and docs state
  • ./star logs -f to follow runtime logs
  • ./star down to safely stop the runtime
  • ./star help to access command help

Requirements for the deploy flow are Docker and Docker Compose v2. Built-in demos also use curl and jq; if they are missing, the demo flow can prompt to install them automatically when possible. Most users should manage STAR from the directory that contains ./star, without entering star-runtime/ except to adjust .env, inspect the API token, or add custom YAML specs.

See STAR in Action

The ./star orchestrator is the primary lifecycle interface for package users. After deploying with ./star --auto or ./star, you may explore its capabilities using the demo command. Below is a live example.

Interactive Demo (File Encryption)

./star demo

This guided demo shows STAR handling a file through safe, predefined encryption and decryption actions instead of raw shell-driven workflow logic.

STAR managed file encryption demo

Other built-in demos, accessed by running ./star demo, include:

  • Files API walkthrough
  • Actions API walkthrough
  • Generate random tokens
  • Measure and inspect a text file
  • Search patterns in a text file

Why STAR?

Automation builders often need file operations, data transformation, inspection, artifact generation, or system helpers. The common shortcut is raw shell execution or a similarly broad runtime primitive.

That shortcut is flexible, but it is also broad, hard to audit, and dangerous in workflow and agent systems. Small mistakes in prompt handling, workflow logic, file access, or runtime exposure can become much larger incidents when arbitrary execution is available.

STAR replaces that pattern with authenticated, typed, allow-listed API actions. Use STAR when your automation needs real system capabilities, but you do not want to give workflows or agents a general-purpose command runner.

Important

STAR is designed to reduce exposure from unsafe automation patterns, not to magically remove all risk.

Its core value is replacing open-ended command execution with predefined, validated, controlled operations that are easier to audit, constrain, and reason about.

What STAR Gives You

  • a safer action/execution layer for workflows and AI agents
  • a clean HTTP API for predefined operations
  • managed file handling without exposing raw host paths
  • authenticated discovery and execution through /v1/actions
  • upload, metadata, download, list, and delete flows through /v1/files
  • Docker-first local runtime with sensible security defaults
  • built-in lifecycle tooling through ./star
  • OpenAPI docs for local exploration and integration

Under the hood, actions are defined as typed YAML specs, validated at startup, and compiled into a runtime registry before they can be invoked.

Warning

STAR intentionally narrows what callers can do. If your use case depends on arbitrary shell execution, STAR is designed to replace that pattern, not wrap it in a thinner UI. Users may define their own custom actions to cover their execution needs in a safer way.

How STAR Works

At a high level, STAR sits between an automation/AI system and the real system effects that would otherwise be exposed through raw command execution.

flowchart LR
WorkflowOrAgent[Workflow / Agent] --> API[STAR API]
API --> Contract[Typed Action Contract]
Contract --> Runtime[Controlled Runtime]
Runtime --> Output[Managed Output]
Loading

Before / After

Pattern Flow
Unsafe default Workflow or agent -> arbitrary shell command -> broad system effects
STAR model Workflow or agent -> authenticated STAR API -> validated params -> controlled runtime -> managed outputs

STAR still executes real commands under the hood, but only through validated action contracts, no-shell execution paths, managed files, policy checks, and sanitized outputs.

Documentation

Use this README for the quick overview, then go deeper through the focused docs:

Security Applicability

STAR is designed to act as a constrained tool-execution boundary in automation and agentic systems.

It does not replace model-layer safety, RAG security, RBAC, human approval, or deployment hardening. Its role is narrower: reduce the blast radius when workflows or agents need to trigger real system actions.

Workflow Automation RCE Context

STAR was born from a practical security problem: modern automation platforms often need to perform real system actions, but exposing broad command execution or overly flexible workflow-side code execution can turn small automation mistakes into full runtime compromise.

That concern became especially concrete after multiple n8n vulnerabilities disclosed across late 2025 and early 2026 illustrate how workflow automation features, expression evaluation, sandboxing, file access, and code-execution primitives can become high-impact attack paths. Relevant examples include CVE-2025-68613, CVE-2026-21858, CVE-2026-21877, CVE-2026-27497, CVE-2026-33660, and CVE-2026-42234.

Important

STAR is not an n8n patch, an LLM firewall, a RAG security product, or a full agent policy engine. It is a constrained tool-execution boundary that helps reduce the blast radius of unsafe tool invocation, command execution, file access, and unbounded runtime behavior.

OWASP Top 10 for LLM Applications

OWASP risk STAR relevance
LLM01:2025 Prompt Injection STAR does not detect prompt injection, but it helps contain prompt-to-tool abuse by exposing predefined, validated actions instead of arbitrary command execution.
LLM02:2025 Sensitive Information Disclosure STAR helps reduce disclosure paths through authenticated endpoints, managed file IDs, storage boundaries, and output/path sanitization.
LLM05:2025 Improper Output Handling STAR sanitizes stdout/stderr, strips unsafe control sequences, redacts sensitive paths, and bounds returned output.
LLM06:2025 Excessive Agency STAR helps reduce excessive agency by constraining execution to predefined, typed, allow-listed actions.
LLM10:2025 Unbounded Consumption STAR applies request-size limits, timeouts, rate limiting, upload limits, and bounded runtime output.

MITRE ATLAS Techniques Relevant to STAR

MITRE ATLAS technique STAR relevance
AML.T0050 Command and Scripting Interpreter STAR replaces public shell-style execution with validated action contracts and no-shell subprocess execution.
AML.T0051 LLM Prompt Injection STAR does not classify prompt intent, but it narrows what a compromised or manipulated agent can invoke downstream.
AML.T0053 AI Agent Tool Invocation STAR acts as a constrained tool boundary for AI agents and workflow systems.
AML.T0037 Data from Local System STAR reduces arbitrary local-file exposure through managed file APIs, UUID-based file references, and sandboxed storage.
AML.T0086 Exfiltration via AI Agent Tool Invocation STAR narrows exfiltration paths through constrained actions, file controls, output sanitization, and blocked binaries.
AML.T0072 Reverse Shell STAR reduces common reverse-shell pathways by avoiding shell-based public execution primitives.
AML.T0029 Denial of AI Service STAR applies request-size checks, timeouts, and rate limiting to reduce simple service-exhaustion pressure.
AML.T0034 Excessive Queries STAR helps reduce repeated abusive invocation patterns through API throttling and runtime limits.
AML.T0049 Exploit Public-Facing Application STAR hardens the execution boundary with authentication, request-integrity checks, structured errors, and runtime controls.

For the full analysis, see docs/AI_SECURITY.md.

Roadmap

Near term

  • implement an MCP server for safe action discovery, tag/intention-based action lookup, action execution, and managed file operations
  • publish AI-agent and n8n integration examples
  • expand the built-in safe action catalog

MCP and agent integration

  • expose /v1/actions discovery through MCP resources and tools
  • support action lookup by tags, capability, and caller intent
  • support safe action execution through MCP with typed parameters and bounded outputs
  • expose managed file operations from /v1/files through MCP for agent-accessible upload, metadata, content, listing, and deletion flows
  • document secure agent integration patterns for assistants, development pipelines, and workflow engines

Action DSL evolution

  • add postprocessing operations such as trim, split, regex capture, and structured outputs
  • support controlled multi-command pipelines for advanced actions
  • improve action packaging, reuse, and provenance validation

Security and policy

  • add JWT-based authentication and authorization
  • introduce action risk tiers, policy hooks, and caller identity propagation
  • expand output redaction for secrets, API keys, tokens, and PII
  • add static and dynamic malware scanning through a dedicated microservice
  • improve service-to-service security with mTLS for trusted internal deployments

Runtime, storage, and integrations

  • add MinIO/S3-backed managed file storage
  • explore gRPC for efficient internal service communication
  • add safe same-network file transfer patterns for microservice workflows
  • add dedicated media-processing docker images with ffmpeg, audio, and image tooling
  • add local and remote backup utilities for better developer and management experience

Security Reporting

Do not report vulnerabilities in public issues.

Use the coordinated disclosure process documented in SECURITY.md. For encrypted reporting, the repository includes SECURITY_PGP_KEY.asc.

License

STAR is licensed under the Apache License 2.0. See LICENSE for the full text.


About

STAR is a secure automation runtime for workflows and AI agents that need predefined system-level actions without arbitrary shell execution.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages