Skip to content

Commit

Permalink
[backend] Add matching on parent process name for inject expectation …
Browse files Browse the repository at this point in the history
…signature
  • Loading branch information
RomuDeuxfois authored Nov 7, 2024
1 parent 3ada46d commit 7d15dd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ public ExecutionProcess process(Execution execution, ExecutableInject injection)
case "Command":
Command payloadCommand =
(Command) Hibernate.unproxy(injectorContract.getPayload());
injectExpectationSignatures.add(
InjectExpectationSignature.builder()
.type(EXPECTATION_SIGNATURE_TYPE_PARENT_PROCESS_NAME)
.value("obas-implant-" + inject.getId())
.build());
injectExpectationSignatures.add(
InjectExpectationSignature.builder()
.type(EXPECTATION_SIGNATURE_TYPE_COMMAND_LINE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@Data
@Builder
public class InjectExpectationSignature {
public static final String EXPECTATION_SIGNATURE_TYPE_PARENT_PROCESS_NAME = "parent_process_name";
public static final String EXPECTATION_SIGNATURE_TYPE_PROCESS_NAME = "process_name";
public static final String EXPECTATION_SIGNATURE_TYPE_COMMAND_LINE = "command_line";
public static final String EXPECTATION_SIGNATURE_TYPE_HASH = "hash";
Expand Down

0 comments on commit 7d15dd7

Please sign in to comment.