# Independent security review, 2 December 2026 This is the record of the first independent security review of Tenabyte: what the reviewer found, what was changed for each finding, how each fix is tested, and what is still open. ## Who reviewed it, and what that is worth The reviewer was a second AI agent, started with a clean slate. It was given the source code and the built engine, and nothing else: no explanation of how the code was written, no list of suspected weak spots. Its instructions were to find ways an owner or a renter gets hurt and to prove each one with an attack that runs. That makes it independent of the author's reasoning. It does not make it an outside audit. It was made by the same company as the author, it had a few hours rather than weeks, and it did not test Windows, macOS, graphics cards or a live payment provider. **A review by a firm whose job this is must still happen before strangers' code runs on strangers' computers.** This review moved that day closer; it does not replace it. What was reviewed: version 0.3.0 as it stood on the evening of 2 December (sandbox, internet door, host app and dashboard, marketplace, website and service front door, payment code), with the real engine, on Linux. ## Summary Six weaknesses were demonstrated, three of them serious. All six are fixed or reduced in version 0.3.2 (0.3.1 carried the first round of fixes, 0.3.2 the second; see Re-test). Every attack the reviewers wrote is now kept in the test suite, turned round: the attack must fail for the tests to pass. | # | Severity | What the reviewer showed | State in 0.3.2 | |---|----------|--------------------------|----------------| | 1 | High | A job with "whole web" internet could reach the owner's own computer through an address that looks public | Fixed; limits noted below | | 2 | High | A job could switch off the disk limit with one oddly named file | Fixed, at the second attempt (see Re-test) | | 3 | High | Any web page in the owner's browser could drive the app's local marketplace and run jobs on the owner's PC | Fixed | | 4 | Medium to high | A job limited to 128 MB could make the internet door use about 3 GB of the owner's memory | Fixed, completed after the re-test | | 5 | Medium | The "downloads only" list checked where a connection was opened to, not what travelled through it | Fixed as far as the door can see; inherent limit noted below | | 6 | Medium | Anyone could flood a marketplace with made-up computers | Reduced, not solved | Three smaller notes were also acted on (below). ## The findings ### 1. The internet door reached the owner's own computer (High) **What was shown.** The door refuses private address ranges (192.168.x.x and the like). It did not ask whether an address that is public *by its number* is in fact this very computer, or a device on its network. The reviewer gave a test machine such an address, ran an owner-only web page on it, and had a job at the "whole web" level read that page through the door, both as a plain request and through a tunnel. The door's own self-check had just passed. In a home, the same gap covered every device with a global IPv6 address, which is most of them, and the router's outside address. **What was changed.** - The door now holds a list of what belongs to the owner and never connects to it, whatever the numbers look like: every address of the computer's own network interfaces, the networks those are on, and every network the computer has a route of its own to (an office reached through a VPN, for example). The list is gathered twice: by the door itself, and by the app on the owner's system, because on Windows the door runs inside a virtual machine that cannot see the PC's addresses. - The marketplace tells each computer the public address it sees it at (normally the router's outside address), and the door refuses that too. - The door no longer connects over IPv6 at all. At home, every device usually has a public-looking IPv6 address on the same network as the owner's computer, with no router standing between them. - Two old ways of writing an IPv4 address inside an IPv6 one are refused. - A name that does not exist and a name that leads into the owner's network now get the same answer, so a job cannot find out which names exist inside the owner's network by asking. **How it is tested.** `TestOwnNetworksAreNeverReached`, `TestRoutesAreReadFromBothSystems` and the reviewer's own 60-odd address forms (`review_held_test.go`) in `internal/engine/door`; and, with a real job behind the real door, `TestDockerDoorNeverReachesTheOwnersOwnComputer` in `internal/engine`, which is the reviewer's attack and now sees five refusals and no request reaching the owner's page. **What is still open.** - On the local test network there is no marketplace outside the computer to say what the router's outside address is, so the door does not know it there. Only the owner's own jobs run on a test network. - On macOS the routing table is not read; the networks the Mac is plugged into are still found. - A marketplace behind a proxy must be started with `--behind-proxy`, or it will tell hosts the proxy's address instead of their own. - The "whole web" level stays what it is: whatever a renter does on the web appears to come from the owner's internet address. It is off unless the owner switches it on. ### 2. A job could switch off the disk limit (High) **What was shown.** The host measures a job's saved files every few seconds and stops a job that keeps more than its limit (64 MB unless more was asked for). It measured by reading the files through the same checker that cleans them, and it only acted on "too large". A file with a backslash in its name made the checker stop with a different complaint before it had counted a byte, and that complaint was ignored. A job that created one such file first then kept 300 MB on the owner's disk for its whole life. **What was changed.** Sizes are counted before names are judged, so nothing a file is called can hide how big it is. When a job's own files are being measured, a file with an unsafe name is left out of the saved copy instead of stopping the measurement. And a job whose files cannot be measured three times in a row is stopped. **How it is tested.** `TestOddNamesDoNotHideSize` in `internal/sandbox`, and with a real engine `TestContainerCannotSwitchOffTheDiskLimit` in `internal/agent`: the reviewer's attack plus six variations (a newline in the name, a very long name, a link pointing out of the folder, a named pipe, an unreadable folder). All seven jobs are stopped. **What is still open.** A job can still write as fast as the disk allows between two measurements. A hard limit under the job's files needs a fixed-size disk image, which is on the roadmap. *(Done after the third review, which reopened this finding: see F1 below.)* ### 3. Any web page could drive the local marketplace (High) **What was shown.** Double-clicking the app starts a small marketplace on the owner's own computer, at 127.0.0.1:7700, so the owner can try both sides. A web page on any site can point a name of its own at 127.0.0.1 ("DNS rebinding") and then talk to that marketplace as if it were the page's own server. The dashboard already refused this; the marketplace did not. The reviewer's page signed itself up without any password, submitted jobs that ran on the owner's computer, and registered itself as a host. **What was changed.** The marketplace now answers only to its own address: on the test network, the computer's own local names; on a real marketplace, the name given with `--public-url`. And it refuses any request that a browser says was sent by a page from somewhere else, so a page on another site cannot post to it blind either. **How it is tested.** `TestAWebPageCannotDriveTheLocalMarketplace` in `internal/demo` is the reviewer's attack with four more disguises; every step is refused, and the owner's own tools and the console page still work. `TestMarketplaceAnswersOnlyToItsOwnAddress` in `internal/coord`. **What is still open.** Another program already running on the owner's computer can still talk to the local test marketplace. That is outside what this protects against. ### 4. A job could make the door use gigabytes of memory (Medium to high) **What was shown.** The door is a program of the app's, outside the job's sandbox, so the job's memory limit does not cover it. It accepted any number of connections and up to a megabyte of unfinished request from each. A job limited to 128 MB held 1,200 of those and the door grew to about 3 GB. Idle connections were also kept for ever. **What was changed.** The door now keeps limits of its own: 128 connections at once, 32 KB of request header, ten seconds to say what is wanted, thirty seconds of silence between requests, five minutes of silence inside a tunnel, fixed-size buffers on every connection, a short waiting queue, and a ceiling on its own memory. It also limits new outgoing connections (a burst of 200, then 20 a second), so it cannot be used as a hose against a website. **How it is tested.** `TestDoorKeepsItsOwnLimits` and `TestQuietConnectionsAreClosed` in `internal/engine/door`; and with a real engine `TestDockerDoorStaysSmallUnderAFlood`, the reviewer's flood, under which the door now peaks at 13 MB. **What is still open.** Each visitor connection to a job that answers requests costs the owner one small helper program outside the job's limits. These are capped (96 per computer, 48 per job) and closed after 15 quiet minutes, but the cap is a number, not a share of the job's own memory. ### 5. The downloads list did not bind what went through a tunnel (Medium) **What was shown.** At the "downloads only" level, the door checked the name a job asked to be connected to, and then passed along whatever the job sent. The listed sites sit on shared servers, so through a tunnel opened "to pypi.org" the reviewer sent a request for a different site, with an upload. **What was changed.** At that level a tunnel now carries one thing: an https conversation with the listed site it was opened for. The door reads the unencrypted opening of the conversation itself and passes nothing on unless it names exactly that site, once, in the clear. Openings that carry an encrypted second name, two names, or none are dropped, and so is anything that is not https. Plain web requests always go to the site in their address. **How it is tested.** `TestDownloadsTunnelIsBoundToItsSite` and `TestOpeningOfHTTPSMustNameOneSiteInTheClear` in `internal/engine/door`. **What cannot be fixed at the door.** The door cannot see inside an https conversation. If a provider's servers will answer for site B inside a conversation opened in the name of site A ("domain fronting"), the door cannot stop it. Google and Amazon have refused this since 2018 and Microsoft since 2022, and Fastly announced the same from 2024, but a 2023 study found most of the smaller networks it tested, and Akamai, still allowed it. And several listed sites (GitHub, Hugging Face, Google's storage) hold whatever their users upload, and accept uploads. So "downloads only" means: *a job can talk to these providers' servers and to nobody else.* It limits whose doors a renter can knock on from the owner's address. It does not vet what comes back. A side effect: a web browser inside a job at this level cannot open even the listed sites, because current browsers add an encrypted name to every conversation. Browsing needs the "whole web" level. ### 6. Anyone could flood a marketplace with made-up computers (Medium) **What was shown.** Registering a computer needed no credentials unless the operator had set a joining key, and there was no limit. **What was changed.** One address may create 30 accounts and computers an hour. A computer that has been silent for a day and is owed nothing is forgotten. The marketplace can be told it sits behind a proxy, so the limit counts visitors and not the proxy. **What is still open.** This slows one machine down; it does not stop many. A real marketplace needs people to sign in before a computer can join. ### Smaller notes - **Overspending by a moment.** A renter who ran out of credit was charged for the moment before the job was stopped, taking the account slightly below zero while the host was still paid. An account is now never taken below zero; that last moment is neither charged nor paid out (`TestAnAccountIsNeverTakenBelowZero`). - **Which computer answered.** Website answers carried a header naming the computer that served them. It is now sent on test networks only. - **Visitor connections held open.** See finding 4. ## What the reviewer attacked that held The container's lock-down (no privileges, read-only system, no network, user without rights, limits on memory and processes); the cleaner that saved files pass through on their way between computers; the dashboard's guard against other websites; the separation between the console, the dashboard and hosted websites; the secret addresses of jobs that answer requests; the arithmetic of charges, fees and payouts; and more than sixty ways of writing "this computer" or "the home network" to the internet door, including a name that changes its answer between the check and the connection. The test suite also ran clean under Go's race detector. ## What was not covered - The Windows path on a real PC, and macOS. (The app has since run on one Windows 11 PC; nobody has attacked it there.) - Escaping the container itself. The engine is unmodified Docker; its own history of escapes applies, and on plain Linux a job shares the owner's kernel. - Graphics cards. - Payments against a real provider. The Stripe connection has never talked to Stripe. - Abuse of the service by people rather than by programs: phishing pages, illegal content, fraud. ## Re-test After the fixes, a second reviewer was started the same way, told what the first had found and what had been changed, and asked to break each fix and to look for anything the fixes had introduced. It worked for a little over twenty minutes with the real engine. **What held.** The fixes for findings 1, 3, 5 and 6, and the three smaller notes. The reviewer also threw about 1.7 million malformed inputs at the new code that reads what strangers send (the opening of an https conversation, routing tables, address lists) without making it crash, and found the money arithmetic sound after the change. **What did not.** Two fixes were only half done. - **Finding 2 again (High): the disk limit could still be switched off.** The first fix dealt with the oddly named file the first reviewer had used, not with the weakness behind it. The checker read at most a set number of bytes and took reaching that number for the end of the folder; entries it skips (links, pipes, refused names) were not counted. The second reviewer put 173,184 links in front of one large file, so that the reading stopped exactly between two entries before the file was reached, and the checker reported success. With a real engine the job kept 205 MB and could have kept any amount. **Now:** every entry counts towards the 10,000 allowed, whatever becomes of it, and reaching the reading bound is a refusal, never a quiet end. The reviewer's own attack, run again against the real engine, ends with "too large"; `TestEntriesInFrontCannotHideABigFile` covers it and thirty neighbouring cases, and the engine test has the same attack as an eighth job that must be stopped. - **Finding 4 again (Medium): the door's memory was capped on one side only.** What a job sends was limited; what a website answers was not, and at the "whole web" level the website can be the renter's own. Ten megabytes of answer headers on each of 128 connections would have been about 1.2 GB. **Now:** an answer's headers are limited to 64 KB (`TestHugeAnswerHeadersAreNotHeld`). **Tightened in the same round**, from the author's own second look: - The marketplace now answers to no *name* at all unless it has been told that name is its own. An address written as a number always works. Before, a marketplace started without a public address answered to any name, which left one running on a home or office network open to the same trick as finding 3. - The address the marketplace reports to a computer is used only if it is a single address, so a marketplace cannot use it to cut a computer's jobs off from whole networks. **What the second reviewer pointed out and could not demonstrate.** Recorded here as open limits: - If the owner's computer sends *all* its traffic through a VPN, jobs' web traffic leaves through that VPN too. The door keeps jobs away from networks the computer has particular routes to; it cannot tell an ordinary connection from a VPN that has replaced it. - The per-address sign-up limit counts wrongly behind a proxy unless the marketplace is told about the proxy (`--behind-proxy`), and must only be told so when the proxy really is the operator's own. - A job can use up all 128 of its own door's connections. That hurts only that job. **The lesson worth keeping.** The first fix for finding 2 fixed the example and not the class of mistake, and looked finished to the person who wrote it. It took a second pair of eyes to see that. A third review, of the finished 0.3.2 and of everything added after it, follows before any of this is called done; its results are appended below when it has run. ## Third review, 3 December 2026 A third reviewer was started the same way, on version 0.3.2 and everything added after it (the private sandbox, images the app makes itself, the desktop's start-up script, whole-Mac rental), and asked again to break the six earlier fixes. Its report is kept with the project's working files (`review3/REPORT.md`, attack files in `review3/poc/`). It found three things. All three are recorded here with their fixes. | # | Severity | What the reviewer showed | State now | |---|----------|--------------------------|-----------| | F1 | High | The disk limit could be defeated again, by hiding data in folders too deep for the engine's archiver (reopens finding 2) | Fixed on Tenabyte's own engine: the limit is now a disk of fixed size | | F2 | Medium | The private sandbox's screen page passed pages written inside the sandbox into the owner's browser, at the app's own address | Fixed: the app serves its own screen page and takes only the picture stream from the sandbox | | F3 | Low | Any renter could make a host build the Windows desktop with the computer's own network, whatever the owner's internet setting | Fixed | ### F1. Hiding files from the disk limit in very deep folders (High) **What was shown.** The host still measured a job's saved files by reading them out with `docker cp`. A job made a chain of 18 folders with 250-letter names (entered one at a time, so no single command ever saw the whole path) and wrote 100 MB at its end. The engine's archiver cannot follow a path that long: it logged "Can't add file ... too long" in the engine's own log, left the file out, and `docker cp` exited 0. The host saw a few kilobytes and the job ran to the end. Writing 200 MB this way raised the engine's disk use by exactly 200 MB. The private sandbox's watch was worse: it acted only on "too large" and ignored every other outcome. **What was changed.** The limit is no longer a measurement. On Tenabyte's own engine every job, service, desktop and private sandbox gets a disk of fixed size for its saved files: a sparse file in the engine's storage, formatted, attached to a loop device and mounted by the engine's supervisor, which runs as root inside the engine's own Linux environment. The kernel refuses a write past its size and a file past its number of slots, however the file is named or nested. Disks are removed with the job, and every disk, mount and loop device an earlier run left is cleared when the engine starts and when the app starts. Tenabyte's own engine without a working disk service takes no jobs. A Docker the owner installed keeps the measured limit, and says so. The design, the options compared and their sources are in DISK-LIMIT.md. The measurement, still used for snapshots, moving jobs and billing, now fails closed: anything the archiver writes to its error stream, a failed exit, an archive without its end marker, or (on a job's disk) fewer entries than the kernel says the disk holds is `sandbox.ErrNotMeasured`, never a small number. `sandbox.MeasureWatch` holds the shared rule: stop at once if too large, stop after three failed measurements in a row. The self-check on every owner's machine now includes the disk: a job tries to overfill its folder by size, by file count and by the deep-folder trick, each must be refused by the kernel, and measuring what it left must fail loudly. **How it is tested.** With the real engine (`scripts/test-engine.sh`): `TestContainerCannotHideFilesFromTheDiskLimit` in `internal/agent` runs the reviewer's job through the marketplace, and the same idea with a flood of tiny files hidden the same way; both jobs are stopped. `TestDockerDiskStopsTheDeepPathAttack` and `TestDockerDiskRefusesAFloodOfTinyFiles` in `internal/sandbox` show the kernel refusing the deep 100 MB at the disk's size and the file flood at its slot count, and that measuring such a folder fails loudly; `TestDockerDiskKeepsFilesAfterExitAndLeavesNothing` shows files going in and out after the job ends and nothing left behind. Without an engine: `TestMeasureFailsClosed` (every way a measurement can be untrustworthy), `TestTarEndFollowsArchives`, `TestStartGivesEveryJobAFixedDisk`, `TestBuiltInEngineWithoutDisksStartsNothing`; and, on real loop devices, `internal/engine/disk` (bytes, files, deep files, removal while busy, the sweep after a crash, and `e2fsck` on every disk shape) and `TestDiskProbeOnARealDisk`. The engine manager's own tests run the full self-check, now fourteen walls, on the Linux path and through the stand-in for WSL. **What is still open.** The private sandbox's own watch must adopt the shared rule and ask for a disk of its size; that file was being rewritten at the time and the change is handed to its author. On a Docker the owner installed, the limit is still only measured. The disk is checked for room when made but its space is not reserved. The disk's formatter is Tenabyte's own small one, checked against `e2fsck`, because building the standard tool from source was not possible in the build environment; DISK-LIMIT.md says how to swap it in. ### F2. The private sandbox's screen page came from inside the sandbox (Medium) **What the reviewer showed.** The private sandbox's desktop was shown by passing the sandbox's own web pages (the noVNC viewer it carried) through the app to the owner's browser, at the app's own address. A program inside the sandbox could change those pages, so its script would run in the owner's browser as if it were the app's. **What was changed.** - The app now serves the screen page itself, from files it carries (`internal/agent/viewer`, noVNC 1.6.0 pinned by commit). Nothing but the picture stream (`/websockify`) is taken from the sandbox; any other address answers with the app's own "not found". - The page is held to a strict content policy (no inline script, nothing from elsewhere, connections only to its own stream), with allow-lists for the headers passed each way, a check of where the request came from, and a cap on the stream. - A yellow frame and a warning line, both drawn by the app, mark what is the sandbox's. The clipboard goes one way only, in. **How it is kept fixed.** `internal/agent/private_test.go` runs a hostile stand-in for the sandbox that answers every address with script and odd headers; the tests check that none of it reaches the browser, that a page sent in place of the stream is refused, and that requests from other sites are refused. `viewer_browser_test.go` loads the page in a real browser. Checked on the owner's Windows 11 PC on 3 December 2026 with a real desktop. **Still true.** Everything inside the frame is drawn by the program being tried. It can draw a picture of a password prompt. The page says so. ### F3. Renters could make a host build with the computer's own network (Low) **What was shown.** Naming the Windows desktop's image in an ordinary job made a host that did not have it build it, with `docker build --network host`: one to two gigabytes over the owner's connection, with the build's steps able to reach the owner's own computer and home network, even when the owner had chosen "no internet for jobs". The recipe is fixed, so nothing of the renter's ran. **What was changed.** A host builds one of the app's own images only when its owner has turned on a new setting, "Let this computer download what a desktop needs" (off until they do), and allows jobs some internet. The build's steps share the network namespace of a holder container that has only a loopback address, with the internet door on it at the "downloads" level, and find the door through the usual proxy settings. There is no building without a working door, and never with the computer's own network. Getting a warm spare ready follows the same rule. **How it is tested.** `TestRecipeBuildFollowsTheOwnersSettings` and `TestRecipeBuildGoesThroughTheDoor` (against a stand-in engine; real recipe images cannot be built on the test machine), `TestBuildRulesFollowTheOwner` in `internal/agent`, and with the real engine `TestDockerMakesItsOwnImagesAndScratchRuns`, whose recipe now also checks from inside its build step that it sees only a loopback address, that the door refuses a site off the list, and that nothing can be reached directly. **What is still open.** The starting image (`debian:13-slim`) is fetched by the engine itself, as every job's image is, not through the door. The real Windows desktop recipe has not yet been built through the door on a machine with internet access. ## Fourth review, owner's-computer side, 3 December 2026 A fourth reviewer attacked the new code on the owner's side (the fixed-size disk, images the app makes, the graphics-card path, the exit, the private sandbox's viewer, the dashboard) against the packed engine. It confirmed that round three's F2 is fixed and that the kernel's disk wall holds, and found two weaknesses in how the disk is measured, with one shared cause: the engine's archiver (behind `docker cp`) leaves out a file it cannot reach, exits 0 and writes nothing to its error stream. Its complaint goes only to the engine's own log. | # | Severity | What the reviewer showed | State now | |---|----------|--------------------------|-----------| | 1 | High | On a Docker the owner installed, 100 MB hidden deep against a 64 MB limit was measured as "0 bytes, no error" (round three's F1, still open there) | Fixed: the folder is counted without the archiver; the limit there is still measured, not walled, and the docs say so | | 2 | Medium | On Tenabyte's own engine, hard links padded the archive so that 30 MB hidden deep was not noticed | Fixed | | S3 | Suspected | A sweep between a disk being made and its volume being made could remove the disk | Fixed | | S4 | Suspected | Nothing capped the engine's image store; wildcard tags on the allow-list let a renter make a host fetch large image after large image | Fixed: a cap the owner sets | ### 1. The measured limit still lied on a Docker the owner installed (High) **What was shown.** A job wrote 100 MB at the end of 18 folders with 250-letter names. On an engine with no fixed-size disk (every Mac that hosts; a Linux computer whose owner runs their own Docker) nothing refused the write, the owner's disk held it, and the reading came back as 0 bytes with no error. Every check the reading made passed: the archiver had exited 0, said nothing, and ended its archive properly. The one check that could have caught it (entries against the kernel's file count) ran only on Tenabyte's own engine. DISK-LIMIT.md said the measurement failed closed there; it did not. **What was changed.** Every reading now begins and ends with a count of the folder made without the archiver (`internal/engine/disk/walk_linux.go`). It opens each folder relative to the one holding it, so it never builds a path and nothing can be too deep or too long for it; it follows no link; it counts a file with several names once for its content; and anything it cannot finish is a failure. On Tenabyte's own engine the engine's supervisor makes the count. On a Docker the owner installed, the app loads its own counting program into the engine as a one-file image and runs it next to the job, with the folder read-only and no network. The count alone decides whether the folder is too large, so the reviewer's job is now stopped for holding 100 MB. On such an engine the limit is still a measured one: between two counts, ten seconds apart, a job can write as fast as the disk allows. DISK-LIMIT.md, SECURITY.md and the dashboard's engine detail now say exactly that, engine by engine. **How it is tested.** With the real engine reached the way the app reaches a Docker the owner installed (the docker program straight, no helper): `TestDockerOwnDockerSeesTheDeepPathAttack` in `internal/sandbox` (the reviewer's `f1_clean.sh`: too large, and with room to spare the archive is noticed to be short) and `TestOwnDockerCannotHideFilesFromTheDiskLimit` in `internal/agent` (the same job through the marketplace: stopped "past the limit"). Without an engine: `TestMeasureFailsClosedWithoutADisk`, which also checks the counting program's container is locked down, and `TestWalkCountsWhatAnArchiverMisses`, `TestWalkFailsLoudly`, `TestMeasureBinariesAreCurrent` (the programs the app carries are what their source makes). **What is still open.** No hard wall on such engines. A size- and inode-limited tmpfs volume would be one, but it lives in memory (a private sandbox's 4 GB in Docker Desktop's virtual machine), and the engine unmounts such a volume, losing its files, when the last container using it stops, so the files would need a holder container of their own until copied out. That was not judged solid enough to ship today. ### 2. Hard links padded the archive on Tenabyte's own engine (Medium) **What was shown.** The check behind "the archive left out N files" compared the archive's entries with the kernel's count of used file slots. Hard links are entries in the archive that use no file slot, so 40 of them hid 30 MB at the end of deep folders: "2048 bytes, no error". No disk was filled (the kernel wall held), but a job's state moved to another computer, or the owner's zip of a private sandbox, could silently lose files, and billing under-counted. **What was changed.** The kernel's slot count is no longer used for this. The archive is compared with the count above, by names (a hard link is a name in both) and by bytes of content (counted once in both), taken before and after the archive. **How it is tested.** `TestDockerDiskHardLinksDoNotHideFiles` (the reviewer's `hardlink_pad.sh` on the real engine: the reading fails), and the hard-link case in `TestMeasureFailsClosed`. ### S3. A sweep could take a disk just made (suspected) The app makes a disk, then the engine volume that uses it, and a sweep that ran in between (at the app's or the engine's start) would have seen a disk with no volume and removed it. A sweep now spares a disk made in the last ten minutes; the sweep when the engine next starts, or the job's own removal, takes it away if it was left behind (`TestSweepSparesADiskStillWaitingForItsVolume`). ### S4. Nothing capped the image store (suspected) The images jobs run are kept in the engine's storage, outside every job's own disk, and the allow-list has wildcard tags (`pytorch/pytorch:*`, `nvidia/cuda:*`). A renter, or a marketplace asking for warm spares, could have made a host fetch one large tag after another. Not demonstrated (no registry is reachable from the review machine), but plainly possible. **What was changed** (`internal/sandbox/imagecap.go`). The owner sets how much room images may take ("Room for jobs' software" in Settings; 40 GB until they choose). After every fetch or build, the images used longest ago are removed until the store fits; an image still in use is never removed; if the store cannot be made to fit, the new image is removed again and the job is turned away, and the owner's activity feed says so. Before fetching, the app asks the registry how big the image is, where the registry tells, and refuses at once an image that could never fit. Every fetch counts against the account paying for the job: the marketplace gives each host an opaque name per account (the same for that account on that host, different on every other host, made with a secret hosts never see), and one account may make a computer fetch at most half the room in a day. On a Docker the owner installed, only images the app fetched count and only those are ever removed; the owner's own images are left alone, and so are the engine's own small images. **How it is tested** (stand-in engine and stand-in registry): `TestImageStoreKeepsToTheOwnersRoom`, `TestAnImageTooBigForTheRoomIsRefusedAndRemoved`, `TestTheRegistrysSizeIsAskedFirst`, `TestFetchesCountAgainstThePayer`, `TestImagesInUseAreNotRemoved`, `TestTheOwnersOwnImagesAreLeftAlone`, `TestTheImageBookIsKept`, `TestRegistryEstimate`, `TestImageRoomFollowsTheOwner`, `TestPayerNames`. **What is still open.** Layers shared between images are counted once per image, so the store is kept smaller than the room, never larger. A fetch that the registry would not size beforehand can briefly take the store past the room by that one image, until it is removed again. ## Fourth review, marketplace side, 3 December 2026 A second reviewer of the fourth round took the marketplace: everything a stranger, a renter or a dishonest owner of a computer can reach there, with the new parts first (accounts and sign-in, the admin console, the exit, standing and groups, whole-Mac rental). Its report is kept with the project's working files (`review4a/REPORT.md`, with the test it wrote in `review4a/poc/`). It found **no critical or high weakness**. It found one medium and two low ones, and restated one limit that is there by design. Two of its live attempts were stopped by the safety rules of the machine it ran on, not by Tenabyte; for the one that mattered (pointing the exit at private addresses) it wrote a test that drives the same checking code instead. | # | Severity | What the reviewer showed | State now | |---|----------|--------------------------|-----------| | F-A | Medium | The exit limited connections and bytes per job and in total, but not per renter or per computer, so one renter with many jobs could hold the whole exit or send a great deal through it | Fixed: every connection and byte is also counted for the account, the computer and the group, each with a share of its own | | F-B | Low | A refund of credit already spent took a renter's balance below zero | Fixed | | F-C | Low to medium (suspected, not shown) | Every sign-in rewrote the whole account book while holding its lock, and only four passwords could be checked at once, so many sign-ins at the same moment could slow or refuse the rest | Fixed | | F-D | By design | The marketplace believes what a computer reports about its own self-check | Unchanged, and said plainly: the self-check protects the owner, not the renter | ### F-A. The exit had no limit per renter or per computer (Medium) **What was shown.** By reading the code, not by a live attack: the exit allowed 64 connections and 50 GB a day per job, and 2,048 connections in all. Nothing counted by renter. A renter with a paid account may run 20 jobs, a known one 200, and copies of a service count as jobs, so one renter could hold every connection the exit has (a trickle keeps each open) or send about a terabyte a day from the marketplace's own address. **What was changed.** Every exit connection and every byte is now counted four times: for the job, for the account that sent it, for the computer it runs on, and for the private group it is kept in. Each has a share of its own. An account's share follows its standing: 32 connections and 10 GB a day when new, 128 and 100 GB once paid, 256 and 250 GB when known. A computer's is 256 connections and 250 GB a day; a group's is 512 connections. No account or computer may take more than a quarter of the three quarters of the exit that anyone may take (a group, half), and the last quarter (512 of the 2,048 connections) is kept for accounts that have fewer than eight open, so the exit always has room for someone new. A refusal says whose share was used up, and refusals are counted by kind in the job's record, in the admin console and for the operator. The day's counts survive a restart of the marketplace. **How it is tested.** `TestOneAccountCannotHoldTheExitWithManyJobsAndCopies`, `TestTheExitKeepsRoomForAccountsThatHaveLittleOpen`, `TestAnAccountsDailyAllowanceIsAcrossItsJobs`, `TestOneComputerCannotHoldTheExitWithItsJobsPasses`, `TestAGroupSharesItsRoomAtTheExit`, `TestNewConnectionsAreLimitedAcrossAnAccountsJobs` and `TestExitSharesSurviveARestart` in `internal/coord`; the exit's tests with the real engine still pass (a job reaches the web through the exit, and the door still never reaches the owner's own computer). **What is still open.** The shares are fixed numbers in the marketplace's policy table, not yet something an operator can set per account. An attacker with many paid accounts is limited by the total and by what each account costs to open, not by these shares. ### F-B. A refund could take a balance below zero (Low) **What was shown.** A refund arriving from the payment provider subtracted the whole amount from the renter's balance and from what they had paid in, with no floor. Only the marketplace's operator can cause a refund, so a renter could not use this, but it contradicted "a balance never goes below zero". **What was changed.** A refund takes the balance down to zero at most. The part already spent is written off: an entry in the payment record, a figure on the renter and in the totals, so that "paid in plus written off equals balance plus spent" still holds. Such a renter is held at "new" standing, and jobs that standing does not allow are stopped, until the operator clears it. **How it is tested.** `TestARefundOfSpentCreditIsWrittenOffNotTakenBelowZero`. ### F-C. Sign-ins rewrote the whole account book under its lock (Low to medium, suspected) **What was suspected.** Every successful sign-in, sign-up or change wrote every account, session and invitation to disk while holding the lock that every other sign-in needs, and passwords were checked four at a time. With many accounts, a burst of sign-ins could make the rest wait or be refused. The reviewer did not load-test it. **What was changed.** A change now appends one line (the one account or session that changed) to a journal; the whole book is written every ten minutes or after 4 MB of journal, outside the lock. Changes that must not be lost (a new password, a revoked key, ended sessions, a lock, a new account) are on disk before the request is answered; a new session may be written a moment later, since losing one only means signing in again. Passwords are checked on one slot per processor, and a request that would wait too long is told "busy, try again" at once. **How it is tested.** `TestAccountChangesSurviveACrash`, `TestAccountSnapshotsAndATornJournal`, `TestBusyIsSaidAtOnce`, and `TestManySignInsAgainstALargeBookHoldTheLockBriefly` (200,000 accounts, 50,000 sessions, 400 sign-ins at once: the work done under the lock for one sign-in is the same as with 1,000 accounts). **What is still open.** The admin console's own record and the complaints it holds are still written whole on each change. Complaints are limited to 200 an hour, which bounds it; the same journal is planned for it. ### F-D. Self-check results are taken on trust (by design) A computer's app reports the result of its own self-check, and the marketplace believes it. An owner who changed the app could report anything, so a good self-check on a computer's record tells a renter nothing certain; it exists to protect the owner. The console says so where renters read about a computer's record. Checking computers from outside (the same job on two computers, or spot checks) is not built. ### What the reviewer attacked that held - **The exit cannot be pointed at private places.** With a test of its own against the checking code the exit uses, the reviewer confirmed it refuses cloud metadata addresses, loopback, every private and carrier-grade range, the forms that hide such an address inside an IPv6 one, the operator's own refused ranges, names that resolve only to private addresses, and every port but 80 and 443; for a name with both a public and a private address it connects only to the public one, and it never looks the name up a second time. - **The admin console.** Without a session: refused. Through a forwarding header on a marketplace not set up behind a proxy: not found. The first admin can be made only from the marketplace's own data folder or its own machine. - **Operator routes** all ask for the operator's key, compared in constant time, with a lock-out per address. - **Requests from other sites** are refused; sign-up is closed unless the operator opens it; the one request accepted from another site (Google's answer when signing in) must carry Google's origin, the browser's own cookie and a token Google signed. - **Complaint text cannot run in an admin's browser**: the page writes text only, and its content policy allows no inline script. - **Passkey data** is size-limited before it is read, and every length is checked against what is left. - **Taking over an account before its owner confirms it**: a Google sign-in that takes over an unconfirmed account wipes its password, sessions and keys first. - **Other renters' jobs and files** cannot be reached by guessing numbers. - **Booking a Mac twice, or paying less for it**: the booking is made under one lock and its day-by-day charges undo exactly. - **Group invitations** cannot be guessed (128 random bits, ten tries in ten minutes). ### What was not covered The signature checks of passkeys end to end; ready-made jobs and the zip of rendered frames; how hosts read signed updates; website bundles; billing for copies and spares in depth; a live attempt to exhaust the exit; anything on Windows or a Mac. ## Fifth review: the sealed box's Windows service 3 December 2026. The sealed box (docs/OWN-VM.md) needs a small Windows service that runs as the system account, because Windows lets only administrators make a virtual machine. A fault in such a service is a way for any program on the PC to gain the system's rights. This review looked for that before the service is installed anywhere. **Who reviewed it, and what that is worth.** An AI reviewer started with a clean slate and was cut off after four fixes, with no report. A second one (this record) started again from the code, checked those four fixes, and went through the whole service. Neither had a Windows machine. **No line of the service has run on Windows yet.** Everything below comes from reading the code, building it for Windows, and tests on the build machine in which a stand-in plays Windows. That finds faults in the rules; it cannot find a Windows call that behaves differently from what its manual says. The first run on a PC, and an outside review, are still to come. **What was reviewed.** The service program and its installer (`cmd/tenabyte-box-service`, `internal/engine/boxsvc`), the machine's description and the Windows calls (`internal/engine/ownvm`), the app's side (`internal/engine/boxhost*.go`, `boxservice_windows.go`, `boxapp`), the door the engine in the box uses (`internal/engine/door`), and the scripts that make the PC kit. **The result in one line.** No way was found for a program on the PC to gain the system's rights through the service, to make it open, write, delete or re-secure a file of the caller's choosing, or to read the PC's files through it. One medium weakness was found on the app's side of the box's channel, and a number of small ones. | # | Severity | What was found | State | |---|----------|----------------|-------| | E1 | Medium | The installer took the box's files, and a signed list, from a folder named in its surroundings | Fixed by the first reviewer; checked | | E2 | Medium | A freshly installed service took any list its key had ever signed, however old | Fixed by the first reviewer; one gap closed (3 below) | | E3 | Medium | The installer laid down whatever signed list it was handed | Fixed by the first reviewer; checked | | E4 | Medium | The engine's own door reached every public address on ports 80 and 443, and was never told the owner's outside address | Narrowed by the first reviewer; one gap closed (2 below) | | 1 | Medium | A box that stops listening can make the app use memory without end | Fixed | | 2 | Low | The engine's "https only" door also carried plain web traffic and any other bytes | Fixed | | 3 | Low | A build given a signing key but no floor takes any list that key ever signed | Fixed | | 4 | Low | The app keeps everything a probe in the box prints | Fixed | | 5 | Low | The service's one line can be held, and its pipe's name taken: the app gets no box, nobody gains rights | Open: needs Windows to try a fix | | 6 | Low | The service's log has no size limit while the service runs | Open | ### What the first reviewer fixed (E1 to E4) **E1. The installer believed its surroundings.** The installer runs with administrator rights after Windows' one prompt. It took the kernel, the init, the scratch disk and the signed list from the folder named by `TENABYTE_BOX_FILES`, if that was set. A program running as the owner can set that for the approved installer. Now everything an install puts on the PC comes from inside the program (`TestTheInstallerTakesNothingFromTheEnvironment` in `internal/engine`). The second reviewer searched everything the approved installer runs for anything else read from its surroundings and found nothing: one argument, the account that asked, which can only make it refuse. **E2. "Never back to an older list" did not hold for a new install.** The list built into the service counts as number 0, so a service with no signed list in its folder took any list its key had ever signed: an old kernel with a known fault could be put back. A build now carries a floor, the number of the list made for it, and takes nothing older; a second list with the number in force but other files is refused too (`TestAnOlderSignedListIsNeverTaken` in `internal/engine/boxsvc`). **E3. The installer laid down any signed list.** The service prefers a signed list in its folder to its built-in one, and the installer wrote whatever list it carried. It now looks at the list first, as the service will: signed by a key this build trusts, not older than its floor, and naming exactly the files being installed (`TestTheInstallerLaysDownOnlyTheSignedListThatBelongs`). **E4. The engine's own door was wide.** A box has no network card; the engine in it fetches job images through a door kept in the app. Anything loose in the box's own network can use that door. It let through every public address on ports 80 and 443, by name or number, and was never told the address the owner's connection shows to the world. It now takes port 443 only, names only, and is told the owner's address when the marketplace reports it, even while open (`TestTheEnginesOwnDoorInTheBox` in `internal/engine`; `TestADoorForHTTPSToNamedSitesOnly` and `TestADoorLearnsTheOwnersAddressWhileOpen` in `internal/engine/door`). ### 1. A box that stops listening could fill the app's memory (Medium) **What was shown.** The app's side of the channel checks every message a box sends, and docs/OWN-VM.md says it has "limits on everything the box sends". Two things had none. When the app refuses a box's request for a connection, it wrote its "no" from a new background task each time; a box that does not read never lets the first one finish, and the rest pile up. And a "close" for a connection was queued each time it came. With a stand-in for the box on the build machine, 20,000 refused requests (under one megabyte sent) left 20,000 waiting tasks and 62 MB in use, and 200,000 "close" messages were all kept. Nothing stopped either at any number. Whoever is root in the box can send these: a job that broke out of its container, or a hostile kernel. The result is the app, and possibly Windows, running out of memory. Nothing is read or changed on the PC. **What was changed.** The app's answers "no" no longer get a background task each. They wait in one queue with room for 1,024, and one task writes them. A box that keeps to the rules cannot fill it: its own side holds at most 512 requests at a time, and each unanswered request is one of them. A box that leaves more answers than that unread is not reading its channel, and the app ends the channel, which stops the box. And after a box has closed a connection, whatever else it sends for that connection is dropped until the app has answered the close; nothing is queued. **How it is tested.** `TestABoxThatStopsListeningCannotFillTheAppsMemory` in `internal/engine/ownvm`, with a stand-in for the box that says hello and then reads nothing. It sends 20,000 requests that the app refuses: the app must end the channel for breaking the rules after about 1,024 of them, with no more than a handful of new tasks. It opens one connection and sends 200,000 "close" messages for it: the app must keep almost none of them and must not end the channel. And the real box side asks 12,000 times from 600 places at once and is refused each time: an honest box is never cut off. The first two parts failed before the change. The tests of the doors and of the Windows service, which use this channel, pass with it. **What is still open.** Nothing. The change is in a folder whose files are also built into the box's own first program, so the box's files had to be made again. They were, with engine pack 29.10.1-18 (`scripts/pack-box.sh`), and the app's whole self-check passed in a box started from them (on the build machine, under QEMU). The box's side behaves as before. ### 2. The "https only" door looked at the port, not at what was sent (Low) **What was shown.** After E4 the engine's door was described as carrying only https to named sites. It checked the port number and that a name was given. A plain web request to port 443 went through, and so did any bytes at all once a tunnel was open; shown with a test, directly and through the box's channel. The owner's networks stayed out of reach: private addresses, the PC's own addresses and networks, IPv6 and the owner's outside address were refused throughout. What it gave a program already loose in the box was any protocol to any public server on port 443, from the owner's address. **What was changed.** A door for https only now takes no plain request at all, whatever port it names, and connects nowhere for one. A tunnel through it carries nothing until the program has opened an https conversation that names the very site it asked for; anything else, or a conversation for another site, is dropped before a byte is passed on. It is the check the "downloads" doors already make (`HelloFor`). Other doors are unchanged. **How it is tested.** `TestAnHTTPSOnlyDoorCarriesNothingButHTTPS` in `internal/engine/door` (a plain request to port 443, plain text in a tunnel, an https conversation for another site: nothing reaches the site; an honest one is carried; an ordinary web door behaves as before). Like every test of that package it runs twice, directly and with the box's channel in between. It failed before the change. `TestTheEnginesOwnDoorInTheBox` checks that the engine's door is such a door. **What is still open.** Https to any public site that has a name. See "Should the engine's door be held to a list of names?" below. ### 3. A key without a floor (Low) `scripts/box-kit.sh` gives a build both a key and a floor (E2). `scripts/build.sh` gave it a floor only if asked; with a key alone the floor was 0 and E2 came back. No build is made that way today. **What was changed.** A program built with a key and no floor (or a floor that cannot be read) takes no signed list at all: not when offered, not if one lies in its folder; it tells the app it takes no new files; and its installer refuses a build that carries a signed list all the same. `scripts/build.sh` refuses `BOX_KEYS` without `BOX_FLOOR` before it builds anything. **How it is tested.** `TestAKeyWithoutAFloorTakesNoSignedList` and `TestTheBuildScriptRefusesAKeyWithoutAFloor` in `internal/engine/boxsvc` (the second runs the script in an empty folder with a stand-in for the Go tool, so nothing is built). Both failed before the change. ### 4. Probe output was kept without limit (Low) The app runs small probes in the box (for the box's four walls in the self-check, and for the box test) and kept whatever they printed, for up to two minutes each. Root in the box can put output into such a conversation. **What was changed.** The app now keeps the first megabyte of what such a program prints and only counts the rest; the kept text ends with a line that says how much was left out. The program in the box is not held up by this and ends in its own time. The self-check's four probes of the box and the box test read through the same limit. **How it is tested.** `TestAProbesOutputIsKeptOnlyUpToALimit` in `internal/engine/ownvm/boxcheck`: a stand-in for the box prints eight million bytes; the app keeps one megabyte and the note, and the program ends well; a short output comes back whole. It failed before the change (all eight million bytes were kept). ### 5. The service's one line can be held (Low, open) The service serves one caller at a time and waits for a caller's first line without a time limit. A program of the owner's own account that connects and says nothing keeps the app from getting a box. Any program can also make a pipe with the service's name while the service is stopped; the service then does not start, and the app refuses the impostor (it checks which process answers). Neither gives anyone rights or data; docs/OWN-VM.md already calls the second a nuisance. A time limit needs Windows calls that could not be tried on the build machine, in the one program that runs with the system's rights, so nothing was changed. `tenabyte box-service stop` frees the line. ### 6. The service's log (Low, open) The log is cut back when the service starts, not while it runs. A program of the owner's account that connects in a loop grows it. The same account can fill the disk with its own files anyway. ### What was checked and held - **Nothing a caller sends reaches a file name, a program, a registry key or the machine's description.** A request has seven fields: the request's name, a version, two numbers, a secret, a direction, and for new box files a signed list and one of four fixed file names. Numbers are held to the PC's own; the secret must be 32 hex digits and is the only text of the caller's that reaches the kernel's command line; anything unknown ends the conversation. Every path the service uses is made from its own folder and fixed names. - **Only the one account is served.** The pipe's access list names the system and the one account, without the right to make another pipe of that name. The service insists on being the first to make the pipe, takes one caller at a time, refuses callers from other computers, and asks Windows whose program is calling before it acts on anything. It takes the caller's identity on one thread only and stops for good if it cannot drop it again. - **The folder.** An earlier folder is deleted first; the new one must not exist when it is made; it is made closed to everyone but Administrators and the system from its first moment; links are refused; and the read-back check refuses any owner or entry it does not expect. An ordinary program cannot write anywhere in it, so it cannot plant a link for the service to follow. Removal deletes one folder whose place comes from Windows' own registry. - **The service's registration.** The path is quoted. The account may start it, stop it and ask its state, and nothing else. - **Libraries.** The service and the installer load Windows' libraries by full path from the system folder, and tell Windows to look nowhere else. - **The signed list.** Ed25519 over a fixed label and the list's exact bytes; unknown fields, missing files, oversized files and a serial of 0 are refused; a release build, which has no key, accepts nothing. - **The machine's shape,** as the service asks Windows for it: two device classes (disks, sockets), no network adapter, no shared folder, no serial port, the engine's disk read-only, an empty access list for every socket port and one entry, for the caller's own account, on the channel's port. - **The channel's parsers** on the app's side refuse everything the first reviewer and this one tried. Finding 1 was the one exception, and it is fixed. - **The kit's `.cmd` files** quote their folder and run only the kit's own program; a folder name with spaces or special characters does not change what they run. ### What a root user inside the box can reach Its two disks (the engine's read-only; the scratch disk, which is kept between starts and can grow to 64 GB on the Windows drive). The Hyper-V socket, on which nothing answers once the app has taken the box's one call. The app, over the channel: it can answer the app's commands as it likes and ask for a connection through a door that is open, by the door's name; what a door lets through is decided in the app. And the hypervisor itself, as every virtual machine can. No network card, no folder, no serial port, no graphics card. ### What another program of the owner's account can do Call the service, as the app does: it gets a sealed machine and is root in it, and nothing on Windows. Listen on the channel's port of a machine: if it gets the box's one call instead of the app, it is talking to a sealed box with no door, and the app, hearing no hello, has the machine ended. Keep the app from getting a box (finding 5). The design accepts this: Windows offers no way to tell one account's programs apart that such a program could not get round. A program of another account is refused at the pipe, again by the service, by the machine's socket rule, and by the app's own local socket. ### Should the engine's door be held to a list of names? It could be: the names of the registries an owner allows images from, plus the sites those registries send downloads on to. Renters may name images from any public registry, and each registry hands downloads to other names of its own choosing (Docker Hub to a Cloudflare name, GitHub's registry to another GitHub name, Google's to its storage site), and changes them. A list would have to be kept up, and a missing name means an image that will not fetch. It would bring one more rule with it: every connection would have to open by naming a listed site. That is a decision for the product, not for a review; it is not made here. Until then the door is as narrow as fetching from any registry allows. ### Notes - **Who owns a new file.** The read-back check stands on files in the folder being closed from their first moment, which they are. The owner of each file is set to Administrators a moment later. If a PC gives files made by an approved program to the person's own account instead of to Administrators (Windows normally does not), that account's ordinary programs could act in that moment. Only a program already running as the owner during the install could, and it could swap the installer itself. The PC test can settle it: every file in the folder must show Administrators as its owner. - **The installer runs from a folder the owner's programs can write,** and Windows' prompt says "unknown publisher". docs/OWN-VM.md says so. Only a signed program changes that. - **The trial key.** The kit's service takes new box files signed with a throwaway key from the build machine. Whoever holds that file can, through any program running as the owner, replace what runs inside the box. Keep it private, and take the trial service off the PC when the trial is over. - **Memory and processors.** A caller may ask for all the PC has, by design. - **The door reads the PC's own networks once,** when it opens. A network with public-looking numbers joined later is not on its list; private ranges are always refused. - **Windows' built-in "Administrator" account** cannot have the service installed for it: the read-back check does not recognise how Windows writes that account. It fails safely. ### What was not covered Anything that needs Windows to answer: the pipe's access list as Windows makes it; who Windows says is calling; what Windows reports for the folder; whether the machine really ends with the service; what devices Windows adds to a machine by itself (the first PC run counted four where the description names two); whether an ordinary program, or a sandboxed one, of the same account may listen on the machine's socket. The box's own init and the engine inside the box were read, not attacked. The first PC run of the service is the next test of all of it.