Analysis

Find algorithm to decrypt device.nng and .lyc files

Analysis:
Searched binary for strings and xrefs, identified NNG/lyc/device.nng references and started static ARM disassembly analysis.
Conclusion:
Confirmed binary is Mazda MZD Connect (NNG iGO) license handling; analysis in progress toward full decryption algorithm (not yet complete).

Tools: list_files, todo_write, run_sandbox, skill, skill:ghidra-analysis, inspect_binary, dump_data

Run it yourself
jci-linux_imx6_volans-release

Help me solve this CTF challenge. Identify the challenge type, analyze the binary, and work toward the flag. The idea is find the algorithm for decrypt device.nng and .lyc files. Find the complete algorithm.

Dr.Binary
list_files
todo_write
run_sandbox

This is an ARM ELF binary (~19 MB, stripped) — from the name it's the Johnson Controls / Mazda infotainment main binary. Let me inspect it and hunt for references to device.nng and .lyc.

run_sandbox
run_sandbox
run_sandbox

This is the Mazda MZD Connect infotainment binary with NNG navigation (iGO). .lyc = NNG license files, device.nng = device fingerprint file. Let me gather the relevant string context.

run_sandbox

This is the Mazda MZD Connect (JCI/NNG iGO) binary — the .lyc files are NNG license files and device.nng holds the device fingerprint. Let me load the analysis skill and start triaging the binary.

run_sandbox
inspect_binary
run_sandbox

The binary is not packed (dynamic, standard sections, GCC 4.5.2 C++). Before the big Ghidra dump, let me do targeted string/xref triage with rizin to find the license code.

run_sandbox

Now let me kick off the Ghidra dump in the background (large binary), and meanwhile trace the device.nng string via rizin.

dump_data
Error calling tool 'dump_data': Ghidra pod finished with phase Failed. Pod log (last 20 lines):
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/pyghidra/launcher.py", line 415, in _report_fatal_error
    raise cause
  File "/opt/venv/lib/python3.13/site-packages/pyghidra/launcher.py", line 542, in start
    self._setup_java(**jpype_kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/pyghidra/launcher.py", line 442, in _setup_java
    os.environ['JAVA_HOME'] = str(self.java_home)
                                  ^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/pyghidra/launcher.py", line 341, in java_home
    home = subprocess.check_output(cmd, encoding="utf-8", shell=True)
  File "/root/.local/share/uv/python/cpython-3.13.18-linux-x86_64-gnu/lib/python3.13/subprocess.py", line 473, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               **kwargs).stdout
               ^^^^^^^^^
  File "/root/.local/share/uv/python/cpython-3.13.18-linux-x86_64-gnu/lib/python3.13/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '"/opt/java/openjdk/bin/java" -cp "/opt/ghidra/support/LaunchSupport.jar" LaunchSupport "/opt/ghidra" -jdk_home -save' returned non-zero exit status 1.
run_sandbox

Ghidra pod failed (Java issue). Let me retry once, and in parallel do targeted rizin analysis to locate the string xrefs.

run_sandbox
run_sandbox
run_sandbox
run_sandbox

The pointer references aren't literal-pool 32-bit values (likely movw/movt pairs). Let me retry the Ghidra dump, and meanwhile dump the wide-string neighborhood around those anchors for context.

dump_data
[stopped by the user]
You stopped this response.