SCAIFE API Definition

This API definition facilitates auditing static analysis alerts using classifiers, optional adaptive heuristics, and alert prioritization. The API enables jump-starting labeled datasets using test suites. It is intended to enable a wide range of users (with widely varying datasets, static analysis tools, machine learning expertise, and amount of labeled data) to benefit from using classifiers and sophisticated prioritization to automatically triage static analysis alerts.
More information: https://www.sei.cmu.edu/research-capabilities/all-work/display.cfm?customel_datapageid_4050=6453
Contact Info: lflynn@cert.org
Version: 1.0.1
BasePath:
SCAIFE API Copyright 2007-2020 Carnegie Mellon University. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Products derived from this software may not include 'Carnegie Mellon University,' 'SEI' and/or 'Software Engineering Institute' in the name of such derived product, nor shall 'Carnegie Mellon University,' 'SEI' and/or 'Software Engineering Institute' be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact permission@sei.cmu.edu. ACKNOWLEDGMENTS AND DISCLAIMERS: This material is based upon work funded and supported by the Department of Defense under Contract No. FA8702-15-D-0002 with Carnegie Mellon University for the operation of the Software Engineering Institute, a federally funded research and development center. The view, opinions, and/or findings contained in this material are those of the author(s) and should not be construed as an official Government position, policy, or decision, unless designated by other documentation. NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN 'AS-IS' BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT. [DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution. This material includes field names used in the Software Assurance Marketplace (SWAMP), a service that provides continuous software assurance capabilities to developers and researchers at https://www.mir-swamp.org/#. Copyright © 2012-2020 The Morgridge Institute for Research, Inc. All rights reserved. This material includes field names used in the Software Assurance Tool (SwAT), a tool that is used by analysts to analyze static analysis alerts from multiple static analysis tools. https://www.cerdec.army.mil/ Combat Capabilities Development Command (CCDC) C5ISR Center. All rights reserved. DM19-0572
http://apache.org/licenses/LICENSE-2.0.html

Access

Methods

[ Jump to Models ]

Table of Contents

DataHubToUI

StatsToUI

UIServer

DataHubToUI

Up
put /packages/{package_id}/alerts
Forward new Alerts that have been uploaded to the DataHub and have a current open adaptive heuristic request for its respective package. Returns status message for the DataHub to track if the request was completed. (sendAlertUpdates)

Path parameters

package_id (required)
Path Parameter — The id of the package associated with these alerts

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

multiple_alerts multiple_alerts (required)
Body Parameter — Updated alert data

Request headers

Return type

alert_updates_response

Example data

Content-Type: application/json
{
  "package_id" : "package_id"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK alert_updates_response

400

Unable to Upload Alerts

404

Invalid Package

default

Unexpected Error error

Up
put /projects/{project_id}/meta_alerts/{meta_alert_id}/determinations
Forward new Determinations that have been uploaded to the DataHub and have a current open adaptive heuristic request. Returns status message for the DataHub to track if the request was completed. (sendDeterminationUpdates)

Path parameters

project_id (required)
Path Parameter — The id of the project associated with this determination
meta_alert_id (required)
Path Parameter — The id of the meta-alert associated with this determination

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

determination determination (required)
Body Parameter — Updated determination data

Request headers

Return type

determination_update_response

Example data

Content-Type: application/json
{
  "project_id" : "project_id",
  "meta_alert_id" : "meta_alert_id"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK determination_update_response

400

Unable to Upload Determination

404

Invalid Project

default

Unexpected Error error

StatsToUI

Up
post /projects/{project_id}/classifiers/{classifier_instance_id}
Send confidence data for a specific project. When there is an active Adaptive Heuristic for projects associated with the UI Module, the Stats Module will send the confidence data for the classifier based on some interval or threshold set by the Adaptive Heuristic. (sendConfidenceData)

Path parameters

project_id (required)
Path Parameter — The id of the project to update
classifier_instance_id (required)
Path Parameter — The id of the classifier instance associated with the confidence data

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

probability_data probability_data (required)
Body Parameter — Updated confidence values

Responses

200

OK

404

Invalid Project

default

Unexpected Error error

UIServer

Up
get /status
Provides Server Status (getStatus)

Request headers

Return type

request_token

Example data

Content-Type: application/json
{
  "message" : "message",
  "request_id" : "request_id"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Server Is Running request_token

400

Database Connection Lost

default

Unexpected Error error

Models

[ Jump to Methods ]

Table of Contents

  1. alert -
  2. alert_updates_response -
  3. determination -
  4. determination_dangerous_construct_list -
  5. determination_dead_list -
  6. determination_flag_list -
  7. determination_ignored_list -
  8. determination_inapplicable_environment_list -
  9. determination_notes_list -
  10. determination_update_response -
  11. determination_verdict_list -
  12. error -
  13. message -
  14. meta_alert -
  15. multiple_alerts -
  16. probability_data -
  17. request_token -
  18. secondary_message -

alert - Up

alert_id
tool_id
checker_id
primary_message
secondary_messages (optional)

alert_updates_response - Up

package_id (optional)

determination - Up

flag_list (optional)
verdict_list (optional)
ignored_list (optional)
dead_list (optional)
inapplicable_environment_list (optional)
dangerous_construct_list (optional)
notes_list (optional)

determination_dangerous_construct_list - Up

dangerous_construct (optional)
timestamp (optional)
Date format: date-time

determination_dead_list - Up

dead (optional)
timestamp (optional)
Date format: date-time

determination_flag_list - Up

flag (optional)
timestamp (optional)
Date format: date-time

determination_ignored_list - Up

ignored (optional)
timestamp (optional)
Date format: date-time

determination_inapplicable_environment_list - Up

inapplicable_environment (optional)
timestamp (optional)
Date format: date-time

determination_notes_list - Up

notes (optional)
timestamp (optional)
Date format: date-time

determination_update_response - Up

project_id (optional)
meta_alert_id (optional)

determination_verdict_list - Up

verdict (optional)
timestamp (optional)
Date format: date-time

error - Up

code
message

message - Up

line_start
line_end (optional)
filepath
source_file_id
source_function_id (optional)

meta_alert - Up

meta_alert_id
condition_id (optional)
filepath (optional)
line_number (optional)
determination (optional)
alert_ids (optional)
auto_verdict (optional)

multiple_alerts - Up

meta_alerts (optional)
alerts (optional)

probability_data - Up

meta_alert_id (optional)
probability (optional)
Double format: double

request_token - Up

request_id
String Id used to correlate messages with each other
message (optional)

secondary_message - Up

line_start
line_end (optional)
filepath
source_file_id
source_function_id (optional)
message_text