Skip to content

Commit ebeacef

Browse files
committed
fix: [anyrun] empty f string
1 parent 4ddf000 commit ebeacef

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

misp_modules/modules/import_mod/anyrun_sandbox_import.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,15 @@
1919
"module-type": ["import"],
2020
"name": "ANYRUN Sandbox Import",
2121
"logo": "anyrun.png",
22-
"requirements": [
23-
"anyrun-sdk: ANY.RUN API python3 library",
24-
"ANY.RUN Sandbox API-KEY"
25-
],
22+
"requirements": ["anyrun-sdk: ANY.RUN API python3 library", "ANY.RUN Sandbox API-KEY"],
2623
"features": (
2724
"Fetches detailed JSON reports using the ANY.RUN API; "
2825
"parses key elements like verdict, extracted IOCs (hashes, IPs, URLs), malware tags; "
2926
"maps data to MISP attributes and galaxies (e.g., malware family or MITRE ATT&CK Techniques)."
3027
),
3128
"references": ["https://any.run"],
3229
"input": "ANY.RUN Sandbox analysis UUID.",
33-
"output": "Analysis external references, verdict, IOCs (hashes, IPs, URLs), malware tags, MITRE ATT&CK Techniques"
30+
"output": "Analysis external references, verdict, IOCs (hashes, IPs, URLs), malware tags, MITRE ATT&CK Techniques",
3431
}
3532

3633
mispattributes = {
@@ -59,12 +56,10 @@
5956
"type": "Boolean",
6057
"message": "Include ANY.RUN Sandbox MITRE ATT&CK Techniques",
6158
"checked": "True",
62-
}
59+
},
6360
}
6461

65-
moduleconfig = [
66-
"api_key"
67-
]
62+
moduleconfig = ["api_key"]
6863

6964

7065
def handler(q=False):
@@ -78,7 +73,7 @@ def handler(q=False):
7873
analysis_uuid = request.get("config").get("ANYRUN Analysis UUID")
7974

8075
if not any((token, analysis_uuid)):
81-
raise RunTimeException(f"ANY.RUN API-KEY and Analysis UUID must be specified.")
76+
raise RunTimeException("ANY.RUN API-KEY and Analysis UUID must be specified.")
8277

8378
with SandboxConnector.windows(token, integration=Config.INTEGRATION) as connector:
8479
connector.check_authorization()

0 commit comments

Comments
 (0)