The c2 protocol in Apache NiFi MiNiFi C++ implements an "agent-update" command designed to patch the application binary. This command defaults to calling a trusted binary but can be modified to an arbitrary value through a "c2-update" command. The modified command is then executed with the same privileges as the application binary.