Skip to content

fix: decode an inner unit behind a decoded outer rotator or a debug timer under --unsafe - #470

Merged
Sorte1 merged 5 commits into
mainfrom
fix/ox2-d5
Nov 20, 2026
Merged

Sorte1 merged 5 commits into
mainfrom
fix/ox2-d5

Conversation

@Sorte1

@Sorte1 Sorte1 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

OX2-D5: under --unsafe, decode an inner string-array unit whose rotator sits behind another layer's code.

In layered obfuscator.io output, the inner unit was refused with "code precedes the rotator" in two shapes, and the outer unit was often refused before that.

  • An outer layer's debug-protection timer shell ((function(){ ... g.setInterval(protection, 4e3) })()) sits before the inner rotator. Under --unsafe a top-level statement that is exactly a recognised debug-protection interval shell, with a recognised protection function as the callback, counts as inert before a rotator (protections never fire, built-ins are not patched).
  • The outer unit was decoded in an earlier round and its rotator is kept. Under --unsafe a unit whose request is accepted with no call left to decode now counts as held for the units that rely on its rotator (in the plan and in the decode), and for such a unit the foreign proof skips the intrinsic-reach scan that the unsafe premises cover. Decoders and rotators must still be read-only and sealed.
  • The outer unit was refused because its string array or decoder is reached inside dead-injected branches (l(0), a dynamic decoder call whose guard uses another layer's strings, a decoder written in a branch). These now join the existing escape speculation: every such use must sit in a branch, and the binding spans and the use spans are deferred.
  • Verification of deferred spans now carries across layer rounds. A span that still names an identifier at the end of a deobfuscate stage is kept as its names, and a later round's stage clears it once no identifier with that name is left. A round that is thrown away restores the names. Anything still pending at the end of the run, or any survivor without a name, reruns the input with speculation off, as before. Carrying is only on when no renaming is asked for.

The default lane is unchanged.

Rows: interval-before-rotator (rnd031-m3--functions) and decoded-foreign-rotator (rnd031-n2--empty-log) decode fully under --unsafe and print the source's output.

Cluster, main @55e0da82 vs this branch (unsafe lane; default lane is pass-kept for all of them on both):

id main branch
rnd031-n2--classes fail pass
rnd031-n2--console-test fail pass
rnd031-n2--control fail pass
rnd031-n2--empty-log fail pass
rnd031-n2--functions fail pass
rnd031-n3--functions fail pass
rnd031-n3--greeting fail pass
rnd031-m3--functions fail pass
rnd031-m3--strings fail pass
pw023-m3--empty-log fail pass
rnd031-n3--console-test fail fail (stateful decoder referenced outside its proven calls)
rnd031-n3--strings fail fail (stateful decoder; default lane still fails on main too)
rnd031-n3--empty-log fail fail (a decoder call throws in the interpreter)
pw023-m3--greeting fail fail (stateful decoder referenced outside its proven calls)

Full sweep (3,465 cases, 2,189 run):

lane main this branch gained regressions
default 99.4% (13 fail) 99.4% (13 fail) 0 0
unsafe 97.1% (63 fail) 98.1% (41 fail) 22 0

Also gained under unsafe: pw015-n3--greeting/objects/classes, pw023-m3--console-test, pw024-m3--control/strings, pw026-m3--empty-log, rnd001-n3--empty-log/classes/control, rnd001-m3--classes/mixed.

Gates:

…imer under --unsafe

Under --unsafe a debug-protection timer shell before a rotator is inert, a fully
decoded foreign unit counts as held for the units that rely on its rotator, and
the foreign unit proof skips the intrinsic-reach scan the unsafe premises cover.
A string array or decoder reached only from branches is speculated, and a
deferred escape that survives one layer round is carried by name to the next
round instead of forcing the rerun.
…es with the foreign rotator and escape-name carry on top of main
@Sorte1
Sorte1 merged commit 1d93a3c into main Nov 20, 2026
9 checks passed
@Sorte1
Sorte1 deleted the fix/ox2-d5 branch November 20, 2026 22:45

This branch was successfully deployed

1 active deployment
preview — 4b28c3dc Deployed Nov 20, 2026 by Sorte1 via deploy #1366
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant