Skip to content

v0.4.0

Latest

Choose a tag to compare

@dimamik dimamik released this 17 May 17:14
d18cd70

Security

  • Harden Legion.Sandbox.ASTChecker against a class of RCE paths. After this release, most (if not all) RCE vectors should be closed. Legion is still vulnerable to DoS kinds of attacks, but we assume that having a system prompt instruction to behave well AND improving sandbox should be enough for now.

Changes

  • Broaden the sandbox surface for common LLM idioms: allow Map.values/1, JSON, URI, :erlang.float_to_binary/2, additional String/Enum/Date/DateTime functions, and the Access protocol (map[:k])
  • Document the sandbox constraints with concrete idioms in the system prompt
  • Fix tool source extraction breaking on heredocs and charlists
  • Correct documentation for telemetry events, source registry, and AgentTool.start_link/2