emasser
About
emasser is a command line interface (CLI) that aims to automate routine business use-cases and provide utility surrounding the Enterprise Mission Assurance Support Service (eMASS) by leveraging its representational state transfer (REST) application programming interface (API) v3.2.
Documentation
emasser provides users with the following documentation:
eMASS API Documentation | eMASS Swagger UI
Current Features
The following eMASS API HTTP methods are implemented:
GETview eMASS resourcesPOSTadd eMASS resourcesPUTupdate eMASS resourcesDELETEremove eMASS resources
emasser CLI Features | emasser Developers Instructions
In Development
This project is actively looking for user stories, features to build, and interactions with eMASS. See Roadmap for more information.
- Support raw JSON upload
Roadmap
Emasser is currently in MVP development and we are targeting all the features listed in Current and In Development for version 1.0. The Road Map are things that the team and community have talked about as possible great additions but feedback on which should come first, second, and third are what we would love feedback on from you.
- Update a system's record with met/not met NIST 800-53 Security and Privacy controls and/or common control indicators (CCI) based on scan results expressed in Heimdall Data Format (HDF).
- Resolve a particular plan of action and milestone (POA&M) based on scan results or git-ops workflow.
- PKCS11 support to run in an attended mode.
Installation
emasser is a Ruby CLI that is distributed via git only. You must request the source from [email protected]
Installation Dependencies:
- git
- Ruby version 2.7 or greater.
Runtime Dependencies:
- Ruby version 2.7 or greater.
rubyzip (latest version)swagger_client (latest version)(Also referred to asemass_clientand distributed via git only)- On Windows the
cURLbinary is required (libcurl.dll). Options to install cURL for the emasser CLI to work are:- Download the curl for windows zip file from curl x.x.x for Windows
- Go into the archive and browse to /bin
- Locate libcurl_x64.dll (it may be just libcurl.dll)
- Extract the file into the Ruby installation /bin directory
- Rename the file to
libcurl.dllif it has the_x64suffix
- Install cURL for windows and add the installation directory to the PATH.
- Download the curl for windows zip file from curl x.x.x for Windows
To install:
git clone <path to emasser git> emasser
cd emasser
gem build *.gemspec
gem install *.gem
Use
Requirement 1 & 2: Authentication and Authorization:
emasser requires authentication to eMASS as well as authorization to use the eMASS API. This authentication and authorization is not a function of emasser and needs to be handled directly with discussions with eMASS. emasser will accept credentials that are created based on those discussions.
Approve API Client for Actionable Requests Users are required to log-in to eMASS and grant permissions for a client to update data within eMASS on their behalf. This is only required for actionable requests (PUT, POST, DELETE). The Registration Endpoint and all GET requests can be accessed without completing this process with the correct permissions.
To establish an account with eMASS and/or acquire an api-key/user-uid, contact one of the listed POC:
- eMASS Tier III support - Website
- Send email to eMASS Tier III support
- eMASS New User Registration (CAC required)
Design
Interactions with eMASS API:
emasser leverages a MITRE dependency, emass_client, which provides a REST API client based on a MITRE-created OpenAPI version 3 specification based on the official eMASS version 2.3 API documentation. This design enables REST API clients to be generated in any supported programming language. This design decision enables emass_client to generate a Ruby client for emasser and a TypeScript client that is included with Heimdall Enterprise Server.
Business Logic:
Because interactions with the API are handled by a dependency, the bulk of emasser is business logic for accepting user input/output, reading data from eMASS or from input, transforming data, and routing data to the appropriate eMASS API endpoint. This business logic is organized into Ruby Classes and Modules based on the command or subcommand requested by the user.
NOTICE
© 2020 The MITRE Corporation.
Approved for Public Release; Distribution Unlimited. Case Number 18-3678.
NOTICE
MITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.
NOTICE
This software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.
No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.
For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.