Class: Falcon::FalconxSandboxApi
- Inherits:
-
Object
- Object
- Falcon::FalconxSandboxApi
- Defined in:
- lib/crimson-falcon/api/falconx_sandbox_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_report(ids, opts = {}) ⇒ FalconxQueryResponse
Delete report based on the report ID.
-
#delete_report_with_http_info(ids, opts = {}) ⇒ Array<(FalconxQueryResponse, Integer, Hash)>
Delete report based on the report ID.
-
#delete_sample_v2(ids, opts = {}) ⇒ MsaQueryResponse
Removes a sample, including file, meta and submissions from the collection.
-
#delete_sample_v2_with_http_info(ids, opts = {}) ⇒ Array<(MsaQueryResponse, Integer, Hash)>
Removes a sample, including file, meta and submissions from the collection.
-
#get_artifacts(id, opts = {}) ⇒ MsaspecQueryResponse
Download IOC packs, PCAP files, memory dumps, and other analysis artifacts.
-
#get_artifacts_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Download IOC packs, PCAP files, memory dumps, and other analysis artifacts.
-
#get_memory_dump(id, opts = {}) ⇒ MsaspecQueryResponse
Get memory dump content, as binary.
-
#get_memory_dump_extracted_strings(id, opts = {}) ⇒ MsaspecQueryResponse
Get extracted strings from a memory dump.
-
#get_memory_dump_extracted_strings_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get extracted strings from a memory dump.
-
#get_memory_dump_hex_dump(id, opts = {}) ⇒ MsaspecQueryResponse
Get hex view of a memory dump.
-
#get_memory_dump_hex_dump_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get hex view of a memory dump.
-
#get_memory_dump_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get memory dump content, as binary.
-
#get_reports(ids, opts = {}) ⇒ FalconxReportV1Response
Get a full sandbox report.
-
#get_reports_with_http_info(ids, opts = {}) ⇒ Array<(FalconxReportV1Response, Integer, Hash)>
Get a full sandbox report.
-
#get_sample_v2(ids, opts = {}) ⇒ String
Retrieves the file associated with the given ID (SHA256).
-
#get_sample_v2_with_http_info(ids, opts = {}) ⇒ Array<(String, Integer, Hash)>
Retrieves the file associated with the given ID (SHA256).
-
#get_submissions(ids, opts = {}) ⇒ FalconxSubmissionV1Response
Check the status of a sandbox analysis.
-
#get_submissions_with_http_info(ids, opts = {}) ⇒ Array<(FalconxSubmissionV1Response, Integer, Hash)>
Check the status of a sandbox analysis.
-
#get_summary_reports(ids, opts = {}) ⇒ FalconxSummaryReportV1Response
Get a short summary version of a sandbox report.
-
#get_summary_reports_with_http_info(ids, opts = {}) ⇒ Array<(FalconxSummaryReportV1Response, Integer, Hash)>
Get a short summary version of a sandbox report.
-
#initialize(api_client = ApiClient.default) ⇒ FalconxSandboxApi
constructor
A new instance of FalconxSandboxApi.
-
#query_reports(opts = {}) ⇒ MsaspecQueryResponse
Find sandbox reports by providing an FQL filter and paging details.
-
#query_reports_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Find sandbox reports by providing an FQL filter and paging details.
-
#query_sample_v1(body, opts = {}) ⇒ MsaQueryResponse
Retrieves a list with sha256 of samples that exist and customer has rights to access them, maximum number of accepted items is 200.
-
#query_sample_v1_with_http_info(body, opts = {}) ⇒ Array<(MsaQueryResponse, Integer, Hash)>
Retrieves a list with sha256 of samples that exist and customer has rights to access them, maximum number of accepted items is 200.
-
#query_submissions(opts = {}) ⇒ MsaspecQueryResponse
Find submission IDs for uploaded files by providing an FQL filter and paging details.
-
#query_submissions_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Find submission IDs for uploaded files by providing an FQL filter and paging details.
-
#submit(body, opts = {}) ⇒ FalconxSubmissionV1Response
Submit an uploaded file or a URL for sandbox analysis.
-
#submit_with_http_info(body, opts = {}) ⇒ Array<(FalconxSubmissionV1Response, Integer, Hash)>
Submit an uploaded file or a URL for sandbox analysis.
-
#upload_sample_v2(sample, file_name, opts = {}) ⇒ ClientSampleMetadataResponseV2
Upload a file for sandbox analysis.
-
#upload_sample_v2_with_http_info(sample, file_name, opts = {}) ⇒ Array<(ClientSampleMetadataResponseV2, Integer, Hash)>
Upload a file for sandbox analysis.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ FalconxSandboxApi
Returns a new instance of FalconxSandboxApi.
36 37 38 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 36 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
34 35 36 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 34 def api_client @api_client end |
Instance Method Details
#delete_report(ids, opts = {}) ⇒ FalconxQueryResponse
Delete report based on the report ID. Operation can be checked for success by polling for the report ID on the report-summaries endpoint.
43 44 45 46 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 43 def delete_report(ids, opts = {}) data, _status_code, _headers = delete_report_with_http_info(ids, opts) data end |
#delete_report_with_http_info(ids, opts = {}) ⇒ Array<(FalconxQueryResponse, Integer, Hash)>
Delete report based on the report ID. Operation can be checked for success by polling for the report ID on the report-summaries endpoint.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 52 def delete_report_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.delete_report ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling FalconxSandboxApi.delete_report" end # resource path local_var_path = '/falconx/entities/reports/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = ids # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'FalconxQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.delete_report", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#delete_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_sample_v2(ids, opts = {}) ⇒ MsaQueryResponse
Removes a sample, including file, meta and submissions from the collection
105 106 107 108 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 105 def delete_sample_v2(ids, opts = {}) data, _status_code, _headers = delete_sample_v2_with_http_info(ids, opts) data end |
#delete_sample_v2_with_http_info(ids, opts = {}) ⇒ Array<(MsaQueryResponse, Integer, Hash)>
Removes a sample, including file, meta and submissions from the collection
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 114 def delete_sample_v2_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.delete_sample_v2 ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling FalconxSandboxApi.delete_sample_v2" end # resource path local_var_path = '/samples/entities/samples/v2' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = ids # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.delete_sample_v2", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#delete_sample_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_artifacts(id, opts = {}) ⇒ MsaspecQueryResponse
Download IOC packs, PCAP files, memory dumps, and other analysis artifacts.
169 170 171 172 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 169 def get_artifacts(id, opts = {}) data, _status_code, _headers = get_artifacts_with_http_info(id, opts) data end |
#get_artifacts_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Download IOC packs, PCAP files, memory dumps, and other analysis artifacts.
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 180 def get_artifacts_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_artifacts ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling FalconxSandboxApi.get_artifacts" end # resource path local_var_path = '/falconx/entities/artifacts/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/octet-stream', 'application/json', 'text/plain', 'text/csv', 'image/png', 'image/jpeg', 'application/gzip']) header_params[:'Accept-Encoding'] = opts[:'accept_encoding'] if !opts[:'accept_encoding'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_artifacts", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_artifacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_memory_dump(id, opts = {}) ⇒ MsaspecQueryResponse
Get memory dump content, as binary
237 238 239 240 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 237 def get_memory_dump(id, opts = {}) data, _status_code, _headers = get_memory_dump_with_http_info(id, opts) data end |
#get_memory_dump_extracted_strings(id, opts = {}) ⇒ MsaspecQueryResponse
Get extracted strings from a memory dump
305 306 307 308 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 305 def get_memory_dump_extracted_strings(id, opts = {}) data, _status_code, _headers = get_memory_dump_extracted_strings_with_http_info(id, opts) data end |
#get_memory_dump_extracted_strings_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get extracted strings from a memory dump
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 316 def get_memory_dump_extracted_strings_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_memory_dump_extracted_strings ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling FalconxSandboxApi.get_memory_dump_extracted_strings" end # resource path local_var_path = '/falconx/entities/memory-dump/extracted-strings/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/octet-stream']) header_params[:'Accept-Encoding'] = opts[:'accept_encoding'] if !opts[:'accept_encoding'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_memory_dump_extracted_strings", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_memory_dump_extracted_strings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_memory_dump_hex_dump(id, opts = {}) ⇒ MsaspecQueryResponse
Get hex view of a memory dump
373 374 375 376 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 373 def get_memory_dump_hex_dump(id, opts = {}) data, _status_code, _headers = get_memory_dump_hex_dump_with_http_info(id, opts) data end |
#get_memory_dump_hex_dump_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get hex view of a memory dump
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 384 def get_memory_dump_hex_dump_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_memory_dump_hex_dump ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling FalconxSandboxApi.get_memory_dump_hex_dump" end # resource path local_var_path = '/falconx/entities/memory-dump/hex-dump/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/octet-stream']) header_params[:'Accept-Encoding'] = opts[:'accept_encoding'] if !opts[:'accept_encoding'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_memory_dump_hex_dump", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_memory_dump_hex_dump\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_memory_dump_with_http_info(id, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get memory dump content, as binary
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 248 def get_memory_dump_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_memory_dump ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling FalconxSandboxApi.get_memory_dump" end # resource path local_var_path = '/falconx/entities/memory-dump/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream']) header_params[:'Accept-Encoding'] = opts[:'accept_encoding'] if !opts[:'accept_encoding'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_memory_dump", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_memory_dump\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_reports(ids, opts = {}) ⇒ FalconxReportV1Response
Get a full sandbox report.
439 440 441 442 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 439 def get_reports(ids, opts = {}) data, _status_code, _headers = get_reports_with_http_info(ids, opts) data end |
#get_reports_with_http_info(ids, opts = {}) ⇒ Array<(FalconxReportV1Response, Integer, Hash)>
Get a full sandbox report.
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 448 def get_reports_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_reports ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling FalconxSandboxApi.get_reports" end # resource path local_var_path = '/falconx/entities/reports/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = @api_client.build_collection_param(ids, :csv) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'FalconxReportV1Response' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_reports", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sample_v2(ids, opts = {}) ⇒ String
Retrieves the file associated with the given ID (SHA256)
502 503 504 505 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 502 def get_sample_v2(ids, opts = {}) data, _status_code, _headers = get_sample_v2_with_http_info(ids, opts) data end |
#get_sample_v2_with_http_info(ids, opts = {}) ⇒ Array<(String, Integer, Hash)>
Retrieves the file associated with the given ID (SHA256)
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 512 def get_sample_v2_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_sample_v2 ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling FalconxSandboxApi.get_sample_v2" end # resource path local_var_path = '/samples/entities/samples/v2' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = ids query_params[:'password_protected'] = opts[:'password_protected'] if !opts[:'password_protected'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_sample_v2", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_sample_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_submissions(ids, opts = {}) ⇒ FalconxSubmissionV1Response
Check the status of a sandbox analysis. Time required for analysis varies but is usually less than 15 minutes.
566 567 568 569 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 566 def get_submissions(ids, opts = {}) data, _status_code, _headers = get_submissions_with_http_info(ids, opts) data end |
#get_submissions_with_http_info(ids, opts = {}) ⇒ Array<(FalconxSubmissionV1Response, Integer, Hash)>
Check the status of a sandbox analysis. Time required for analysis varies but is usually less than 15 minutes.
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 575 def get_submissions_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_submissions ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling FalconxSandboxApi.get_submissions" end # resource path local_var_path = '/falconx/entities/submissions/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = @api_client.build_collection_param(ids, :csv) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'FalconxSubmissionV1Response' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_submissions", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_submissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_summary_reports(ids, opts = {}) ⇒ FalconxSummaryReportV1Response
Get a short summary version of a sandbox report.
628 629 630 631 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 628 def get_summary_reports(ids, opts = {}) data, _status_code, _headers = get_summary_reports_with_http_info(ids, opts) data end |
#get_summary_reports_with_http_info(ids, opts = {}) ⇒ Array<(FalconxSummaryReportV1Response, Integer, Hash)>
Get a short summary version of a sandbox report.
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 637 def get_summary_reports_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.get_summary_reports ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling FalconxSandboxApi.get_summary_reports" end # resource path local_var_path = '/falconx/entities/report-summaries/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = @api_client.build_collection_param(ids, :csv) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'FalconxSummaryReportV1Response' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.get_summary_reports", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#get_summary_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#query_reports(opts = {}) ⇒ MsaspecQueryResponse
Find sandbox reports by providing an FQL filter and paging details. Returns a set of report IDs that match your criteria.
693 694 695 696 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 693 def query_reports(opts = {}) data, _status_code, _headers = query_reports_with_http_info(opts) data end |
#query_reports_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Find sandbox reports by providing an FQL filter and paging details. Returns a set of report IDs that match your criteria.
705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 705 def query_reports_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.query_reports ...' end # resource path local_var_path = '/falconx/queries/reports/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.query_reports", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#query_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#query_sample_v1(body, opts = {}) ⇒ MsaQueryResponse
Retrieves a list with sha256 of samples that exist and customer has rights to access them, maximum number of accepted items is 200
757 758 759 760 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 757 def query_sample_v1(body, opts = {}) data, _status_code, _headers = query_sample_v1_with_http_info(body, opts) data end |
#query_sample_v1_with_http_info(body, opts = {}) ⇒ Array<(MsaQueryResponse, Integer, Hash)>
Retrieves a list with sha256 of samples that exist and customer has rights to access them, maximum number of accepted items is 200
766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 766 def query_sample_v1_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.query_sample_v1 ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling FalconxSandboxApi.query_sample_v1" end # resource path local_var_path = '/samples/queries/samples/GET/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'MsaQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.query_sample_v1", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#query_sample_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#query_submissions(opts = {}) ⇒ MsaspecQueryResponse
Find submission IDs for uploaded files by providing an FQL filter and paging details. Returns a set of submission IDs that match your criteria.
826 827 828 829 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 826 def query_submissions(opts = {}) data, _status_code, _headers = query_submissions_with_http_info(opts) data end |
#query_submissions_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Find submission IDs for uploaded files by providing an FQL filter and paging details. Returns a set of submission IDs that match your criteria.
838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 838 def query_submissions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.query_submissions ...' end # resource path local_var_path = '/falconx/queries/submissions/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.query_submissions", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#query_submissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#submit(body, opts = {}) ⇒ FalconxSubmissionV1Response
Submit an uploaded file or a URL for sandbox analysis. Time required for analysis varies but is usually less than 15 minutes.
890 891 892 893 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 890 def submit(body, opts = {}) data, _status_code, _headers = submit_with_http_info(body, opts) data end |
#submit_with_http_info(body, opts = {}) ⇒ Array<(FalconxSubmissionV1Response, Integer, Hash)>
Submit an uploaded file or a URL for sandbox analysis. Time required for analysis varies but is usually less than 15 minutes.
899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 899 def submit_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.submit ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling FalconxSandboxApi.submit" end # resource path local_var_path = '/falconx/entities/submissions/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'FalconxSubmissionV1Response' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.submit", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#submit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#upload_sample_v2(sample, file_name, opts = {}) ⇒ ClientSampleMetadataResponseV2
Upload a file for sandbox analysis. After uploading, use ‘/falconx/entities/submissions/v1` to start analyzing the file.
959 960 961 962 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 959 def upload_sample_v2(sample, file_name, opts = {}) data, _status_code, _headers = upload_sample_v2_with_http_info(sample, file_name, opts) data end |
#upload_sample_v2_with_http_info(sample, file_name, opts = {}) ⇒ Array<(ClientSampleMetadataResponseV2, Integer, Hash)>
Upload a file for sandbox analysis. After uploading, use `/falconx/entities/submissions/v1` to start analyzing the file.
971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'lib/crimson-falcon/api/falconx_sandbox_api.rb', line 971 def upload_sample_v2_with_http_info(sample, file_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FalconxSandboxApi.upload_sample_v2 ...' end # verify the required parameter 'sample' is set if @api_client.config.client_side_validation && sample.nil? fail ArgumentError, "Missing the required parameter 'sample' when calling FalconxSandboxApi.upload_sample_v2" end # verify the required parameter 'file_name' is set if @api_client.config.client_side_validation && file_name.nil? fail ArgumentError, "Missing the required parameter 'file_name' when calling FalconxSandboxApi.upload_sample_v2" end # resource path local_var_path = '/samples/entities/samples/v2' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['sample'] = sample form_params['file_name'] = file_name form_params['comment'] = opts[:'comment'] if !opts[:'comment'].nil? form_params['is_confidential'] = opts[:'is_confidential'] if !opts[:'is_confidential'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ClientSampleMetadataResponseV2' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"FalconxSandboxApi.upload_sample_v2", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: FalconxSandboxApi#upload_sample_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |