UPX - the Ultimate Packer for eXecutables
This report summarizes scanner evidence for upx/upx, a C++ project with 17,980 GitHub stars. SynthScan examined 195,295 lines of code across 367 source files, recording 539 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 2.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 527 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 9 finding(s).
Which changes need focused human review? 539 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 539 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # | COMMENT |
| LOW | misc/podman/rebuild-stubs/20-image-run-shell.sh | 41 | fi | COMMENT |
| LOW | misc/podman/rebuild-stubs/20-image-run-shell.sh | 61 | # ./build/extra/gcc/release/upx --version | COMMENT |
| LOW | misc/podman/rebuild-stubs/20-image-run-shell.sh | 81 | # cd /home/upx/src/upx/doc | COMMENT |
| LOW | misc/testsuite/upx_testsuite_1.sh | 1 | #! /usr/bin/env bash | COMMENT |
| LOW | misc/testsuite/mimic_ctest_sigsegv.sh | 1 | #! /usr/bin/env bash | COMMENT |
| LOW | misc/testsuite/mimic_ctest.sh | 1 | #! /usr/bin/env bash | COMMENT |
| LOW | misc/testsuite/test_symlinks.sh | 1 | #! /usr/bin/env bash | COMMENT |
| LOW | .github/workflows/github-close-stale-issues.yml | 1 | # Copyright (C) Markus Franz Xaver Johannes Oberhumer | COMMENT |
| LOW | src/p_w32pe_i386.cpp | 161 | COMMENT | |
| LOW | src/p_ps1.cpp | 41 | static const CLANG_FORMAT_DUMMY_STATEMENT | COMMENT |
| LOW | src/p_ps1.cpp | 61 | #define MIPS_LO(a) ((a) &0xffff) | COMMENT |
| LOW | src/p_ps1.cpp | 341 | #define OPCODE(x) (((x) >> 10) & 0x7) | COMMENT |
| LOW | src/version.h | 1 | #pragma once | COMMENT |
| LOW | src/MAX_ELF_HDR.h | 1 | #pragma once | COMMENT |
| LOW | src/bele_policy.h | 221 | #error "ACC_ABI_ENDIAN" | COMMENT |
| LOW | src/bele.h | 281 | #if (ACC_ABI_BIG_ENDIAN) | COMMENT |
| LOW | src/bele.h | 1101 | #define ne32_compare_signed be32_compare_signed | COMMENT |
| LOW | src/help.cpp | 41 | static constexpr int has_cpp_attribute = 1; | COMMENT |
| LOW | src/help.cpp | 61 | static constexpr int has_warning = 1; | COMMENT |
| LOW | src/help.cpp | 521 | if (v != nullptr && v[0]) | COMMENT |
| LOW | src/help.cpp | 601 | cf_print("ACC_CC_GNUC", "0x%06llx", ACC_CC_GNUC + 0, 3); | COMMENT |
| LOW | src/help.cpp | 641 | // architecture | COMMENT |
| LOW | src/help.cpp | 661 | cf_print("__riscv_misaligned_fast", "%lld", __riscv_misaligned_fast + 0, 4); | COMMENT |
| LOW | src/help.cpp | 681 | cf_print("_WIN32_WINNT", "0x%04llx", _WIN32_WINNT + 0); | COMMENT |
| LOW | src/help.cpp | 701 | cf_print("__GLIBC_MINOR__", "%lld", __GLIBC_MINOR__ + 0); | COMMENT |
| LOW | src/help.cpp | 761 | #endif | COMMENT |
| LOW | src/conf.h | 41 | #if !defined(__has_builtin) | COMMENT |
| LOW | src/conf.h | 81 | #endif | COMMENT |
| LOW | src/conf.h | 101 | // don't enable before gcc-10 because of gcc bug #78010 | COMMENT |
| LOW | src/conf.h | 121 | #define upx_is_constant_evaluated __builtin_is_constant_evaluated | COMMENT |
| LOW | src/conf.h | 161 | #define upx_fake_alignas__(x) upx_fake_alignas_##x | COMMENT |
| LOW | src/conf.h | 221 | // UPX convention: use "charptr" when dealing with abstract pointer arithmetics | COMMENT |
| LOW | src/conf.h | 241 | COMMENT | |
| LOW | src/conf.h | 261 | #define likely __acc_likely | COMMENT |
| LOW | src/conf.h | 281 | #endif | COMMENT |
| LOW | src/conf.h | 301 | #endif | COMMENT |
| LOW | src/conf.h | 321 | COMMENT | |
| LOW | src/conf.h | 341 | COMMENT | |
| LOW | src/conf.h | 361 | COMMENT | |
| LOW | src/conf.h | 381 | #define VALGRIND_CHECK_MEM_IS_DEFINED(addr, len) 0 | COMMENT |
| LOW | src/conf.h | 401 | COMMENT | |
| LOW | src/conf.h | 421 | #define upx_memcpy_inline __builtin_memcpy | COMMENT |
| LOW | src/conf.h | 501 | noreturn void throwAssertFailed(const char *expr, const char *file, int line, const char *func) | COMMENT |
| LOW | src/conf.h | 521 | COMMENT | |
| LOW | src/conf.h | 541 | #define EXIT_ERROR 1 | COMMENT |
| LOW | src/conf.h | 561 | #define UPX_E_INPUT_OVERRUN (-4) | COMMENT |
| LOW | src/conf.h | 581 | #define UPX_F_LINUX_ELF_i386 12 | COMMENT |
| LOW | src/conf.h | 601 | #define UPX_F_MACH_ARM 32 | COMMENT |
| LOW | src/conf.h | 621 | #define UPX_F_LINUX_ELF32_ARMEB 133 | COMMENT |
| LOW | src/conf.h | 641 | #define M_NRV2E_LE16 10 | COMMENT |
| LOW | src/conf.h | 661 | #define M_IS_DEFLATE(x) ((x) == M_DEFLATE) | COMMENT |
| LOW | src/conf.h | 901 | int method, | COMMENT |
| LOW | src/p_lx_exc.cpp | 41 | #include "p_elf.h" | COMMENT |
| LOW | src/p_lx_exc.cpp | 261 | COMMENT | |
| LOW | src/p_lx_exc.cpp | 321 | // // Elf32_Phdr: 1 for exec86, 2 for sh86, 3 for elf86 | COMMENT |
| LOW | src/p_lx_elf.cpp | 41 | #include "p_unix.h" | COMMENT |
| LOW | src/p_lx_elf.cpp | 1441 | int const n_mru = ft->n_mru; // FIXME: belongs to filter? packerf? | COMMENT |
| LOW | src/p_lx_elf.cpp | 3221 | COMMENT | |
| LOW | src/p_lx_elf.cpp | 3241 | // bxeq lr | COMMENT |
| 448 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/stub/scripts/brandelf.py | 116 | except AssertionError: pass | CODE |
| HIGH | src/stub/scripts/bin2h.py | 273 | except AssertionError: pass | CODE |
| HIGH | src/stub/scripts/gpp_inc.py | 144 | except AssertionError: pass | CODE |
| HIGH | src/stub/scripts/xstrip.py | 200 | except AssertionError: pass | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/stub/scripts/brandelf.py | 6 | # This file is part of the UPX executable compressor. | COMMENT |
| MEDIUM | src/stub/scripts/bin2h.py | 6 | # This file is part of the UPX executable compressor. | COMMENT |
| MEDIUM | src/stub/scripts/gpp_inc.py | 6 | # This file is part of the UPX executable compressor. | COMMENT |
| MEDIUM | src/stub/scripts/xstrip.py | 6 | # This file is part of the UPX executable compressor. | COMMENT |
| MEDIUM | src/stub/src/arch/i086/wdis2gas.py | 6 | # This file is part of the UPX executable compressor. | COMMENT |
| MEDIUM | src/stub/src/arch/i086/cleanasm.py | 6 | # This file is part of the UPX executable compressor. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/stub/scripts/brandelf.py | 45 | CODE | |
| LOW | src/stub/scripts/brandelf.py | 114 | CODE | |
| LOW | src/stub/scripts/bin2h.py | 178 | CODE | |
| LOW | src/stub/scripts/bin2h.py | 271 | CODE | |
| LOW | src/stub/scripts/gpp_inc.py | 142 | CODE | |
| LOW | src/stub/scripts/xstrip.py | 45 | CODE | |
| LOW | src/stub/scripts/xstrip.py | 68 | CODE | |
| LOW | src/stub/scripts/xstrip.py | 135 | CODE | |
| LOW | src/stub/scripts/xstrip.py | 198 | CODE | |
| LOW | src/stub/src/arch/i086/wdis2gas.py | 44 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | misc/analyze/clang-tidy/run-clang-tidy.py | 80 | print("Error: could not find compilation database.") | CODE |
| MEDIUM | misc/analyze/clang-tidy/run-clang-tidy.py | 530 | print("Error exporting fixes.\n", file=sys.stderr) | CODE |
| MEDIUM | misc/analyze/clang-tidy/run-clang-tidy.py | 539 | print("Error applying fixes.\n", file=sys.stderr) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | misc/analyze/clang-tidy/run-clang-tidy.py | 37 | CODE | |
| LOW | src/stub/scripts/brandelf.py | 31 | CODE | |
| LOW | src/stub/scripts/brandelf.py | 31 | CODE | |
| LOW | src/stub/scripts/xstrip.py | 31 | CODE | |
| LOW | src/stub/src/arch/i086/wdis2gas.py | 31 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | misc/analyze/clang-tidy/run-clang-tidy.py | 74 | def find_compilation_database(path): | CODE |
| LOW | src/stub/scripts/bin2h.py | 223 | def encode_compressed_stub_header(method, idata, odata): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/p_mach.cpp | 618 | segTEXT.vmsize = len; // FIXME? utilize GAP + NO_LAP + sz_unc - sz_cpr | CODE |