Skip to content

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 15 Sep 10:51
· 58 commits to main since this release
  • Removed YARA. The yara subcommand, info --rules, and the yara-x
    dependency are gone. Rule matching was a second opinion bolted onto triage
    rather than something the tool could reason about; capability detection,
    the constant scanner, and the transparent verdict score carry the triage
    story on their own, and the build drops its one heavyweight dependency.
  • The pseudocode reads the arithmetic UCRT and MSVC actually emit. On
    ucrtbase.dll the share of instructions left as verbatim assembly fell from
    2.86% to 0.62% (7,079 to 1,527 of 247,363), and the functions containing any
    fell from 1,088 to 520:
    • AVX is read like its legacy twins. ucrtbase is built with VEX encodings,
      and every v-prefixed instruction was a comment: the moves (including the
      three-operand vmovsd xmm1, xmm2, xmm3, which copies its last source),
      the scalar arithmetic and compares, the zeroing xors, and the scalar FMA
      family, which now reads as the a * b + c one rounding computes.
    • sbb reg, reg — MSVC's branchless comparison — reads as the borrow it
      is: (a < b) ? -1 : 0 after a cmp, value != 0 ? -1 : 0 after a
      neg, and plain zero after a test/and/or, whose cleared carry is
      defined. A borrow this lifter cannot trace stays assembly.
    • bt/bts/btr read the bit they test into the branch that follows:
      bts eax, 7 is eax = eax | (1 << 7) and the jc after a bt asks
      whether ((value >> 7) & 1) == 1.
    • The one-operand widening multiply states both halves; the three-operand
      imul dst, src, imm no longer multiplies into the old destination
      (it printed eax = eax * ecx for imul eax, ecx, 5, a different
      product); BMI2 shlx/shrx/sarx read as shifts; a rotate by an
      immediate expands to its exact two shifts; the AVX conversions read as
      the casts they are; and int3 padding and vzeroupper are dropped.
  • A ret prints the value propagation recovered — return 0x0, not
    eax = 0x0; return rax — and the redundant assignment goes with it.
  • knife with no argument opens a file explorer instead of printing usage.
    Directories sort first, PE/ELF/Mach-O/archive files carry a badge sniffed
    from their magic bytes, / filters by name, and Enter hands the file to
    the analysis workspace. Quitting the workspace returns to the explorer in
    the same directory, so a folder of samples is one keypress per file.
    knife tui without a file and knife <directory> do the same.
  • Split comparison in the TUI. :split clones the active listing into a
    second column and :compare FUNC pins a function (or a data view) there,
    so two functions sit side by side while the active pane keeps roaming.
    Tab walks between the columns; each keeps its own cursor, view mode,
    in-listing search and back/forward history. The references pane hides
    while split; :only (or :close on the listing) collapses back to one.
  • :reload re-reads the target from disk and re-analyses it on a background
    worker, so a rebuilt or unpacked sample lands without restarting the
    session. Pane layout, filters and bookmarks survive; navigation into the
    old image does not. Annotations follow content identity: an unchanged file
    reloads into the same database, a changed file starts a fresh one, and a
    failed reload keeps the old session untouched.
  • :goto accepts explicit address modes: off:0xOFFSET (alias file:)
    converts a file offset through the section table, and va:0xADDRESS pins
    a value to the static-VA space even when a symbol shares the text. Miss
    errors show the address as typed instead of adding the image base twice.
  • A target with no recovered functions no longer refuses to open: the
    workspace starts on the first mapped bytes and the section, string and
    import catalogs stay available.
  • Terminals below 24x6 show a resize notice instead of clipped fragments,
    and the README is half its former length.

Full Changelog: v1.7.0...v1.8.0