edges
array can be sent outside of a responses
array. This is handy if your agent suddenly loses connection, not because of a task, but because of other factors and still wants to report back that information to Mythic.edges
is an array of JSON objects describing the state of the connections that the agent is adding/removing. Each edge in this array has the following fields:
source
this is one end of the p2p connection (more often than not, this is the agent that’s reporting this information)
destination
this is the other end of the p2p connection
metadata
is additional information about the connection that the agent wants to report. For example, when dealing with SMB bind pipes, this could contain information about the specific pipe name instances that are being used if they’re being programmatically generated.
action
this indicates if the connection described above is to be added or removed from Mythic.
c2_profile
this indicates which c2 profile is used for the connection
delegate
component, Mythic will automatically add a route between the delegate and the agent that sent the message.
For example: If agentA is an egress agent and it links to agentB, a p2p agent. When agentA sends a message to Mythic with a delegate message from agentB, Mythic will automatically create a route between the two agents.
When connecting via P2P, the linked agent should always send something to Mythic. If it has already gone through the Checkin
process, then it should resend the checkin message data.
This just forces Mythic to become aware of the connection between the two callbacks.