Skip to content

Commit

Permalink
Increasing score for short_form signature
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-kevin committed Jun 18, 2024
1 parent 6778f63 commit 445d3de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jsjaws.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ def _run_the_gauntlet(self, request, file_path, file_content, subsequent_run: bo
phishing_inputs_sec.add_line(phishing_inputs_heur.description)
phishing_inputs_sec.add_lines([f"\t- {item}" for item in sorted(self.phishing_inputs)])
if self.short_form:
phishing_inputs_heur.add_signature_id("short_form")
phishing_inputs_heur.add_signature_id("short_form", 500)

if self.num_of_web_bugs:
web_bugs_sec = ResultTextSection("Web bugs found", parent=request.result)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 1010,
"score": 1410,
"sections": [
{
"auto_collapse": false,
Expand Down Expand Up @@ -34,8 +34,10 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 25,
"score": 100,
"score_map": {},
"score": 500,
"score_map": {
"short_form": 500
},
"signatures": {
"short_form": 1
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 2171,
"score": 2571,
"sections": [
{
"auto_collapse": false,
Expand Down Expand Up @@ -54,8 +54,10 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 25,
"score": 100,
"score_map": {},
"score": 500,
"score_map": {
"short_form": 500
},
"signatures": {
"short_form": 1
}
Expand Down

0 comments on commit 445d3de

Please sign in to comment.