AI Slop Code Risk Monitor

lief-project/LIEF

SlopCodeMonitor badge for lief-project/LIEF Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

LIEF - Library to Instrument Executable Formats (C++, Python, Rust)

1.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for lief-project/LIEF, a C++ project with 5,616 GitHub stars. SynthScan examined 546,638 lines of code across 3506 source files, recording 815 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 1.9 (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.

1.9
Adjusted Signal
1.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.6K
Stars
C++
Language
546.6K
Lines of Code
3.5K
Files
815
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 5.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 626 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

Are imports declared and package/API names verified? 62 finding(s).

Agent Over-Engineering Ratio 4.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 261 finding(s).

PR Review Velocity Impact 9.6/100 · LOW

Which changes need focused human review? 815 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 3HIGH 11MEDIUM 100LOW 701

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 815 distinct pattern matches across 17 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.

Over-Commented Block467 hits · 467 pts
SeverityFileLineSnippetContext
LOWconfig/mbedtls/config.h1#include "mbedtls/mbedtls_config.h"COMMENT
LOWconfig/mbedtls/psa_config.h1// Disable MbedTLS options that are not thread-safe. SeeCOMMENT
LOWplugins/binaryninja/dwarf-export/tools/main.cpp1#include <string_view>COMMENT
LOWplugins/binaryninja/dwarf-export/src/DwarfExport.cpp21#include <LIEF/MachO/Binary.hpp>COMMENT
LOWplugins/binaryninja/include/binaryninja/api_compat.hpp1#pragma onceCOMMENT
LOWplugins/binaryninja/extra/android/jni.h1221COMMENT
LOWplugins/binaryninja/src/lief_utils.cpp21COMMENT
LOWplugins/ghidra/jni/lief/dwarf/Editor.cpp21#include "jni/lief/dwarf/editor/CompilationUnit.hpp"COMMENT
LOW…ugins/ghidra/jni/lief/dwarf/editor/CompilationUnit.cpp21#include "jni/lief/dwarf/editor/BaseType.hpp"COMMENT
LOWinclude/LIEF/DebugDeclOpt.hpp21#include <string>COMMENT
LOWinclude/LIEF/DebugDeclOpt.hpp81 DeclOpt& include_locals(bool value) LIEF_LIFETIMEBOUND;COMMENT
LOWinclude/LIEF/MachO.hpp21COMMENT
LOWinclude/LIEF/MachO.hpp41 #include "LIEF/MachO/DyldExportsTrie.hpp"COMMENT
LOWinclude/LIEF/MachO.hpp61 #include "LIEF/MachO/NoteCommand.hpp"COMMENT
LOWinclude/LIEF/MachO.hpp81 #include "LIEF/MachO/TwoLevelHints.hpp"COMMENT
LOWinclude/LIEF/errors.hpp61/// Wrapper that contains an Object (``T``) or an errorCOMMENT
LOWinclude/LIEF/errors.hpp101COMMENT
LOWinclude/LIEF/DWARF.hpp21#include "LIEF/DWARF/DebugInfo.hpp"COMMENT
LOWinclude/LIEF/DWARF.hpp41#include "LIEF/DWARF/editor/Type.hpp"COMMENT
LOWinclude/LIEF/runtime.hpp21#include "LIEF/runtime/Memory.hpp"COMMENT
LOWinclude/LIEF/DyldSharedCache.hpp21#include "LIEF/DyldSharedCache/MappingInfo.hpp"COMMENT
LOWinclude/LIEF/ASM.hpp21COMMENT
LOWinclude/LIEF/compiler_attributes.hpp21 #define LIEF_CPP11COMMENT
LOWinclude/LIEF/compiler_attributes.hpp41 #endifCOMMENT
LOWinclude/LIEF/compiler_attributes.hpp61#elseCOMMENT
LOWinclude/LIEF/compiler_attributes.hpp81 #endifCOMMENT
LOWinclude/LIEF/Abstract.hpp21#include "LIEF/Abstract/Function.hpp"COMMENT
LOWinclude/LIEF/visitor_macros.hpp21// ==========COMMENT
LOWinclude/LIEF/visitor_macros.hpp41 class OBJ; \COMMENT
LOWinclude/LIEF/visitor_macros.hpp61 #define LIEF_MACHO_VISITABLE(OBJ)COMMENT
LOWinclude/LIEF/visitor_macros.hpp81// ===========COMMENT
LOWinclude/LIEF/visitor_macros.hpp101 }COMMENT
LOWinclude/LIEF/visitor_macros.hpp121 #define LIEF_ART_VISITABLE(OBJ)COMMENT
LOWinclude/LIEF/ObjC.hpp21#include "LIEF/ObjC/DeclOpt.hpp"COMMENT
LOWinclude/LIEF/iterators.hpp101template<class T, class U, class Category>COMMENT
LOWinclude/LIEF/iterators.hpp781template<class T, typename U, class IT>COMMENT
LOWinclude/LIEF/iterators.hpp801/// designs where this doesn't work well. It doesn't really force much addedCOMMENT
LOWinclude/LIEF/iterators.hpp821/// mutable or use const_cast.COMMENT
LOWinclude/LIEF/OAT.hpp21COMMENT
LOWinclude/LIEF/DEX.hpp21#if defined(LIEF_DEX_SUPPORT)COMMENT
LOWinclude/LIEF/PE.hpp21COMMENT
LOWinclude/LIEF/PE.hpp41 #include "LIEF/PE/Parser.hpp"COMMENT
LOWinclude/LIEF/PE.hpp61 #include "LIEF/PE/resources/ResourceDialogRegular.hpp"COMMENT
LOWinclude/LIEF/PE.hpp81COMMENT
LOWinclude/LIEF/LIEF.hpp21#include "LIEF/Abstract.hpp"COMMENT
LOWinclude/LIEF/ELF.hpp21#if defined(LIEF_ELF_SUPPORT)COMMENT
LOWinclude/LIEF/ELF.hpp41 #include "LIEF/ELF/NoteDetails.hpp"COMMENT
LOWinclude/LIEF/ART.hpp21COMMENT
LOWinclude/LIEF/COFF.hpp21#if defined(LIEF_COFF_SUPPORT)COMMENT
LOWinclude/LIEF/COFF.hpp41// IWYU pragma: end_exportsCOMMENT
LOWinclude/LIEF/visibility.h21COMMENT
LOWinclude/LIEF/visibility.h41#elif defined(LIEF_IMPORT)COMMENT
LOWinclude/LIEF/utils.hpp141LIEF_API result<std::string> demangle(std::string_view mangled);COMMENT
LOWinclude/LIEF/types.hpp21#elif defined(__GNUC__)COMMENT
LOWinclude/LIEF/PDB.hpp21#include "LIEF/PDB/DebugInfo.hpp"COMMENT
LOWinclude/LIEF/VDEX.hpp21COMMENT
LOWinclude/LIEF/to_json.hpp21COMMENT
LOWinclude/LIEF/Abstract/Binary.hpp21#include <memory>COMMENT
LOWinclude/LIEF/Abstract/Binary.hpp301 /// For PE file, this function tries to find the **external** PDB usingCOMMENT
LOWinclude/LIEF/Abstract/Binary.hpp321 instructions_it disassemble(uint64_t address,COMMENT
407 more matches not shown…
Decorative Section Separators62 hits · 196 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt40# ============COMMENT
MEDIUMCMakeLists.txt46# =============COMMENT
MEDIUMCMakeLists.txt75# ============COMMENT
MEDIUMCMakeLists.txt80# ===================COMMENT
MEDIUMCMakeLists.txt110# ======================COMMENT
MEDIUMCMakeLists.txt195# =====================COMMENT
MEDIUMCMakeLists.txt209# =============COMMENT
MEDIUMCMakeLists.txt262# =======================================COMMENT
MEDIUMCMakeLists.txt264# =======================================COMMENT
MEDIUM⚡CMakeLists.txt276# =======================================COMMENT
MEDIUM⚡CMakeLists.txt278# =======================================COMMENT
MEDIUM⚡CMakeLists.txt288# =======================================COMMENT
MEDIUM⚡CMakeLists.txt290# =======================================COMMENT
MEDIUMCMakeLists.txt311# ----------------COMMENT
MEDIUMCMakeLists.txt461# ======================COMMENT
MEDIUM⚡CMakeLists.txt483# =======================================COMMENT
MEDIUM⚡CMakeLists.txt487 # ======================COMMENT
MEDIUM⚡CMakeLists.txt497 # ======================COMMENT
MEDIUMprek.toml240 # ----------------------------------------------------------------------------COMMENT
MEDIUMprek.toml242 # ----------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/CMakeLists.txt85 ## ---------------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/CMakeLists.txt87 ## ---------------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/CMakeLists.txt104 ## ---------------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/CMakeLists.txt106 ## ---------------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt1# ------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt3# ------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt26# ------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt28# ------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt50# ------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt52# ------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt75# ------------------------------------------------------------------------------COMMENT
MEDIUMplugins/binaryninja/analysis/tools/CMakeLists.txt77# ------------------------------------------------------------------------------COMMENT
MEDIUMtests/assembly/test_x86.py107 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/assembly/test_x86.py119 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/assembly/test_x86.py132 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/assembly/test_x86.py142 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/oat/test_oat64.py183 # ============COMMENT
MEDIUMtests/oat/test_oat64.py191 # ==============COMMENT
MEDIUMtests/oat/test_oat79.py106 # ============COMMENT
MEDIUMtests/oat/test_oat124.py76 # ============COMMENT
MEDIUMtests/oat/test_oat131.py79 # ============COMMENT
MEDIUMtests/elf/test_core.py17 # =================COMMENT
MEDIUMtests/elf/test_core.py37 # =================COMMENT
MEDIUMtests/elf/test_core.py95 # =================COMMENT
MEDIUMtests/elf/test_core.py121 # =================COMMENT
MEDIUMtests/elf/test_core.py158 # =================COMMENT
MEDIUMtests/elf/test_core.py177 # =================COMMENT
MEDIUMtests/elf/test_core.py246 # =================COMMENT
MEDIUMtests/elf/test_core.py257 # =================COMMENT
MEDIUMtests/elf/test_core.py286 # =================COMMENT
MEDIUMexamples/cmake/find_package/CMakeLists.txt6# ==============================COMMENT
MEDIUMexamples/cmake/find_package/CMakeLists.txt14# ==================COMMENT
MEDIUMexamples/cmake/external_project/CMakeLists.txt8# ===========================COMMENT
MEDIUMexamples/cmake/external_project/CMakeLists.txt45# ============COMMENT
MEDIUM…amples/cmake/external_project/HelloLIEF/CMakeLists.txt6# ==============================COMMENT
MEDIUM…amples/cmake/external_project/HelloLIEF/CMakeLists.txt14# ==================COMMENT
MEDIUMexamples/cmake/add_subdirectory/CMakeLists.txt6# ========================================COMMENT
MEDIUMexamples/cmake/add_subdirectory/CMakeLists.txt64# ==================COMMENT
MEDIUMscripts/osx/package_sdk.sh7# ================================================COMMENT
MEDIUMscripts/osx/package_sdk.sh24# ================================================COMMENT
2 more matches not shown…
Hyper-Verbose Identifiers134 hits · 128 pts
SeverityFileLineSnippetContext
LOW…in/java/lief/ghidra/core/dwarf/export/DataManager.java27public class DataManager {CODE
LOWtests/utils.py275def has_dyld_shared_cache_samples():CODE
LOWtests/coff/test_coff_strings.py9def test_string_table_offset_overflow():CODE
LOWtests/coff/test_coff_strings.py44def test_get_section_long_name():CODE
LOWtests/coff/test_coff_strings.py66def test_get_section_unresolved_long_name():CODE
LOWtests/pe/test_parser.py455def test_import_remove_entry_ordinal():CODE
LOWtests/pe/test_parser.py1091def test_exceptions_ahead_chained():STRING
LOWtests/pe/test_parser.py1159def test_data_directories_overflow():CODE
LOWtests/pe/test_parser.py1170def test_section_padding_underflow():CODE
LOWtests/pe/test_parser.py1183def test_section_padding_no_content():CODE
LOWtests/pe/test_parser.py1195def test_section_content_offset_wrap():CODE
LOWtests/pe/test_parser.py1205def test_coff_string_table_offset_overflow():CODE
LOWtests/pe/test_tls_mod.py260def test_create_tls_with_raw_data(tmp_path: Path):CODE
LOWtests/pe/test_resources.py84def test_resource_string_table():CODE
LOWtests/pe/test_resources.py101def test_resource_accelerator():CODE
LOWtests/pe/test_resources.py333def test_resource_dialogs_regular():STRING
LOWtests/pe/test_resources.py494def test_resource_dialogs_extended():STRING
LOWtests/pe/test_resources.py590def test_mfc_resource_builder():STRING
LOWtests/pe/test_resources.py600def test_notepadpp_resource_builder(tmp_path: Path):STRING
LOWtests/pe/test_resources.py618def test_filezilla_resource_builder(tmp_path: Path):STRING
LOWtests/pe/test_resources.py635def test_resource_directory_add_directory_node(tmp_path: Path):STRING
LOWtests/pe/test_resources.py761def test_resource_directory_add_data_node(tmp_path: Path):STRING
LOWtests/pe/test_resources.py858def test_node_name_surrogate_pair():STRING
LOWtests/pe/test_resources.py1107def test_truncated_resource_directory():CODE
LOWtests/pe/test_loadconfig.py218def test_guard_cf_functions_large():CODE
LOWtests/pe/check_bin_examples.py27def test_pe_authenticode_check() -> None:CODE
LOWtests/pe/test_debug.py335def test_ex_dll_characteristics(tmp_path: Path):CODE
LOWtests/pe/test_delay_imports.py119def test_delay_import_names_corrupted():CODE
LOWtests/pe/test_issues.py37def test_patch_address_out_of_segment():CODE
LOWtests/pe/test_builder.py248def test_build_remove_imports(tmp_path: Path):CODE
LOWtests/pe/test_imports_mod.py439def test_import_out_of_bounds():CODE
LOWtests/pe/check_python_examples.py35def test_pe_authenticode_reader(CODE
LOWtests/pe/check_python_examples.py92def test_pe_resources_manager(monkeypatch: MonkeyPatch) -> None:CODE
LOWtests/pe/test_pe.py337def test_delay_import_setters():CODE
LOWtests/pe/test_debug_mod.py216def test_dbg_modify_pdbchecksum(tmp_path: Path):CODE
LOWtests/pe/test_debug_mod.py272def test_dbg_modify_vcfeatures(tmp_path: Path):CODE
LOWtests/pe/test_debug_mod.py299def test_dbg_modify_exdllcharacteristics(tmp_path: Path):CODE
LOWtests/pe/test_authenticode.py299def test_ms_spc_nested_signature():CODE
LOWtests/pe/test_authenticode.py452def test_verification_flags_str():CODE
LOWtests/pe/test_authenticode.py471def test_ms_manifest_binary_id():CODE
LOWtests/pe/test_authenticode.py483def test_ms_counter_signature():CODE
LOWtests/macho/test_dyld.py328def test_shift_dyldinforeloc_taggedptr(tmp_path: pathlib.Path):CODE
LOWtests/macho/test_exports_trie.py96def test_show_export_trie_cycle():CODE
LOWtests/macho/test_linkedit_alignment.py19def test_string_pool_alignment(CODE
LOWtests/macho/test_linkedit_alignment.py65def test_reject_misaligned_string_pool():CODE
LOWtests/macho/test_function_variants.py92def test_func_variants_modification(tmp_path: Path):CODE
LOWtests/macho/test_function_variants.py230def test_function_variant_fixups_api():CODE
LOWtests/macho/test_function_variants.py283def test_function_variant_fixups(tmp_path: Path):CODE
LOWtests/macho/test_function_variants.py340def test_function_variant_fixups_modification(tmp_path: Path):CODE
LOWtests/macho/test_function_variants.py399def test_function_variant_fixups_layout_check():CODE
LOWtests/macho/test_function_variants.py429def test_function_variant_shift(tmp_path: Path):CODE
LOWtests/macho/test_generic.py572def test_virtual_address_to_offset_bss():CODE
LOWtests/macho/test_generic.py597def test_dyld_exports_trie_str():CODE
LOWtests/macho/test_generic.py645def test_dynamic_symbol_command_str():CODE
LOWtests/macho/test_generic.py706def test_note_command_unterminated_owner(tmp_path: Path):CODE
LOWtests/macho/test_issues.py149def test_large_dyld_rebase_count():CODE
LOWtests/macho/test_issues.py165def test_negative_relative_offset():CODE
LOWtests/macho/test_issues.py193def test_dyld_corrupted_indices():CODE
LOWtests/macho/test_issues.py222def test_symtab_uncapped_alloc():CODE
LOWtests/macho/test_issues.py248def test_build_version_ntools():CODE
74 more matches not shown…
Excessive Try-Catch Wrapping41 hits · 69 pts
SeverityFileLineSnippetContext
LOWfuzzing/clean-corpus.py54 except Exception as e:CODE
MEDIUMfuzzing/clean-corpus.py55 print("Error: {}".format(e))CODE
LOWtests/pe/test_authenticode.py11except Exception: # pragma: no cover # noqaCODE
LOWapi/python/backend/versioning.py101 except Exception as e:CODE
MEDIUMapi/python/examples/elf_symbol_obfuscation.py48 print(f"Error: failed to parse '{args.input}' as ELF", file=sys.stderr)CODE
MEDIUMapi/python/examples/elf_bin2lib.py46 print(f"Error: failed to parse '{args.binary}' as ELF", file=sys.stderr)CODE
MEDIUMapi/python/examples/runtime_windows.py238 print("Error: LIEF's runtime is not enabled", file=sys.stderr)STRING
LOWapi/python/examples/macho_reader.py252 except Exception: # noqaCODE
LOWapi/python/examples/macho_reader.py284 except Exception: # noqaCODE
LOWapi/python/examples/pe_reader.py306 except Exception: # noqaCODE
MEDIUMapi/python/examples/elf_deps.py48 print(f"Error: failed to parse '{filename}' as ELF")CODE
MEDIUMapi/python/examples/vdex_reader.py130 print(f"Error: failed to parse '{args.file}' as VDEX", file=sys.stderr)CODE
MEDIUMapi/python/examples/pe_resources_manager.py26 print(f"Error: failed to parse '{args.binary}' as PE", file=sys.stderr)CODE
MEDIUMapi/python/examples/pe_resources_manager.py31 print("Error: failed to access the resource manager")CODE
MEDIUMapi/python/examples/pdb_inspect.py28 print(f"Error: failed to load '{args.file}'", file=sys.stderr)CODE
MEDIUMapi/python/examples/pe_authenticode_api_example.py34 print(f"Error: failed to parse '{args.binary}' as PE", file=sys.stderr)CODE
MEDIUMapi/python/examples/runtime_osx.py191 print("Error: LIEF's runtime is not enabled", file=sys.stderr)STRING
MEDIUMapi/python/examples/dex_json.py31 print(f"Error: failed to parse '{args.file}'", file=sys.stderr)CODE
MEDIUMapi/python/examples/json_dump.py28 print(f"Error: failed to parse '{args.file}'", file=sys.stderr)CODE
MEDIUMapi/python/examples/dwarf_editor.py38 print(f"Error: failed to parse '{args.file}' as PE", file=sys.stderr)CODE
MEDIUMapi/python/examples/oat_reader.py190 print(f"Error: failed to parse '{args.binary}' as OAT", file=sys.stderr)CODE
MEDIUMapi/python/examples/runtime_android.py184 print("Error: LIEF's runtime is not enabled", file=sys.stderr)STRING
MEDIUMapi/python/examples/elf_reader.py741 print(f"Error: failed to parse '{args.elf_file}' as ELF", file=sys.stderr)CODE
MEDIUMapi/python/examples/pe_json.py27 print(f"Error: failed to parse '{args.binary}' as PE", file=sys.stderr)CODE
MEDIUMapi/python/examples/runtime_linux.py179 print("Error: LIEF's runtime is not enabled", file=sys.stderr)STRING
MEDIUMapi/python/examples/dex_reader.py224 print(f"Error: failed to parse '{args.file}' as DEX", file=sys.stderr)CODE
MEDIUMapi/python/examples/elf_remove_section_table.py26 print(f"Error: failed to parse '{filename}' as ELF", file=sys.stderr)CODE
MEDIUMapi/python/examples/pe_forwardinfo.py26 print(f"Error: failed to parse '{args.binary}' as PE", file=sys.stderr)CODE
MEDIUMapi/python/examples/abstract_reader.py210 print(f"Error: failed to parse '{args.binary}'", file=sys.stderr)CODE
MEDIUMapi/python/examples/nm.py23 print(f"Error: failed to parse '{filename}'", file=sys.stderr)CODE
MEDIUMapi/python/examples/vdex_json.py30 print(f"Error: failed to parse '{args.file}'", file=sys.stderr)CODE
MEDIUMapi/python/examples/pe_extract_features.py276 print(f"Error: failed to parse '{path}' as PE", file=sys.stderr)CODE
MEDIUMapi/python/examples/elf_unstrip.py40 print(f"Error: failed to parse '{args.input}' as ELF", file=sys.stderr)CODE
MEDIUMapi/python/examples/pe_authenticode.py34 print(f"Error: failed to parse '{filename}' as PE")CODE
MEDIUMapi/python/examples/pe_authenticode_reader.py378 print(f"Error while parsing {args.file}")CODE
MEDIUMapi/python/examples/abstract_json.py28 print(f"Error: failed to parse '{args.binary}'", file=sys.stderr)CODE
MEDIUMapi/python/examples/elf_json.py27 print(f"Error: failed to parse '{args.binary}' as ELF", file=sys.stderr)CODE
LOWdoc/code/python/error_handling.py11 except Exception as e:CODE
MEDIUMdoc/code/python/error_handling.py12 print(f"Error: {e}")CODE
LOWdoc/sphinx/sphinx_lief_doc/python_typing.py66 except Exception as e:CODE
LOWdoc/sphinx/sphinx_lief_doc/python_typing.py103 except Exception as e:CODE
Unused Imports53 hits · 50 pts
SeverityFileLineSnippetContext
LOWscripts/metrics/upload.py8CODE
LOWscripts/metrics/upload.py9CODE
LOWapi/python/backend/config.py1CODE
LOWapi/python/backend/setup.py1CODE
LOWapi/python/backend/versioning.py1CODE
LOWapi/python/backend/dynamic_provider.py1CODE
LOWapi/python/lief/__init__.py1CODE
LOWapi/python/lief/__init__.py3CODE
LOWapi/python/lief/__init__.py7CODE
LOWapi/python/lief/__init__.py8CODE
LOWapi/python/lief/__init__.py8CODE
LOWapi/python/lief/__init__.py8CODE
LOWapi/python/lief/__init__.py8CODE
LOWapi/python/lief/__init__.py8CODE
LOWapi/python/lief/__init__.py18CODE
LOWapi/python/lief/__init__.py18CODE
LOWapi/python/lief/__init__.py18CODE
LOWdoc/sphinx/sphinx_lief_doc/plugin_package.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/seo.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/img_comparison.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/literalinclude.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/sdk_package.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/config/__init__.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/config/__init__.py2CODE
LOWdoc/sphinx/sphinx_lief_doc/config/html_config.py3CODE
LOWdoc/sphinx/sphinx_lief_doc/config/breathe_config.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/config/breathe_config.py4CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/__init__.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py1CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py4CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py6CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py7CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py7CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py7CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py10CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py10CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py11CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py12CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py14CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py15CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py16CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py18CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py19CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py20CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py20CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py21CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py22CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py22CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py22CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py25CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py27CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py30CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py30CODE
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHtests/elf/test_add_content.py0\ #include <stdlib.h> #include <stdio.h> int add(int a, int b); int add(int a, int b) { printf("%d + %d = %d\\n", a, b, STRING
HIGHtests/elf/test_hash.py0\ #include <stdlib.h> #include <stdio.h> int add(int a, int b); int add(int a, int b) { printf("%d + %d = %d\\n", a, b, STRING
HIGHtests/elf/test_dynamic.py0\ #include <stdlib.h> #include <stdio.h> int add(int a, int b); int add(int a, int b) { printf("%d + %d = %d\\n", a, b, STRING
HIGHtests/elf/test_add_content.py0\ #include <stdio.h> #include <stdlib.h> int add(int a, int b); int main(int argc, char **argv) { if (argc != 3) { printSTRING
HIGHtests/elf/test_static.py0\ #include <stdio.h> #include <stdlib.h> int add(int a, int b); int main(int argc, char **argv) { if (argc != 3) { printSTRING
HIGHtests/elf/test_dynamic.py0\ #include <stdio.h> #include <stdlib.h> int add(int a, int b); int main(int argc, char **argv) { if (argc != 3) { printSTRING
HIGHtests/elf/test_hash.py0\ #include <stdio.h> #include <stdlib.h> int add(int a, int b); int main(int argc, char **argv) { if (argc != 3) { printSTRING
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALtests/runtime/osx/test_osx_host.py14 assert lief.runtime.osx.Host.os_version >= lief.runtime.osx.Host.version_t.big_sur()CODE
CRITICALdoc/sphinx/_cross_api.md190.. |lief-dwarf-editor-Parameter-set_location| lief-api:: lief.dwarf.editor.Function.Parameter.set_location()CODE
CRITICALdoc/sphinx/tutorials/10_android_formats.md10005-04 10:16:37.688 1987 1998 W dex2oat : Compilation of void com.google.android.snet.Snet.enterSnetIdle(android.contenCODE
Deep Nesting17 hits · 17 pts
SeverityFileLineSnippetContext
LOWfuzzing/clean-corpus.py40CODE
LOWtests/dl_samples.py27CODE
LOW.github/deploy.py125CODE
LOWapi/python/backend/versioning.py105CODE
LOWapi/python/examples/runtime_windows.py87CODE
LOWapi/python/examples/macho_reader.py172CODE
LOWapi/python/examples/pe_reader.py281CODE
LOWapi/python/examples/pe_reader.py408CODE
LOWapi/python/examples/elf_deps.py44CODE
LOWapi/python/examples/elf_reader.py206CODE
LOWapi/python/examples/elf_reader.py322CODE
LOWapi/python/examples/pe_authenticode_reader.py54CODE
LOWapi/python/examples/pe_authenticode_reader.py280CODE
LOWdoc/sphinx/sphinx_lief_doc/seo.py293CODE
LOWdoc/sphinx/sphinx_lief_doc/ai.py182CODE
LOWdoc/sphinx/sphinx_lief_doc/ai.py266CODE
LOWdoc/sphinx/sphinx_lief_doc/config/lief_config.py57CODE
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/pe/test_authenticode.py11except Exception: # pragma: no cover # noqaCODE
HIGHapi/python/examples/elf_deps.py119except ValueError:CODE
HIGHdoc/sphinx/sphinx_lief_doc/python_typing.py88except ValueError:CODE
Modern Structural Boilerplate13 hits · 13 pts
SeverityFileLineSnippetContext
LOW.github/deploy.py33logger = logging.getLogger(__name__)CODE
LOWdoc/code/python/tuto_coredump.py50def set_register(core: lief.ELF.Binary) -> None:CODE
LOWdoc/code/python/tuto_pe_resource.py63def set_admin(filezilla: lief.PE.Binary) -> None:CODE
LOWdoc/code/python/pe_resources.py36def set_manifest(pe: lief.PE.Binary) -> None:CODE
LOWdoc/code/python/tuto_macho_mod.py94def set_entrypoint(app: lief.MachO.Binary, section: lief.MachO.Section) -> None:CODE
LOWdoc/sphinx/sphinx_lief_doc/plugin_package.py22logger = logging.getLogger(__name__)CODE
LOWdoc/sphinx/sphinx_lief_doc/img_comparison.py25logger = logging.getLogger(__name__)CODE
LOWdoc/sphinx/sphinx_lief_doc/ai.py16logger = logging.getLogger(__name__)CODE
LOWdoc/sphinx/sphinx_lief_doc/lief_api.py10logger = logging.getLogger(__name__)CODE
LOWdoc/sphinx/sphinx_lief_doc/sdk_package.py22logger = logging.getLogger(__name__)CODE
LOWdoc/sphinx/sphinx_lief_doc/writers/html5.py8logger = logging.getLogger(__name__)CODE
LOWdoc/sphinx/sphinx_lief_doc/config/lief_config.py11logger = logging.getLogger(__name__)CODE
LOWdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py32logger = logging.getLogger(__name__)CODE
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMinclude/LIEF/DyldSharedCache/caching.hpp24/// Enable globally cache/memoization. One can also leverage this functionCOMMENT
MEDIUMapi/rust/crates/lief/src/dsc/caching.rs4/// Enable globally cache/memoization. One can also leverage this functionCOMMENT
MEDIUMsrc/PE/Builder.cpp368 // Note(romain): We could/should leverage this optimization:COMMENT
MEDIUM…dConfigurations/DynamicRelocation/FunctionOverride.cpp198 // is already sorted by image_bdd_info_t::original_offset. We can leverageCOMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/elf/test_notes.py327 b"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"CODE
LOWtests/elf/test_notes.py327 b"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"CODE
LOWtests/elf/test_notes.py348 == b"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"CODE
LOWtests/elf/test_notes.py348 == b"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"CODE
LOWdoc/sphinx/changelog.md1135 description=list(b"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"),CODE
LOWdoc/sphinx/changelog.md1135 description=list(b"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"),CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHREADME.md24 [Node.js](https://github.com/Piebald-AI/node-lief) (unofficial, AI-generated)CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/macho/test_bin2lib.py27 # Create a new export :)COMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdoc/sphinx/sphinx_lief_doc/rust_domain/rustdomain.py235CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/macho/test_issues.py72 # Check if cache is updated that is used by segment_from_offsetCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/abstract/test_abstract.py115def test_function():CODE