Skip to content

fix: propagate CryptoKeys Location field through gRPC bridge - #574

Open
Functionhx wants to merge 1 commit into
its-a-feature:masterfrom
Functionhx:fix/mythic-495-cryptokeys-location
Open

fix: propagate CryptoKeys Location field through gRPC bridge#574
Functionhx wants to merge 1 commit into
its-a-feature:masterfrom
Functionhx:fix/mythic-495-cryptokeys-location

Conversation

@Functionhx

Copy link
Copy Markdown

Add Location field to CryptoKeysFormat protobuf and propagate through server bridge, Go client SDK, and Python client SDK so translation containers can distinguish callback/staging/C2/payload keys.

Related PRs:

  • Functionhx/MythicContainer:fix/mythic-495-cryptokeys-location (Go SDK)
  • Functionhx/MythicContainerPyPi:fix/mythic-495-cryptokeys-location (Python SDK)

Fixes: #495

Signed-off-by: Functionhx 2994114386@qq.com

…h bridge

Add missing Location field to the CryptoKeysFormat protobuf message
and populate it in both gRPC bridge conversion functions
(send_tr_rpc_custom_message_to_mythic_c2 and
send_tr_rpc_mythic_c2_to_custom_message). This allows translator
containers to distinguish between C2-profile keys and payload-build
keys via gRPC.

Regenerate the protobuf raw descriptor to include field 4 (Location)
so it is actually serialized over the wire.

Fixes its-a-feature#495

Signed-off-by: Functionhx <2994114386@qq.com>
@its-a-feature

Copy link
Copy Markdown
Owner

Love the enthusiasm here! Normally I'd pull this in, but I'm addressing this in the next major Mythic 4.0 update (https://github.com/its-a-feature/Mythic/blob/auth-adjustments/mythic-docker/src/grpc/services/translationContainerGRPC.proto#L28) - the auth-adjustments branch is the Mythic v4.0 temporary WIP branch. The public beta for that will come out at the end of the month/beginning of next month

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translator Container does not receive CryptoKeys.Location field

2 participants