Skip to content

v0.11.0

Choose a tag to compare

@BaddKharma BaddKharma released this 01 Dec 20:36
· 8 commits to main since this release

The Windows operator box reports its tool kit to the jumpbox, and verify.py stack checks that the report arrived complete. That box is the one host Ansible never reaches, so until now a range could finish a clean run, pass every other check, and still hand over an operator box with half its tooling missing, with the only evidence a file on a desktop someone had to RDP into.

Every cloud provider now checks the account before Terraform starts. Azure has done this since 0.10.0; AWS and GCP ship the same kind of check in the export and run it as the first phase of a deploy, so a limit says no before anything is created rather than halfway through an apply that leaves a half built range running. On AWS that means Elastic IPs, which a NAT gateway holds as well as every public host, plus vCPUs and the IAM actions the auto-stop schedule needs. On GCP it is the global CPUS_ALL_REGIONS quota, which another region does not escape, plus the regional quotas and the APIs the generated code needs. The Azure check goes further and picks a VM size the subscription can actually run when the one asked for is not available to it, instead of stopping to ask.

verify.py stack also checks that the activity bots actually run: the scheduled task has to exist, run as the user the topology named, and have last finished cleanly. A bot that silently never runs leaves a range that looks right and behaves wrong, with nothing in memory to steal and nothing to capture.

A vulnerability settings list that holds more rows than fit can be dragged taller instead of being read through a fixed window, and the autologon vulnerability signs in as the account the range asked for rather than always the built-in administrator.

If you run the canvas from the Docker image's latest tag, docker pull first so you get 0.11.0 rather than a cached image.

Validated for this release on live ranges across all three providers. On AWS: the minilab defense range, the minimalc2-cli offense stack with a Sliver beacon calling back through its redirector, and a split-horizon range built and exported from the canvas with its own prefix, region, addressing and redirector domains, which passed every check including both front doors refusing each other's gating header and the Windows operator kit report. On Azure: defense and offense ranges whose sizes the preflight substituted and split across two VM families to fit the subscription's quota, with the two network peering created clean. On GCP: an offense range with two teamservers and two redirectors deployed from WSL, and a defense range deployed from Windows PowerShell, both passing verify.py doors and verify.py stack. Every shipped blueprint compiles and passes terraform validate for all three providers, and 5400 structurally varied topologies, with nodes added, removed and rewired, compile clean.

Added

  • The Windows operator box records the version of every tool it installed, in the
    setup transcript and on the desktop marker, so a problem that appears after a
    tool ships a new release can be tied to a version instead of guessed at. The
    kit is deliberately not pinned: the MobaXterm package fetches its installer
    from the vendor's own site and old release URLs are retired, so a pin makes
    permanent exactly the failure a floating version recovers from, and the other
    four tools are installed and left alone. MobaXterm is the one tool redStackPRO
    holds a configuration contract with, since its saved sessions are written by
    hand into MobaXterm.ini in a positional format, so the box compares the
    installed major against the one that format was verified against and notes a
    mismatch on the desktop rather than leaving missing sessions unexplained.

  • The autologon vulnerability takes the account it signs in as, from a user
    picker in the vulnerability settings, through the new autologon_user setting.
    A domain account is signed in as that domain, since the compiler splits the
    NETBIOS\user the picker writes into the two values Winlogon wants, and the
    cleartext password left in the registry is that account's real deployed
    password. The briefing's user activity table names whoever autologons, beside
    the bots. An unset picker keeps the previous behaviour, the built-in local
    administrator.

  • A vulnerability settings list that holds more rows than fit, such as the access
    rights on a GOAD node or its linked-server logins, can be dragged taller by its
    bottom corner instead of being read through a fixed 180 pixel window. The height
    is remembered in that browser and carries to the next node and the next list, the
    way the side panel widths already do, and it is never part of a topology.

  • The Windows operator box reports its operator kit to the jumpbox, and
    verify.py stack checks that it arrived complete. The Windows operator is the
    one host with no WinRM: Ansible never reaches it, so it appears in no PLAY
    RECAP, and a range could report a clean run, pass every front door and stack
    check, and still hand over an operator box with half its tooling missing, with
    the only evidence a file on a desktop someone had to RDP into. It now reports
    at the end of its boot script over ssh to the jumpbox, signing with a copy of
    the stack key that only SYSTEM can read, and reports under its canvas node
    name rather than the cloud's own computer name, which matches nothing in the
    export. The report is best effort: it is guarded on an ssh client existing,
    retried for a jumpbox that may not be ready yet, and never touches the boot
    script's exit code, so a missing report is a note rather than a failure.

  • verify.py stack checks that the activity bots actually run. A bot that
    silently never runs leaves a range looking right and behaving wrong: nothing
    in memory to steal, nothing to coerce or capture, and the operator blames
    their own tooling rather than the range. For every host the export says should
    be running one, the scheduled task now has to exist, run as the user the
    topology named, and have last finished cleanly. The expectation is read from
    host_vars, so it follows whatever was asked for rather than a fixed list,
    and a schedule bot with no user is expected to run as SYSTEM, which the role
    does deliberately to leave no credential on the host. Two task results are
    reported rather than passed or failed: 267009, caught mid run, and 267011, not
    yet run, which is normal right after a deploy but is also what a missing batch
    logon right looks like.

  • Every cloud provider now checks the account before Terraform starts, instead
    of letting a no arrive partway through an apply. Azure has done this since
    0.10.0; AWS and GCP now ship the same kind of check in the export, run as the
    first phase of a deploy, and stop before anything is created. A half built
    range is the expensive failure: Terraform makes what it can and leaves it
    running, so the operator has to work out what to delete before trying again.
    On AWS it counts Elastic IPs, which is the limit a range meets first and the
    easiest to miscount, because every NAT gateway holds one as well as every
    public host, so a two network offense range spends five of the default five on
    its own. It also counts running on-demand vCPUs net of what is already
    running, since a second range is the case that bites, and checks the IAM
    actions the auto-stop schedule needs, which AmazonEC2FullAccess does not
    grant and which would otherwise fail the apply at its last resource. On GCP it
    checks the global CPUS_ALL_REGIONS quota, which is the real gate and which
    another region does not escape, the regional CPU and address quotas, and the
    APIs the generated code needs, since Terraform does not enable them. Both are
    read only, both ship in the export and run on their own as
    python aws_preflight.py . or python gcp_preflight.py ., and a check that
    cannot run is a warning rather than a stop, so an unreadable quota never
    blocks a deploy that would have worked. REDSTACKPRO_SKIP_PREFLIGHT=1 skips
    them, as on Azure.

Fixed

  • An Azure range with two networks no longer fails its own apply. Azure holds a
    virtual network in Updating for the length of a subnet write and refuses to
    peer a network that is not Succeeded, and the generated peering named only
    the two networks, so Terraform was free to create it beside a subnet that was
    still being written. A live apply died with
    ReferencedResourceNotProvisioned and an immediate re-run, with nothing
    changed, succeeded, which is what a race looks like. The peering now waits for
    every subnet on both sides. Only offense topologies are affected, since they
    are the ones with a second network.

  • The Azure preflight uses a VM size the subscription can actually run, rather
    than stopping to ask for one. A fresh pay-as-you-go subscription is not
    offered the shipped defaults in eastus2, which failed a first deploy on a
    size the operator could not have known about in advance, and the preflight was
    already working out a set that fits in order to print it. It now applies that
    set, writes it to terraform/zz-preflight-sizes.auto.tfvars, which apply
    reads, and prints what it found and what it changed, including a memory
    shortfall when the only size with quota room is smaller. Deleting that file
    returns to the topology's own sizes. It substitutes only what a resize can
    fix: a size Azure does not list at all is a typo and still stops, because
    running something else would hide the mistake.

  • POST /validate answers an unknown provider instead of crashing. The name
    reached the registry lookup and the KeyError surfaced as a 500, while
    compile had answered the same input with a message since it was written.
    That loop is the agent interface, so a typo now comes back as an invalid
    request naming the providers that do exist. A request with no provider still
    means skip the provider specific checks.

  • The autologon vulnerability no longer ignores the account a range asked for.
    The role read a variable the compiler never set, so every deploy signed in the
    built-in administrator whatever the scenario wanted. This matters more since
    0.10.0, where the console sign-in option defers to the autologon user when it
    is ticked.

  • The Windows operator box no longer seeds MobaXterm's saved sessions when
    MobaXterm itself failed to install, which was the one leftover that made a
    failed install look like a working one.

  • The Windows operator box no longer reports a successful setup when part of its
    operator kit failed to install. The kit (MobaXterm, 7zip, Chromium, VS Code,
    Git) installs from Chocolatey at first boot, and the install loop checked
    nothing: a failed package was silent, the desktop still said
    _SETUP-COMPLETE.txt, and the boot wrapper still wrote its done marker, which
    stopped the next boot from retrying. A user deployed an offense range and found
    MobaXterm missing on a box that reported success. Each package now installs
    with up to three attempts and a growing wait, its presence is verified in the
    Chocolatey package library afterwards, and Chocolatey's own bootstrap is
    retried and checked the same way. When something still does not install, the
    desktop gets _SETUP-INCOMPLETE.txt naming the missing packages and the exact
    command that finishes the job, and the setup script exits non-zero so AWS and
    GCP leave the done marker off and retry on the next boot. On Azure, where the
    kit runs as a CustomScript extension whose exit code is the extension's result,
    the command deliberately exits zero so a transient download failure reports on
    the desktop instead of failing terraform apply for the whole range.