{% extends "base.html" %} {% block title %}LASSO — Sandbox {{ sandbox.id }}{% endblock %} {% block breadcrumb %}
  • {% endblock %} {% block content %}

    {{ sandbox.state | upper }} {{ sandbox.name }} {% if sandbox.network_mode == 'none' %}🔒{% elif sandbox.network_mode == 'restricted' %}⚠{% else %}⚠{% endif %} NET: {{ sandbox.network_mode | upper }}

    View Full Audit {% if sandbox.state == 'running' %}
    {{ csrf_token() }}
    {% endif %}
    {% include "partials/sandbox_status.html" %}
    {% if sandbox.state == 'running' %}
    sandbox@{{ sandbox.id[:8] }}
    LASSO Sandbox Terminal · {{ sandbox.command_mode }} mode · Type a command below · Press / to focus
    {{ csrf_token() }}
    {% else %}

    Sandbox Not Running

    Start the sandbox to execute commands.

    {% endif %}

    Command Policy

    Mode
    {{ policy.mode }}
    Shell Operators
    {% if policy.shell_operators %} Allowed {% else %} Blocked {% endif %}
    Max Execution
    {{ policy.max_seconds }}s
    {% if policy.mode == 'whitelist' and policy.allowed_commands is not string %}
    Allowed Commands ({{ policy.allowed_commands | length }})
    {% for cmd in policy.allowed_commands %} {{ cmd }} {% endfor %}
    {% endif %} {% if policy.blocked_args %}
    Blocked Argument Patterns
    {% for cmd, patterns in policy.blocked_args.items() %}
    {{ cmd }}: {% for pattern in patterns %} {{ pattern }} {% endfor %}
    {% endfor %}
    {% endif %}

    Network Policy

    {% if sandbox.network.mode == 'none' %}🔒{% elif sandbox.network.mode == 'restricted' %}⚠{% else %}⚠{% endif %} {{ sandbox.network.mode | upper }}
    {% if sandbox.network.mode == 'none' %}
    All network access is disabled. This sandbox cannot reach any external hosts.
    {% elif sandbox.network.mode == 'restricted' %}
    Network access is restricted to explicitly allowed domains and ports only.
    {% else %}
    Network access is unrestricted. Blocked ports and CIDRs still apply.
    {% endif %} {% if sandbox.network.blocked_ports %}
    Blocked Database Ports ({{ sandbox.network.blocked_ports | length }})
    {% for port in sandbox.network.blocked_ports %} 🚫 {{ port }} — {{ sandbox.network.blocked_ports_named[port] }} {% endfor %}

    Database ports are blocked in ALL network modes (including full). Direct database connections are never permitted.

    {% endif %} {% if sandbox.network.blocked_cidrs %}
    Blocked Network Ranges ({{ sandbox.network.blocked_cidrs | length }})
    {% for cidr in sandbox.network.blocked_cidrs %} {{ cidr }} {% endfor %}
    {% endif %} {% if sandbox.network.mode == 'restricted' and sandbox.network.allowed_domains %}
    Allowed Domains ({{ sandbox.network.allowed_domains | length }})
    {% for domain in sandbox.network.allowed_domains %} {{ domain }} {% endfor %}
    {% endif %} {% if sandbox.network.mode == 'restricted' and sandbox.network.allowed_ports %}
    Allowed Outbound Ports
    {% for port in sandbox.network.allowed_ports %} {{ port }}{% if port == 80 %} (HTTP){% elif port == 443 %} (HTTPS){% endif %} {% endfor %}
    {% endif %} {% if sandbox.network.dns_servers %}
    DNS Servers
    {% for dns in sandbox.network.dns_servers %} {{ dns }} {% endfor %}
    {% endif %}

    Filesystem Isolation

    Working Directory
    {{ sandbox.filesystem.working_dir }}
    Disk Limit
    {{ sandbox.filesystem.max_disk_mb }} MB
    Temp Dir Size
    {{ sandbox.filesystem.temp_dir_mb }} MB
    Hidden Paths
    {{ sandbox.filesystem.hidden_paths | length }} path(s) hidden
    {% if sandbox.filesystem.hidden_paths %}
    Hidden Paths ({{ sandbox.filesystem.hidden_paths | length }})
    {% for path in sandbox.filesystem.hidden_paths %} {% endfor %}
    {% endif %} {% if sandbox.filesystem.read_only_paths %}
    Read-Only Paths ({{ sandbox.filesystem.read_only_paths | length }})
    {% for path in sandbox.filesystem.read_only_paths %} {{ path }} {% endfor %}
    {% endif %} {% if sandbox.filesystem.writable_paths %}
    Additional Writable Paths ({{ sandbox.filesystem.writable_paths | length }})
    {% for path in sandbox.filesystem.writable_paths %} {{ path }} {% endfor %}
    {% endif %}

    Audit Status

    {% if sandbox.audit_config.enabled %} ENABLED {% else %} DISABLED {% endif %}
    HMAC Signing
    {% if sandbox.audit_config.sign_entries %} Enabled {% else %} Disabled {% endif %}
    Log Directory
    {{ sandbox.audit_config.log_dir }}
    Capture Output
    {% if sandbox.audit_config.include_command_output %} Yes {% else %} No {% endif %}
    Capture Diffs
    {% if sandbox.audit_config.include_file_diffs %} Yes {% else %} No {% endif %}
    Max Log Size
    {{ sandbox.audit_config.max_log_size_mb }} MB
    {% if sandbox.audit_config.webhooks_count > 0 %}
    Webhooks
    {{ sandbox.audit_config.webhooks_count }} configured
    {% endif %}
    {% if sandbox.audit_log %}
    Active Log File
    {{ sandbox.audit_log }}
    {% endif %}

    Recent Audit Events

    View All
    {% include "partials/audit_feed.html" %}
    {% endblock %}