Commit 9c23f79
committed
feat(obfuscation): multi-signal obfuscation analysis with detection wiring
Add ObfuscationProfile per function: sliding-window + const-pool entropy, byte-array payload runs, indirect-dispatch ratio, control-flow-flattening (fan-in), and in-loop decoder shape.
Scoring: dispositive (data-entropy) signals flag alone; structural signals corroborate only (lone-signal cap below MODERATE). Applicability gating stops inapplicable signals diluting the mean; a dispositive floor keeps corroboration from ever lowering a score.
Detection: relax the required-call hard gate for indirect-dispatch samples; add an obf>0.8 confidence floor on already-partial matches; carry obfuscation score/class/signals into Signature and MatchDetails.
Tests: helper units, SSA integration, nil-fn fallback, fuzz seeds, benchmark, and engine gate/floor/visibility behavior. README documents per-function scope and the known package-level-payload gap.1 parent de79499 commit 9c23f79
8 files changed
Lines changed: 1327 additions & 3 deletions
File tree
- pkg
- analysis/topology
- detection
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
613 | 624 | | |
614 | 625 | | |
615 | 626 | | |
| |||
0 commit comments