forked from p15670423/monkey
Merge pull request #1297 from guardicore/ransomware-report-api-endpoint
This commit is contained in:
commit
0fd88b8097
|
@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
- `log_level` option to server config. #1151
|
- `log_level` option to server config. #1151
|
||||||
- A ransomware simulation payload. #1238
|
- A ransomware simulation payload. #1238
|
||||||
- The capability for a user to specify their own SSL certificate. #1208
|
- The capability for a user to specify their own SSL certificate. #1208
|
||||||
|
- API endpoint for ransomware report. #1297
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- server_config.json can be selected at runtime. #963
|
- server_config.json can be selected at runtime. #963
|
||||||
|
|
|
@ -38,6 +38,7 @@ from monkey_island.cc.resources.node import Node
|
||||||
from monkey_island.cc.resources.node_states import NodeStates
|
from monkey_island.cc.resources.node_states import NodeStates
|
||||||
from monkey_island.cc.resources.pba_file_download import PBAFileDownload
|
from monkey_island.cc.resources.pba_file_download import PBAFileDownload
|
||||||
from monkey_island.cc.resources.pba_file_upload import FileUpload
|
from monkey_island.cc.resources.pba_file_upload import FileUpload
|
||||||
|
from monkey_island.cc.resources.ransomware_report import RansomwareReport
|
||||||
from monkey_island.cc.resources.remote_run import RemoteRun
|
from monkey_island.cc.resources.remote_run import RemoteRun
|
||||||
from monkey_island.cc.resources.root import Root
|
from monkey_island.cc.resources.root import Root
|
||||||
from monkey_island.cc.resources.security_report import SecurityReport
|
from monkey_island.cc.resources.security_report import SecurityReport
|
||||||
|
@ -149,6 +150,7 @@ def init_api_resources(api):
|
||||||
api.add_resource(SecurityReport, "/api/report/security")
|
api.add_resource(SecurityReport, "/api/report/security")
|
||||||
api.add_resource(ZeroTrustReport, "/api/report/zero-trust/<string:report_data>")
|
api.add_resource(ZeroTrustReport, "/api/report/zero-trust/<string:report_data>")
|
||||||
api.add_resource(AttackReport, "/api/report/attack")
|
api.add_resource(AttackReport, "/api/report/attack")
|
||||||
|
api.add_resource(RansomwareReport, "/api/report/ransomware")
|
||||||
|
|
||||||
api.add_resource(ZeroTrustFindingEvent, "/api/zero-trust/finding-event/<string:finding_id>")
|
api.add_resource(ZeroTrustFindingEvent, "/api/zero-trust/finding-event/<string:finding_id>")
|
||||||
api.add_resource(TelemetryFeed, "/api/telemetry-feed", "/api/telemetry-feed/")
|
api.add_resource(TelemetryFeed, "/api/telemetry-feed", "/api/telemetry-feed/")
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
import flask_restful
|
||||||
|
from flask import jsonify
|
||||||
|
|
||||||
|
from monkey_island.cc.resources.auth.auth import jwt_required
|
||||||
|
|
||||||
|
|
||||||
|
class RansomwareReport(flask_restful.Resource):
|
||||||
|
@jwt_required
|
||||||
|
def get(self):
|
||||||
|
return jsonify({"report": None})
|
Loading…
Reference in New Issue