-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Montimage/mmt-security into…
… main
- Loading branch information
Showing
10 changed files
with
94 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<beginning> | ||
<!-- | ||
This rule analizes char by char in order to find unusual characters in the payload of the packet that can indicate a possible fuzzing attack.Note that the format of the payload is json, and only post requests have a body,so there is a check on the header method. | ||
--> | ||
|
||
<embedded_functions><![CDATA[ | ||
#include <string.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include "mmt_lib.h" | ||
static bool em_check_fuzzing(int payload_length, const char* payload, double packet_id){ | ||
//char*data; | ||
//data=(char*)payload_data; | ||
bool result=false; | ||
for (int i = 9; i < payload_length; i++) { | ||
//printf(" %02hhX ",payload[i]); | ||
//printf(" %c",payload[i]); | ||
if((payload[i]=='\\')|| payload[i]=='#' || (payload[i]=='%') || (payload[i]=='$')){ | ||
result=true; | ||
// printf( " Rule 98:Recognized suspect fuzzing. Length %d %f\n",payload_length,packet_id); | ||
break; | ||
} | ||
} | ||
//printf("\n"); | ||
return result; | ||
} | ||
]]></embedded_functions> | ||
|
||
<property value="THEN" property_id="98" type_property="ATTACK" | ||
description="5G Http2 fuzzing Payload Recognition"> | ||
<event value="COMPUTE" event_id="1" | ||
description="Nothing" | ||
boolean_expression=" true"/> | ||
<event value="COMPUTE" event_id="2" | ||
description="HTTP2 fuzzing" | ||
boolean_expression="( (( http2.header_method == 131) && #em_check_fuzzing(http2.payload_length , http2.p_payload,meta.packet_index) ) && (ip.src != ip.dst))"/> | ||
</property> | ||
</beginning> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters