Skip to content

mitre/cosa-client

Repository files navigation

COSA Client

This is the source code to the COSA client application which communicates with the COSA API server.

This is the application that must be installed and configured on the system that will be performing scans. Usually, this is your Continuous Integration/ Continuous Deployment (CI/CD) server. However, there are other acceptable configurations, such as a quality assurance/testing server.

It does not require elevated privileges to work. Do not run as root or administrator.

Many instances of the client may communicate with a single COSA API server.

The client application is plug-in based. That is, it executes specific plugins when instructed by the COSA server. Thus, you will need to also install or develop plugins for your specific needs. A few sample plugins are provided.

There are two parameter when invoking this program, one of which is optional.

The first parameter is the system name. It must match a system as configured in COSA. The second parameter (optional) sets the "stage". By default, COSA defines 3 stages: image, runtime, and build. The default is build which is a static, build-time scan.

Examples:

node client.js SYSTEM_IN_COSA 
node client.js SYSTEM_IN_COSA  -s runtime

MITRE Public Release

see NOTICE.md for MITRE public release statements.

LICENSE

see LICENSE.md for MITRE license statements.