awslabs / jndi-deobfuscate-python
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 17 units with 214 lines of code in units (58.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (49 lines of code)
    • 0 simple units (0 lines of code)
    • 16 very simple units (165 lines of code)
0% | 0% | 22% | 0% | 77%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 22% | 0% | 77%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/jndi_deobfuscate0% | 0% | 22% | 0% | 77%
Most Complex Units
Top 17 most complex units
Unit# linesMcCabe index# params
def process_line()
in src/jndi_deobfuscate/jndi_deobfuscate.py
49 13 3
def _transform_replace_simple_lookups()
in src/jndi_deobfuscate/jndi_deobfuscate.py
9 5 1
def _transform_replace_upper_and_lower_methods()
in src/jndi_deobfuscate/jndi_deobfuscate.py
19 5 1
def _transform_url_decode()
in src/jndi_deobfuscate/jndi_deobfuscate.py
12 4 1
def _transform_return_string_that_passes_basic_jndi_validation()
in src/jndi_deobfuscate/jndi_deobfuscate.py
12 4 1
def _transform_get_first_jndi_string()
in src/jndi_deobfuscate/jndi_deobfuscate.py
22 4 1
10 4 1
def does_it_meet_the_bare_minimum_checks_for_java_lookups()
in src/jndi_deobfuscate/jndi_deobfuscate.py
9 3 1
def _guess_number_of_curley_brace_pairs()
in src/jndi_deobfuscate/jndi_deobfuscate.py
12 3 1
def _does_string_have_unresolved_variables_with_default_values()
in src/jndi_deobfuscate/jndi_deobfuscate.py
9 3 1
def _is_replace_obfuscation_necessary()
in src/jndi_deobfuscate/jndi_deobfuscate.py
7 3 1
def _transform_replace_obfuscated_variable()
in src/jndi_deobfuscate/jndi_deobfuscate.py
14 3 1
def _does_string_pass_simple_jndi_regex()
in src/jndi_deobfuscate/jndi_deobfuscate.py
8 2 1
def _return_all_case_variations()
in src/jndi_deobfuscate/jndi_deobfuscate.py
10 2 1
def process_file()
in src/jndi_deobfuscate/jndi_deobfuscate.py
8 2 2
2 1 0
def _run_transform_return_output()
in src/jndi_deobfuscate/jndi_deobfuscate.py
2 1 0