Skip to content

Releases

Download (v2.1.7) ironshell-x86

Choose a tag to compare

@tc4dy tc4dy released this 19 Nov 23:09
d790803
ironshell_x86_banner

[2.1.7] - current

this release was mostly about fixing structural issues and hardening the sandbox environment. the old code was getting too big in single files and memory blocks were overlapping. we split everything up to enforce strict boundaries between subsystems.

added

  • refactored the source code into dedicated directories: boot/, config/, core/, lib/, and ui/. this replaces the old flat layout and makes isolated testing much easier.
  • created config/memory.asm, config/errors.asm, and config/policies.asm to centralize memory addresses and error codes. this eliminates scattered hardcoded values across the codebase.
  • implemented a serial debug module in lib/serial.asm. it allows printf-style debugging via com1 using qemu's -serial stdio flag, which is helpful for tracing execution without attaching gdb.
  • added lba extended read support for disk operations inside lib/disk.asm.
  • rewrote the stage1.asm boot sector to use lba (ah=42h) instead of the legacy chs method. it now includes a 3-attempt retry loop and resets the disk controller on failure.

changed

  • relocated stage2.asm from 0x8000 to 0x10000 (segment 0x1000). the previous address was overlapping directly with the sandbox (0x9000), theme (0xb000), and filter (0xc000) modules, causing data corruption.
  • hardened the sandbox significantly. the ivt snapshot and restore routines now wrap write operations in cli and sti. this prevents a hardware interrupt from crashing the system mid-rewrite.
  • increased the opcode scan depth from 128 to 512 bytes. strict hard-blocks were also added for hlt, wrmsr, rdmsr, and lgdt regardless of the active policy.
  • the register integrity check now verifies es and sp post-execution, in addition to ds and ss.
  • theme.asm, filter.asm, and sandbox.asm now expose their functions through stable jmp near api tables. cross-segment calls use call far and retf, which is cleaner than hardcoding specific offsets.
  • updated the makefile to validate binary sizes. for instance, stage1.bin must be exactly 512 bytes, or the build will abort. it also prints the sector counts for every generated module.
  • cleaned up autosetup.sh to locate the root makefile directly, removing the recursive find scans.

removed

  • removed the monolithic stage2.asm file. the tui logic now resides in ui/, and the payload logic is in core/.
  • removed hardcoded offset calls such as theme_base + 42. all module communication now goes through the api jump tables.
  • cleaned up dead code, orphaned color blocks, and obsolete shadow variables left over from previous iterations.

fixed

  • fixed a critical race condition in the ivt auto-restore routine. previously, a hardware interrupt firing during the table rewrite could lock up the system.
  • fixed stack corruption in payload_memwalk caused by an unbalanced bx increment.
  • fixed the command history bug in ui/input.asm. the di pointer was miscalculated after a scasb operation, corrupting strings when scrolling up or down.
  • fixed stage1.asm drive number handling by saving dl to a dedicated memory location before any bios call could clobber it.

notes

  • the payload body still executes outside the sandbox envelope. the sandbox pre-scans and post-audits, but it does not provide hardware-level isolation (such as vt-x or strict segment limits). this remains out of scope for the mvp.
  • stage2 is padded to 32768 bytes. any additions to core/stage2.asm must be monitored via the makefile size output to prevent overlapping into the sandbox segment at 0x9000.

ironshell-x86 v2.1.6

Choose a tag to compare

@tc4dy tc4dy released this 09 Oct 19:16
1f9a6fe

Changelog

ironshell_x86_banner

All notable changes to ironshell-x86 are documented in this file.


[2.1.6] - Current

This cycle focused on module integration, jump tables, disk layout correctness
and cleanup across all subsystems. The goal was to make the previously
disconnected modules actually talk to each other through a stable interface,
and to remove dead code that had accumulated from earlier prototypes.

Added

  • API jump tables at the top of filter.asm, theme.asm and sandbox.asm.
    Each entry is a fixed-size near JMP, so stage2 can call any exported function
    by a stable offset without recomputing positions every time a module grows.
  • theme_copy_colors API in theme.asm — copies all 10 color slots in one call.
  • filter_api_match binding so stage2's log filter actually queries the
    filter module's own active_filter state instead of keeping a shadow copy.
  • theme_api_set binding so cmd_set_theme now applies themes through the
    theme module and immediately redraws the full screen with the new palette.
  • sandbox_api_entry and sandbox_api_post_exec bindings so sandbox_pre
    and sandbox_post route through the sandbox jump table.
  • Sender-side push ds / pop es fix in payload_memmap so E820 queries write
    into the stage2 buffer instead of the IVT neighborhood.
  • CHANGELOG.md (this file) so README stays focused on the current version.

Changed

  • All exported module functions in filter.asm, theme.asm and sandbox.asm
    now return with retf because stage2 calls them via call far [ptr].
    Internal helpers remain near ret.
  • sandbox_post now resolves sandbox_post_exec at SANDBOX_ENTRY + 3
    instead of the fragile hardcoded 0x902E.
  • stage1.asm reads 4 sectors (2048 bytes) for the loader instead of 2,
    giving the loader room to grow without a silent partial load.
  • cmd_set_filter writes into the filter module directly, so the filter
    engine and the shell share one source of truth for the active filter.
  • payload_msgbox shellcode bytes were reordered to produce a valid
    mov ax, imm; ret stub at 0xA000 instead of an accidental memory write.
  • README rewritten to match actual code behavior across every subsystem,
    including corrected sector counts, load addresses and sandbox wording.

Removed

  • Dead theme_apply_color inline color blocks (.color, .mono, .hacker,
    .retro, .stealth, .done) that were orphaned after the theme engine
    moved to a standalone module at 0xB000.
  • The hardcoded SANDBOX_POST equ 0x902E constant — replaced by an offset
    from SANDBOX_ENTRY through the sandbox jump table.
  • Stage2's shadow active_filter and active_theme_id variables. Both
    subsystems now keep their own state inside their own module segment.
  • The runtime shellcode disk load in loader.asm. Payloads write their own
    stub into 0xA000 at execution time, so there was nothing to load.
  • Redundant clc / jc guard in cmd_run_payload — replaced with a real
    call sandbox_pre, which is now reachable and functional.

Fixed

  • theme_apply_color now saves and restores DS and ES around the far
    calls into the theme module, so it can be called safely from any context.
  • cmd_set_filter no longer diverges from the filter module's state.
  • sandbox_post no longer risks jumping to the wrong offset when the
    sandbox module's internal layout shifts.
  • sandbox_entry now returns with retf 4, matching the far call from
    sandbox_pre and correctly cleaning up its two stack arguments.
  • filter_match and filter_get_name now preserve BX across calls.
  • filter_get_name clears DX before mul for cleanliness.
  • Loader LBA values in Makefile for theme and filter now match what
    loader.asm actually reads (87 and 89, not 83 and 85).
  • Makefile disasm target now uses the correct stage2 origin (0x8000)
    and includes theme and filter binaries.
  • Makefile help memory layout text now reflects the real module placement.

Notes

  • The sandbox pre-scans and post-audits every payload, but the payload body
    itself still executes outside the sandbox envelope. Tightening that
    boundary is scheduled for a later cycle.
  • The loader/stage2 memory window is tight. If the loader grows past 2048
    bytes, both the stage1 read count and LOADER_MAX_BYTES need to change
    together, and the stage2 origin may need to move.

[1.0] - Initial release

  • Two-stage bootloader.
  • Seven payloads.
  • Basic sandbox with four policy levels.

ironshell-x86 v2.1.5

Choose a tag to compare

@tc4dy tc4dy released this 21 Aug 18:25
c533378
ironshell_x86_banner

v2.1.5 — current

  • Added theme.asm module (0xB000): 5 color themes, live screen redraw
  • Added filter.asm module (0xC000): 6 log filter modes, render-time filtering
  • Added MEMMAP payload (E820 memory map via INT 15h with INT 12h fallback)
  • Sandbox: IVT auto-restore, STI/HLT detection, CPUID guard, policy scoring
  • New commands: theme, themes, filter, filters, errors
  • Payload arguments: sel <n> <arg> passes runtime args to PORTPROBE, STACKSMASH, IVTDUMP
  • Error tracking: typed error codes with errors command
  • Log scroll: PgUp/PgDn navigation in the log panel

Fixes:

  • Fixed: sandbox bypass in exec_payload — all payloads now route through sandbox_entry
  • Fixed: payload_memwalk stack corruption (double BX increment)
  • Fixed: sb_pre_exec policy logic (jge → correct allow/block ordering)
  • Fixed: hist_prev scasb using wrong DI after movsb
  • Fixed: format_payload_line invalid NASM multi-operand mov
  • Fixed: E820 entry stride inconsistency (20 vs 24 bytes)
  • Fixed: stage2/sandbox memory overlap (stage2 padded to 32768, sandbox at 0x9000 — gap enforced by layout)
  • Fixed: strcpy_bounded_name double null write
  • Fixed: vga_draw_banner box-drawing character sequence
  • Fixed: loader sector layout and disk addressing
  • Fixed: ES segment corruption in init_payloads, theme_init_defaults, ui_full_redraw, ui_draw_frame

ironshell-x86 v2.1.4

Choose a tag to compare

@tc4dy tc4dy released this 30 Jul 12:21
9c54c89

Added command history fix, new 2 payload, deep dive sandbox, bounds check fixed, colored themes and nice cli
ishell