emasser 3.4.1 → 3.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +8 -8
  3. data/.env-example +12 -12
  4. data/.github/release-drafter.yml +15 -15
  5. data/.github/workflows/codeql-analysis.yml +70 -70
  6. data/.github/workflows/draft-release.yml +15 -15
  7. data/.github/workflows/gh-pages.yml +32 -32
  8. data/.github/workflows/push-to-docker-mail.yml +28 -28
  9. data/.github/workflows/push-to-docker.yml +35 -35
  10. data/.github/workflows/release.yml +42 -42
  11. data/.github/workflows/rubocop.yml +23 -23
  12. data/.github/workflows/test-cli.yml +39 -72
  13. data/.gitignore +19 -19
  14. data/.mergify.yml +25 -25
  15. data/.rubocop.yml +83 -80
  16. data/.rubocop_todo.yml +27 -27
  17. data/CHANGELOG.md +16 -16
  18. data/Dockerfile +44 -44
  19. data/Gemfile +8 -8
  20. data/Gemfile.lock +108 -104
  21. data/LICENSE.md +15 -15
  22. data/README.md +178 -178
  23. data/Rakefile +18 -18
  24. data/_config.yml +1 -1
  25. data/docs/features.md +1501 -1436
  26. data/docs/redoc/index.html +1230 -1230
  27. data/emasser.gemspec +44 -44
  28. data/exe/emasser +5 -5
  29. data/lib/emasser/cli.rb +37 -37
  30. data/lib/emasser/configuration.rb +49 -49
  31. data/lib/emasser/constants.rb +26 -26
  32. data/lib/emasser/delete.rb +148 -148
  33. data/lib/emasser/errors.rb +14 -14
  34. data/lib/emasser/get.rb +1194 -949
  35. data/lib/emasser/help/approvalCac_post_mapper.md +20 -20
  36. data/lib/emasser/help/approvalPac_post_mapper.md +20 -20
  37. data/lib/emasser/help/artifacts_del_mapper.md +9 -9
  38. data/lib/emasser/help/artifacts_post_mapper.md +59 -59
  39. data/lib/emasser/help/artifacts_put_mapper.md +34 -34
  40. data/lib/emasser/help/cloudresource_post_mapper.md +62 -62
  41. data/lib/emasser/help/cmmc_get_mapper.md +4 -4
  42. data/lib/emasser/help/container_post_mapper.md +44 -44
  43. data/lib/emasser/help/controls_put_mapper.md +74 -74
  44. data/lib/emasser/help/milestone_del_mapper.md +11 -11
  45. data/lib/emasser/help/milestone_post_mapper.md +14 -14
  46. data/lib/emasser/help/milestone_put_mapper.md +23 -23
  47. data/lib/emasser/help/poam_del_mapper.md +5 -5
  48. data/lib/emasser/help/poam_post_mapper.md +93 -93
  49. data/lib/emasser/help/poam_put_mapper.md +107 -107
  50. data/lib/emasser/help/staticcode_clear_mapper.md +16 -16
  51. data/lib/emasser/help/staticcode_post_mapper.md +21 -21
  52. data/lib/emasser/help/testresults_post_mapper.md +21 -21
  53. data/lib/emasser/help.rb +11 -11
  54. data/lib/emasser/input_converters.rb +21 -21
  55. data/lib/emasser/options_parser.rb +20 -20
  56. data/lib/emasser/output_converters.rb +115 -111
  57. data/lib/emasser/post.rb +830 -830
  58. data/lib/emasser/put.rb +588 -588
  59. data/lib/emasser/version.rb +5 -5
  60. data/lib/emasser.rb +19 -19
  61. metadata +16 -10
data/docs/features.md CHANGED
@@ -1,1437 +1,1502 @@
1
- # emasser CLI Features
2
-
3
- ## Environment Variables
4
- To facilitate setting the required environment variables the `emasser `CLI utilized the zero-dependency module to load these variables from a `.env` file.
5
-
6
- ### Configuring the `.env` File
7
- An `.env-example` file is provided with the required and optional fields.
8
-
9
- Modify the `.env_example` as necessary and save it as a `.env` file.
10
-
11
- Place the file on the path where the `emasser` command is executed.
12
-
13
- ### Required and Optional Environment Variables
14
- The following environment variables are required:
15
- * EMASSER_API_KEY_API_KEY=`<API key>`
16
- * EMASSER_API_KEY_USER_UID=`<unique identifier for the API Key (EMASSER_API_KEY_API_KEY)`
17
- * EMASSER_HOST=`<FQDN of the eMASS server>`
18
- * EMASSER_KEY_FILE_PATH=`<path to your eMASS key in PEM format>`
19
- * EMASSER_CERT_FILE_PATH=`<path to your eMASS certificate in PEM format>`
20
- * EMASSER_KEY_PASSWORD=`<password for the key given in EMASSER_KEY_FILE_PATH>`
21
-
22
- The following environment variables are *optional:
23
- * EMASSER_CLIENT_SIDE_VALIDATION=`<client side validation - true or false (default true)>`
24
- * EMASSER_VERIFY_SSL=`<verify SSL - true or false (default true)>`
25
- * EMASSER_VERIFY_SSL_HOST=`<verify host SSL - true or false (default true)>`
26
- * EMASSER_DEBUGGING=`<set debugging - true or false (default false)>`
27
- * EMASSER_CLI_DISPLAY_NULL=`<display null value fields - true or false (default true)>`
28
- * EMASSER_POCH_TO_DATETIME=`<convert epoch to data/time value - true or false (default false)>`
29
-
30
- \* If not provided defaults are used
31
-
32
- The proper format to set these variables in the `.env` files is as follows:
33
- ```bash
34
- export [VARIABLE_NAME]='value'
35
- ```
36
- ***NOTE***
37
- `emasser` requires authentication to an eMASS instance as well as authorization to use the eMASS API. This authentication and authorization is **not** a function of `emasser` and needs to be accomplished with the eMASS instances owner organization. Further information about eMASS credential requirements refer to [Defense Counterintelligence and Security Agency](https://www.dcsa.mil/is/emass/) about eMASS access.
38
-
39
- ---
40
- ## Common emasser Endpoint Requests Information
41
- - To invoke any boolean parameters use --parameterName for TRUE and --no-parameterName for FALSE
42
- - The eMASS API provides the capability of updating multiple entries within several endpoints, however the `emasser` CLI, in some cases only supports updating one entry at the time.
43
-
44
- ## Invoking emasser CLI Commands
45
-
46
- The CLI invoke commands listed in this document shows them when executing from the source code (after a pull from GitHub). Please reference the [`emasser` README](https://mitre.github.io/emasser/) on how to invoke the CLI using other available executables (gem or docker).
47
-
48
- ## API Endpoints Provided
49
-
50
- ### GET
51
- * [/api](#get-test-connection)
52
- * [/api/system](#get-system)
53
- * [/api/systems](#get-systems)
54
- * [/api/systems/{systemId}](#get-system)
55
- * [/api/system-roles](#get-roles)
56
- * [/api/system-roles/{roleCategory}](#get-roles)
57
- * [/api/systems/{systemId}/controls](#get-controls)
58
- * [/api/systems/{systemId}/test-results](#get-testresults)
59
- * [/api/systems/{systemId}/poams](#get-poams)
60
- * [/api/systems/{systemId}/poams/{poamId}](#get-poams)
61
- * [/api/systems/{systemId}/poams/{poamId}/milestones](#get-milestones)
62
- * [/api/systems/{systemId}/poams/{poamId}/milestones/{milestoneId})](#get-milestones)
63
- * [/api/systems/{systemId}/artifacts](#get-artifacts)
64
- * [/api/systems/{systemId}/artifacts-export](#get-artifacts)
65
- * [/api/systems/{systemId}/approval/cac](#get-cac)
66
- * [/api/systems/{systemId}/approval/pac](#get-pac)
67
- * [/api/cmmc-assessments](#get-cmmc)
68
- * [/api/workflow-definitions](#get-workflow_definitions)
69
- * [/api/systems/{systemId}/workflow-instances](#get-workflow_instances)
70
- * [/api/dashboards/system-status-details](#get-dashboards)
71
- * [/api/dashboards/system-control-compliance-summary](#get-dashboards)
72
- * [/api/dashboards/system-security-controls-details](#get-dashboards)
73
- * [/api/dashboards/system-assessment-procedures-details](#get-dashboards)
74
- * [/api/dashboards/system-poam-summary](#get-dashboards)
75
- * [/api/dashboards/system-poam-details](#get-dashboards)
76
- * [/api/dashboards/system-hardware-summary](#get-dashboards)
77
- * [/api/dashboards/system-hardware-details](#get-dashboards)
78
- * [/api/dashboards/system-associations-details](#get-dashboards)
79
- * [/api/dashboards/user-system-assignments-details](#get-dashboards)
80
- * [/api/dashboards/system-privacy-summary](#get-dashboards)
81
- * [/api/dashboards/va-omb-fisma-saop-summary](#get-dashboards)
82
- * [/api/dashboards/va-system-aa-summary](#get-dashboards)
83
- * [/api/dashboards/va-system-a2-summary](#get-dashboards)
84
- * [/api/dashboards/va-system-pl-109-reporting-summary](#get-dashboards)
85
- * [/api/dashboards/va-system-fisma-inventory-summary](#get-dashboards)
86
-
87
- ### POST
88
- * [/api/systems/{systemId}/test-results](#post-test_results)
89
- * [/api/systems/{systemId}/poam](#post-poams)
90
- * [/api/systems/{systemId}/poam/{poamId}/milestones](#post-milestones)
91
- * [/api/systems/{systemId}/artifacts](#post-artifacts)
92
- * [/api/systems/{systemId}/approval/cac](#post-cac)
93
- * [/api/systems/{systemId}/approval/pac](#post-pac)
94
- * [/api/systems/{systemId}/static-code-scans](#post-static_code_scan)
95
- * [/api/systems/{systemId}/cloud-resource-results](#post-cloudresource)
96
- * [/api/systems/{systemId}/container-scan-results](#post-container)
97
-
98
- ### PUT
99
- * [/api/systems/{systemId}/controls](#put-controls)
100
- * [/api/systems/{systemId}/poams](#put-poams)
101
- * [/api/systems/{systemId}/poams/{poamId}/milestones](#put-milestones)
102
- * [/api/systems/{systemId}/artifacts](#put-artifacts)
103
-
104
- ### DELETE
105
- * [/api/systems/{systemId}/poams](#delete-poams)
106
- * [/api/systems/{systemId}/poams/{poamId}/milestones](#delete-milestones)
107
- * [/api/systems/{systemId}/artifacts](#delete-artifacts)
108
-
109
- ## Endpoints CLI help
110
-
111
- Each CLI endpoint command has several layers of help.
112
- - Using `help` after a `get, put, post, or delete` command lists all available endpoint calls. The following command would list all available `GET` endpoints commands.
113
-
114
- ```bash
115
- $ bundle exec exe/emasser get help
116
- Commands:
117
- emasser get artifacts # Get system Artifacts
118
- emasser get cac # Get location of one or many controls in...
119
- emasser get cmmc # Get CMMC assessment information
120
- emasser get controls # Get system Controls
121
- emasser get dashboards # Get dashboard information
122
- emasser get help [COMMAND] # Describe subcommands or one specific su...
123
- emasser get milestones # Get system Milestones
124
- emasser get pac # Get status of active workflows in a system
125
- emasser get poams # Get system Poams
126
- emasser get roles # Get all system roles or by category Id
127
- emasser get system # Get a system ID given name/owner, or ge...
128
- emasser get systems # Get all systems
129
- emasser get test # Test connection to the configured eMASS...
130
- emasser get test_results # Get system Test Results
131
- emasser get workflow_definitions # Get workflow definitions in a site
132
- emasser get workflow_instances # Get workflow instance by system and/or ...
133
- ```
134
- - Preceding any command with `help` provides help for the command. The following command would list all available sub-commands and options for the `get artifacts` endpoint command.
135
- ```bash
136
- $ bundle exec exe/emasser get help artifacts
137
- commands:
138
- emasser get artifacts export --filename=FILENAME --systemId=N # Get artifa...
139
- emasser get artifacts forSystem --systemId=N # Get all sy...
140
- emasser get artifacts help [COMMAND] # Describe s...
141
- ```
142
- - Using `help` after any command lists all available options. The following command would list all available options for the `get artifacts export` endpoint command.
143
- ```bash
144
- $ bundle exec exe/emasser get artifacts help export
145
- Usage:
146
- emasser get artifacts export --filename=FILENAME --systemId=N
147
-
148
- Options:
149
- --systemId=N # A numeric value representing the system identification
150
- --filename=FILENAME # The artifact file name
151
- [--compress], [--no-compress] # BOOLEAN - true or false.
152
- ```
153
- **The same format is applicable for POST, PUT and DELETE requests as well, however there may be additional help content**
154
-
155
-
156
- ## Usage - GET
157
-
158
- ### ```get test connection```
159
- ---
160
- The Test Connection endpoint provides the ability to verify connection to the web service.
161
-
162
- $ bundle exec exe/emasser get test connection
163
-
164
- A return of success from the call indicates that the CLI can reach the configure server URL.
165
- References [Required Environment Variables](#required-environment-variables) for the necessary environment variables.
166
-
167
- [top](#api-endpoints-provided)
168
-
169
- ### ```get system```
170
-
171
- ---
172
- The `get system` command is not a sanctioned eMASS endpoint, it makes use of the `get systems` endpoint with added business logic.
173
-
174
- There are two commands provided by the get system:
175
-
176
- - The `get system id` - returns system ID's based on the system `name` or `owner`
177
- - The `get system byId` - returns the system content for parameter system ID
178
-
179
- ### get system id
180
- Retrieves a system identification based on the SYSTEM_NAME (name) or SYSTEM_OWNER (systemOwner) fields.
181
-
182
- To invoke the `get system id` use the following command:
183
-
184
- $ bundle exec exe/emasser get system id --system_name "system name" --system_owner "system owner"
185
-
186
- If using a platform that has `awk` installed the following command can be used to return only the system Id:
187
-
188
- $ bundle exec exe/emasser get system --system_name "system name" --system_owner "system owner" | awk "{ print $1 }"
189
-
190
-
191
- ### get system byId
192
- Retrieves the system content for provided identification (ID) number. To invoke the endpoint use the following command:
193
-
194
- $ bundle exec exe/emasser get system byId
195
-
196
- - required parameter is:
197
-
198
- |parameter | type or values |
199
- |-------------|:----------------------------------|
200
- |--systemId |Integer - Unique system identifier |
201
-
202
- - Optional parameters are:
203
-
204
- |parameter | type or values |
205
- |------------------------|:----------------------------------------|
206
- |--includePackage |BOOLEAN - true or false |
207
- |--policy |Possible values: diacap, rmf, reporting |
208
-
209
- [top](#api-endpoints-provided)
210
-
211
- ### ```get systems```
212
-
213
- ----
214
- To retrieve controls use the following command:
215
- - all - Retrieves all available systems
216
- ```
217
- $ bundle exec exe/emasser get systems all
218
- ```
219
-
220
- - Optional parameters are:
221
-
222
- |parameter | type or values |
223
- |------------------------|:----------------------------------------------------------------------------|
224
- |--coamsId |Cyber Operational Attributes Management System (COAMS) string Id |
225
- |--ditprId |DoD Information Technology (IT) Portfolio Repository (DITPR) string id |
226
- |--includeDecommissioned |BOOLEAN - true or false |
227
- |--includeDitprMetrics |BOOLEAN - true or false |
228
- |--includePackage |BOOLEAN - true or false |
229
- |--policy |Possible values: diacap, rmf, reporting |
230
- |--registrationType |Possible values: assessAndAuthorize, assessOnly, guest, regular, functional, |
231
- | | cloudServiceProvider, commonControlProvider |
232
- |--reportsForScorecard |BOOLEAN - true or false |
233
-
234
- [top](#api-endpoints-provided)
235
- ### ```get roles```
236
-
237
- ----
238
- There are two get endpoints for system roles:
239
- - all - Retrieves all available roles
240
- ```
241
- $ bundle exec exe/emasser get roles all
242
- ```
243
- - byCategory - Retrieves roles based on the following required parameter:
244
- ````
245
- $ bundle exec exe/emasser get roles byCategory --roleCategory=ROLECATEGORY --role=ROLE
246
- ````
247
- - required parameters are:
248
-
249
- |parameter | type or values |
250
- |:---------------|:------------------------------------------|
251
- |--roleCategory |Possible values: PAC, CAC, Other |
252
- |--role |Possible values: AO, Auditor, Artifact Manager, C&A Team, IAO, ISSO, PM/IAM, SCA, User Rep (View Only), Validator (IV&V)|
253
-
254
- - optional parameter are:
255
-
256
- |parameter | type or values |
257
- |------------------------|:----------------------------------------|
258
- |--policy |Possible values: diacap, rmf, reporting |
259
- |--includeDecommissioned |BOOLEAN - true or false |
260
-
261
- [top](#api-endpoints-provided)
262
- ### ```get controls```
263
-
264
- ----
265
- To retrieve controls use the following command:
266
-
267
- $ bundle exec exe/emasser get controls forSystem --systemId=SYSTEMID
268
-
269
- - required parameter is:
270
-
271
- |parameter | type or values |
272
- |-------------|:----------------------------------|
273
- |--systemId |Integer - Unique system identifier |
274
-
275
- - optional parameter is:
276
-
277
- |parameter | type or values |
278
- |-------------|:------------------------------------------|
279
- |--acronyms |The system acronym(s) e.g "AC-1, AC-2" - if not provided all controls for systemId are returned |
280
-
281
- [top](#api-endpoints-provided)
282
- ### ```get test_results```
283
-
284
- ----
285
- To retrieve test results use the following command:
286
-
287
- $ bundle exec exe/emasser get test_results forSystem --systemId=SYSTEMID
288
-
289
- - required parameter is:
290
-
291
- |parameter | type or values |
292
- |-------------|:----------------------------------|
293
- |--systemId |Integer - Unique system identifier |
294
-
295
- - optional parameters are:
296
-
297
- |parameter | type or values |
298
- |-------------------|:------------------------------------------|
299
- |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2" |
300
- |--ccis |String - The system CCIS string numerical value |
301
- |--latestOnly |BOOLEAN - true or false|
302
-
303
- [top](#api-endpoints-provided)
304
- ### ```get poams```
305
-
306
- ----
307
- There are two get endpoints for system poams:
308
- - forSystem - Retrieves all poams for specified system ID
309
- ````
310
- $ bundle exec exe/emasser get poams forSystem --systemId=SYSTEMID
311
- ````
312
- - required parameter is:
313
-
314
- |parameter | type or values |
315
- |-------------|:----------------------------------|
316
- |--systemId |Integer - Unique system identifier |
317
-
318
- - optional parameters are:
319
-
320
- |parameter | type or values |
321
- |-------------------------------|:----------------------------------------------|
322
- |--scheduledCompletionDateStart |Date - Unix time format (e.g. 1499644800) |
323
- |--scheduledCompletionDateEnd |Date - Unix time format (e.g. 1499990400) |
324
- |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2"|
325
- |--ccis |String - The system CCIS string numerical value|
326
- |--systemOnly |BOOLEAN - true or false|
327
-
328
-
329
- - byPoamId - Retrieves all poams for specified system and poam ID
330
- ````
331
- $ bundle exec exe/emasser get poams byPoamId --systemId=SYSTEMID --poamId=POAMID
332
- ````
333
- - required parameters are:
334
-
335
- |parameter | type or values |
336
- |-------------|:----------------------------------|
337
- |--systemId |Integer - Unique system identifier |
338
- |--poamId |Integer - Unique poam identifier |
339
-
340
- [top](#api-endpoints-provided)
341
- ### ```get milestones```
342
-
343
- ----
344
- There are two get endpoints for system milestones:
345
- - byPoamId - Retrieves milestone(s) for specified system and poam ID
346
- ````
347
- $ bundle exec exe/emasser get milestones byPoamId --systemId=SYSTEMID --poamId=POAMID
348
- ````
349
- - required parameters are:
350
-
351
- |parameter | type or values |
352
- |-------------|:----------------------------------|
353
- |--systemId |Integer - Unique system identifier |
354
- |--poamId |Integer - Unique poam identifier |
355
-
356
- - optional parameters are:
357
-
358
- |parameter | type or values |
359
- |-------------------------------|:----------------------------------------------|
360
- |--scheduledCompletionDateStart |Date - Unix time format (e.g. 1499644800) |
361
- |--scheduledCompletionDateEnd |Date - Unix time format (e.g. 1499990400) |
362
-
363
-
364
- - byMilestoneId, Retrieve milestone(s) for specified system, poam, and milestone ID"
365
- ````
366
- $ bundle exec exe/emasser get poams byMilestoneId --systemId=SYSTEMID --poamId=POAMID --milestoneId=MILESTONEID
367
- ````
368
- - required parameters are:
369
-
370
- |parameter | type or values |
371
- |--------------|:-------------------------------------|
372
- |--systemId |Integer - Unique system identifier |
373
- |--poamId |Integer - Unique poam identifier |
374
- |--milestoneId |Integer - Unique milestone identifier |
375
-
376
- [top](#api-endpoints-provided)
377
- ### ```get artifacts```
378
-
379
- ----
380
- There are two get endpoints that provides the ability to view existing `Artifacts` in a system:
381
-
382
- - forSystem - Retrieves one or many artifacts in a system specified system ID
383
- ````
384
- $ bundle exec exe/emasser get artifacts forSystem --systemId=SYSTEMID
385
- ````
386
- - required parameter is:
387
-
388
- |parameter | type or values |
389
- |-------------|:----------------------------------|
390
- |--systemId |Integer - Unique system identifier |
391
-
392
- - optional parameters are:
393
-
394
- |parameter | type or values |
395
- |-------------------------------|:----------------------------------------------|
396
- |--filename |The artifact file name |
397
- |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2"|
398
- |--ccis |String - The system CCIS string numerical value|
399
- |--systemOnly |BOOLEAN - true or false|
400
-
401
-
402
- - export - Retrieves the file artifacts (if compress is true the file binary contents are returned, otherwise the file textual contents are returned.)
403
- ````
404
- $ bundle exec exe/emasser get artifacts export --systemId=SYSTEMID
405
- ````
406
- - required parameters are:
407
-
408
- |parameter | type or values |
409
- |-------------|:----------------------------------|
410
- |--systemId |Integer - Unique system identifier |
411
- |--filename |The artifact file name |
412
-
413
- - optional parameter is:
414
-
415
- |parameter | type or values |
416
- |-------------|:----------------------------------|
417
- |--compress |BOOLEAN - true or false. |
418
-
419
- [top](#api-endpoints-provided)
420
- ### ```get cac```
421
-
422
- ----
423
- To view one or many Control Approval Chain (CAC) in a system specified system ID use the following command:
424
- ```
425
- $ bundle exec exe/emasser get cac controls --systemId=SYSTEMID
426
- ```
427
- - required parameter is:
428
-
429
- |parameter | type or values |
430
- |-------------|:----------------------------------|
431
- |--systemId |Integer - Unique system identifier |
432
-
433
- - optional parameter is:
434
-
435
- |parameter | type or values |
436
- |-------------------------------|:----------------------------------------------|
437
- |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2"|
438
-
439
- [top](#api-endpoints-provided)
440
- ### ```get pac```
441
-
442
- ----
443
- To view one or many Package Approval Chain (PAC) in a system specified system ID use the following command:
444
-
445
- ````
446
- $ bundle exec exe/emasser get pac package --systemId=SYSTEMID
447
- ````
448
- - required parameter is:
449
-
450
- |parameter | type or values |
451
- |-------------|:----------------------------------|
452
- |--systemId |Integer - Unique system identifier |
453
-
454
- [top](#api-endpoints-provided)
455
- ### ```get cmmc```
456
-
457
- ----
458
- To view Cybersecurity Maturity Model Certification (CMMC) Assessments use the following command:
459
-
460
- $ bundle exec exe/emasser get workflow_definitions forSite --sinceDate=SINCEDATE
461
-
462
- - Required parameter is:
463
-
464
- |parameter | type or values |
465
- |----------------|:--------------------------------------|
466
- |--sinceDate |Date - The CMMC date. Unix date format |
467
-
468
- [top](#api-endpoints-provided)
469
- ### ```get workflow_definitions```
470
-
471
- ----
472
- To view Workflow Definitions use the following command:
473
-
474
- $ bundle exec exe/emasser get workflow_definitions forSite
475
-
476
- - Optional parameters are:
477
-
478
- |parameter | type or values |
479
- |---------------------|:----------------------------------------------------------------------------|
480
- |--includeInactive |BOOLEAN - true or false |
481
- |--registrationType |Possible values: assessAndAuthorize, assessOnly, guest, regular, functional, |
482
- | | cloudServiceProvider, commonControlProvider |
483
-
484
- [top](#api-endpoints-provided)
485
- ### ```get workflow_instances```
486
-
487
- ----
488
- There are two get endpoints to view workflow instances:
489
- - all
490
- ```
491
- $ bundle exec exe/emasser get workflow_instances all
492
- ```
493
- - Optional parameters are:
494
-
495
- |parameter | type or values |
496
- |-------------------|:---------------------------------------------------|
497
- |--includeComments |BOOLEAN - true or false |
498
- |--pageIndex |Integer - The page number to query |
499
- |--sinceDate |Date - The Workflow Instance date. Unix date format |
500
- |--status |Possible values: active, inactive, all |
501
-
502
- - byWorkflowInstanceId
503
- ```
504
- $ bundle exec exe/emasser get workflow_instances byWorkflowInstanceId --workflowInstanceId=WORKFLOWID
505
- ```
506
- - required parameter is:
507
-
508
- |parameter | type or values |
509
- |---------------------|:---------------------------------------------|
510
- |--workflowInstanceId |Integer - Unique workflow instance identifier |
511
-
512
- [top](#api-endpoints-provided)
513
- ### ```get dashboards```
514
-
515
- ----
516
- The Dashboards endpoints provide the ability to view data contained in dashboard exports. In the eMASS front end, these dashboard exports are generated as Excel exports.
517
-
518
- All endpoint calls utilize the same parameter values, they are:
519
- - Required parameter is:
520
-
521
- |parameter | type or values |
522
- |--------------|:------------------------------------------------|
523
- |--orgId |Integer - The organization identification number |
524
-
525
- - Optional parameters are:
526
-
527
- |parameter | type or values |
528
- |-------------|:--------------------------------------------------------------|
529
- |--pageIndex |Integer - The index of the starting page (default first page 0)|
530
- |--pageSize |Integer - The number of entries per page (default 20000) |
531
-
532
- Available commands are:
533
- - Get systems status detail dashboard information
534
- ```
535
- $ bundle exec exe/emasser get status_details --orgId=ORGID
536
- ```
537
- - Get systems control compliance summary dashboard information
538
- ```
539
- $ bundle exec exe/emasser get control_compliance_summary --orgId=ORGID
540
- ```
541
- - Get systems security control details dashboard information
542
- ```
543
- $ bundle exec exe/emasser get security_control_details --orgId=ORGID
544
- ```
545
- - Get systems assessment procedures details dashboard information
546
- ```
547
- $ bundle exec exe/emasser get assessment_procedures_details --orgId=ORGID
548
- ```
549
- - Get systems POA&Ms summary dashboard information
550
- ```
551
- $ bundle exec exe/emasser get poam_summary --orgId=ORGID
552
- ```
553
- - Get system POA&Ms details dashboard information
554
- ```
555
- $ bundle exec exe/emasser get poam_details --orgId=ORGID
556
- ```
557
- - Get system hardware summary dashboard information
558
- ```
559
- $ bundle exec exe/emasser get hardware_summary --orgId=ORGID
560
- ```
561
- - Get system hardware details dashboard information
562
- ```
563
- $ bundle exec exe/emasser get hardware_details --orgId=ORGID
564
- ```
565
- - Get system associations details dashboard information
566
- ```
567
- $ bundle exec exe/emasser get associations_details --orgId=ORGID
568
- ```
569
- - Get user system assignments details dashboard information
570
- ```
571
- $ bundle exec exe/emasser get assignments_details --orgId=ORGID
572
- ```
573
- - Get user system privacy summary dashboard information
574
- ```
575
- $ bundle exec exe/emasser get privacy_summary --orgId=ORGID
576
- ```
577
- - Get VA OMB-FISMA SAOP summary dashboard information
578
- ```
579
- $ bundle exec exe/emasser get fisma_saop_summary --orgId=ORGID
580
- ```
581
- - Get VA system A&A summary dashboard information
582
- ```
583
- $ bundle exec exe/emasser get va_aa_summary --orgId=ORGID
584
- ```
585
- - Get VA system A2.0 summary dashboard information
586
- ```
587
- $ bundle exec exe/emasser get va_a2_summary --orgId=ORGID
588
- ```
589
- - Get VA System P.L. 109 reporting summary dashboard information
590
- ```
591
- $ bundle exec exe/emasser get va_pl_109_summary --orgId=ORGID
592
- ```
593
- - Get VA system FISMA inventory summary dashboard information
594
- ```
595
- $ bundle exec exe/emasser get fisma_inventory_summary --orgId=ORGID
596
- ```
597
-
598
- [top](#api-endpoints-provided)
599
-
600
- ## Usage - POST
601
-
602
- ### ``post test_results``
603
- ---
604
- Test Result add (POST) endpoint API business rules.
605
-
606
- |Business Rule | Parameter/Field |
607
- |---------------------------------------------------------------------|:-----------------|
608
- | Tests Results cannot be saved if the "Test Date" is in the future. | `testDate` |
609
- | Test Results cannot be saved if a Security Control is "Inherited" in the system record. | `description` |
610
- | Test Results cannot be saved if an Assessment Procedure is "Inherited" in the system record. | `description` |
611
- | Test Results cannot be saved if the AP does not exist in the system. | `description` |
612
- | Test Results cannot be saved if the control is marked "Not Applicable" by an Overlay. | `description` |
613
- | Test Results cannot be saved if the control is required to be assessed as "Applicable" by an Overlay.| `description` |
614
- | Test Results cannot be saved if the Tests Results entered is greater than 4000 characters.|`description`|
615
- | Test Results cannot be saved if the following fields are missing data: | `complianceStatus`, `testDate`, `testedBy`, `description`|
616
- | Test results cannot be saved if there is more than one test result per CCI |`cci`|
617
-
618
- ---
619
- To add (POST) test results use the following command:
620
-
621
- ````
622
- $ bundle exec exe/emasser post test_results add --systemId [value] --cci [value] --testedBy [value] --testDate [value] --description [value] --complianceStatus [value]
623
- ````
624
- Note: If no POA&Ms or AP exist for the control (system), you will get this response:
625
- "You have entered a Non-Compliant Test Result. You must create a POA&M Item for this Control and/or AP if one does not already exist."
626
-
627
- - required parameter are:
628
-
629
- |parameter | type or values |
630
- |-------------------|:------------------------------------------------------------|
631
- |--systemId |Integer - Unique system identifier |
632
- |--cci |String - CCI associated with the test result. e.g "00221" |
633
- |--testedBy |String - Last Name, First Name. 100 Characters. |
634
- |--testDate |Date - Unix time format (e.g. 1499990400) |
635
- |--description |String - Include description of test result. 4000 Characters |
636
- |--complianceStatus |Possible values: Compliant, Non-Compliant, Not Applicable |
637
-
638
- **Note**
639
- For information at the command line use:
640
- ```
641
- $ bundle exec exe/emasser post test_results help add
642
- ```
643
- [top](#post)
644
-
645
- ### ``post poams``
646
- ---
647
- Plan of Action and Milestones (POA&M) add (POST) endpoint API business rules.
648
-
649
- The following fields are required based on the contents of the status field
650
-
651
- |status |Required Fields
652
- |----------------|--------------------------------------------------------
653
- |Risk Accepted |comments
654
- |Ongoing |scheduledCompletionDate, milestones (at least 1)
655
- |Completed |scheduledCompletionDate, comments, completionDate, milestones (at least 1)
656
- |Not Applicable |POAM can not be created
657
-
658
- If a POC email is supplied, the application will attempt to locate a user
659
- already registered within the application and pre-populate any information
660
- not explicitly supplied in the request. If no such user is found, these
661
- fields are required within the request.
662
- - pocOrganization, pocFirstName, pocLastName, pocEmail, pocPhoneNumber
663
-
664
- Business logic, the following rules apply when adding POA&Ms
665
-
666
- - POA&M Items cannot be saved if associated Security Control or AP is inherited.
667
- - POA&M Items cannot be created manually if a Security Control or AP is Not Applicable.
668
- - Completed POA&M Item cannot be saved if Completion Date is in the future.
669
- - Completed POA&M Item cannot be saved if Completion Date (completionDate) is in the future.
670
- - Risk Accepted POA&M Item cannot be saved with a Scheduled Completion Date or Milestones
671
- - POA&M Items with a review status of "Not Approved" cannot be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
672
- - POA&M Items with a review status of "Approved" can be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
673
- - POA&M Items that have a status of "Completed" and a status of "Ongoing" cannot be saved without Milestones.
674
- - POA&M Items that have a status of "Risk Accepted" cannot have milestones.
675
- - POA&M Items with a review status of "Approved" that have a status of "Completed" and "Ongoing" cannot update Scheduled Completion Date.
676
- - POA&M Items that have a review status of "Approved" are required to have a Severity Value assigned.
677
- - POA&M Items cannot be updated if they are included in an active package.
678
- - Archived POA&M Items cannot be updated.
679
- - POA&M Items with a status of "Not Applicable" will be updated through test result creation.
680
- - If the Security Control or Assessment Procedure does not exist in the system we may have to just import POA&M Item at the System Level.
681
-
682
-
683
- The following POA&M parameters/fields have the following character limitations:
684
- - Fields that can not exceed 100 characters:
685
- - Office / Organization (`pocOrganization`)
686
- - First Name (`pocFirstName`)
687
- - Last Name (`pocLastName`)
688
- - Email (`email`)
689
- - Phone Number (`pocPhoneNumber`)
690
- - External Unique ID (`externalUid`)
691
- - Fields that can not exceed 250 characters:
692
- - Resource (`resource`)
693
- - Fields have can not exceed 2000 character:
694
- - Vulnerability Description (`vulnerabilityDescription`)
695
- - Source Identifying Vulnerability (`sourceIdentVuln`)
696
- - Recommendations (`recommendations`)
697
- - Risk Accepted Comments (`comments`)
698
- - Milestone Description (`description`)
699
- - Mitigation Justification (`mitigation`)
700
-
701
- To add (POST) POA&Ms use the following command:
702
- ```
703
- $ bundle exec exe/emasser post poams add --systemId [value] --status [value] --vulnerabilityDescription [value] --sourceIdentVuln [value] --pocOrganization [value] --resources [value]
704
- ```
705
- **Notes:**
706
- - The above listed parameters/fields are the minimal required.
707
- - Based on the value for the status (--status) parameter additional fields are required
708
- - Refer to instructions listed above for conditional and optional fields requirements.
709
- - When a milestone is required the format is:
710
- - --milestone description:[value] scheduledCompletionDate:[value]
711
-
712
- **If a milestone Id is provided (--milestone milestoneId:[value]) the POA&M with the provided milestone Id is updated and the new POA&M milestones is set to null.**
713
-
714
- ---
715
- Client API parameters/fields (required, conditional, and optional).
716
- - required parameter are:
717
-
718
- |parameter | type or values |
719
- |---------------------------|:---------------------------------------------------------------|
720
- |--systemId |Integer - Unique system identifier |
721
- |--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable |
722
- |--vulnerabilityDescription |String - Vulnerability description for the POA&M Item |
723
- |--sourceIdentVuln |String - Include Source Identifying Vulnerability text |
724
- |--pocOrganization |String - Organization/Office represented |
725
- |--resources |String - List of resources used. Character Limit = 250 |
726
-
727
- ** If any poc information is provided all POC fields are required. See additional details for POC fields below.
728
-
729
- - conditional parameters are:
730
-
731
- |parameter | type or values |
732
- |--------------------------|:------------------------------------------------------------------------|
733
- |--milestones |JSON - see milestone format |
734
- |--pocFirstName |String - First name of POC |
735
- |--pocLastName |String - Last name of POC |
736
- |--pocEmail |String - Email address of POC |
737
- |--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format |
738
- |--severity |Possible values - Very Low, Low, Moderate, High, Very High |
739
- |--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format |
740
- |--completionDate |Date - Field is required for completed POA&M items. Unix time format |
741
- |--comments |String - Field is required for completed and risk accepted POA&M items. |
742
-
743
- ** If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request:
744
- pocFirstName, pocLastName, pocPhoneNumber
745
-
746
- Milestone Format:
747
- - --milestone description:[value] scheduledCompletionDate:[value]
748
-
749
- - optional parameters are:
750
-
751
- |parameter | type or values |
752
- |--------------------|:-----------------------------------------------------------------------------------------|
753
- |--externalUid |String - External unique identifier for use with associating POA&M Items |
754
- |--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined|
755
- |--cci |String - CCI associated with the test result |
756
- |--securityChecks |String - Security Checks that are associated with the POA&M |
757
- |--rawSeverity |Possible values: I, II, III |
758
- |--relevanceOfThreat |Possible values: Very Low, Low, Moderate, High, Very High |
759
- |--likelihood |Possible values: Very Low, Low, Moderate, High, Very High |
760
- |--impact |Possible values: Very Low, Low, Moderate, High, Very High |
761
- |--impactDescription |String - Include description of Security Control’s impact |
762
- |--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
763
- |--recommendations |String - Include recommendations |
764
- |--mitigation |String - Include mitigation explanation |
765
-
766
-
767
- **Note**
768
- For information at the command line use:
769
- ```
770
- $ bundle exec exe/emasser post poams help add
771
- ```
772
- [top](#post)
773
-
774
- ### ``post milestones``
775
- ---
776
- To add (POST) milestones in a system for one or more POA&M items use the following command:
777
-
778
- ````
779
- $ bundle exec exe/emasser post milestones add --systemId [value] --poamId [value] --description [value] --scheduledCompletionDate [value]
780
- ````
781
- - required parameter are:
782
-
783
- |parameter | type or values |
784
- |---------------------------|:----------------------------------------------------|
785
- |--systemId |Integer - Unique system identifier |
786
- |--poamId |Integer - Unique item identifier |
787
- |--description |String - Milestone item description. 2000 Characters |
788
- |--scheduledCompletionDate |Date - Schedule completion date. Unix date format |
789
-
790
-
791
- **Note**
792
- For information at the command line use:
793
- ```
794
- $ bundle exec exe/emasser post milestones help add
795
- ```
796
- [top](#post)
797
-
798
- ### ``post artifacts``
799
- ---
800
- The add (POST) artifacts endpoint accepts a single binary file with file extension.zip only. The command line (CI) reads the files provided and zips them before sending to eMASS.
801
-
802
- ```
803
- If no artifact is matched via filename to the application, a new artifact will be created with the following default values. Any values not specified below will be blank.
804
- - isTemplate: false
805
- - type: other
806
- - category: evidence
807
- ```
808
-
809
- Business Rules:
810
- - Artifact cannot be saved if the file does not have the following file extensions:
811
- - .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mhtml,.html,.htm,.pdf
812
- - .mdb,.accdb,.ppt,.pptx,.xls,.xlsx,.csv,.log
813
- - .jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif
814
- - .zip,.rar,.msg,.vsd,.vsw,.vdx, .z{#}, .ckl,.avi,.vsdx
815
- - Artifact cannot be saved if File Name (fileName) exceeds 1,000 characters
816
- - Artifact cannot be saved if Description (description) exceeds 2,000 characters
817
- - Artifact cannot be saved if Reference Page Number (refPageNumber) exceeds 50 characters
818
- - Artifact version cannot be saved if an Artifact with the same file name already exist in the system.
819
- - Artifact cannot be saved if the file size exceeds 30MB.
820
- - Artifact cannot be saved if the Last Review Date is set in the future.
821
- ---
822
- To add (POST) artifacts use the following command:
823
-
824
- ```
825
- $ bundle exec exe/emasser post artifacts upload --systemId [value] [--isTemplate or --no-isTemplate] --type [value] --category [value] --files [value...value]
826
- ```
827
-
828
- - required parameter are:
829
-
830
- |parameter | type or values |
831
- |----------------|:----------------------------------------------------|
832
- |--systemId |Integer - Unique system identifier |
833
- |--isTemplate |Boolean - Indicates whether an artifact is a template|
834
- |--type |Possible Values: Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report|
835
- |--category |Possible Values: Implementation Guidance, Evidence |
836
- |--files |String - File names (to include path) to be uploaded into eMASS as artifacts |
837
-
838
- - optional parameter are:
839
-
840
- |parameter | type or values |
841
- |-------------------------|:------------------------------------------------------|
842
- |--description |String - Artifact description. 2000 Characters |
843
- |--refPageNumber |String - Artifact reference page number. 50 Characters |
844
- |--ccis |String - CCIs associated with artifact |
845
- |--controls |String - Control acronym associated with the artifact. NIST SP 800-53 Revision 4 defined|
846
- |--artifactExpirationDate |Date - Date Artifact expires and requires review. In Unix Date Format|
847
- |--lastReviewedDate |Date - Date Artifact was last reviewed. In Unix Date Format |
848
-
849
-
850
- **Note**
851
- For information at the command line use:
852
- ```
853
- $ bundle exec exe/emasser post artifacts help upload
854
- ```
855
- [top](#post)
856
-
857
- ### ``post cac``
858
- ----
859
- Submit control to second role of CAC
860
-
861
- Business Rule
862
- - Comments are not required at the first role of the CAC but are required at the second role of the CAC. Comments cannot exceed 10,000 characters.
863
-
864
- To add (POST) test CAC use the following command:
865
-
866
- ````
867
- $ bundle exec exe/emasser post pac add --systemId [value] --controlAcronym [value] --comments [value]
868
- ````
869
- - required parameter are:
870
-
871
- |parameter | type or values |
872
- |-------------------|:------------------------------------------------------------|
873
- |--systemId |Integer - Unique system identifier |
874
- |--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined |
875
-
876
- - conditional parameter is:
877
-
878
- |parameter | type or values |
879
- |-------------------|:-------------------------------------------|
880
- |--comments |String -The control approval chain comments |
881
-
882
- **Note**
883
- For information at the command line use:
884
- ```
885
- $ bundle exec exe/emasser post cac help add
886
- ```
887
- [top](#post)
888
-
889
- ### ``post pac``
890
- ----
891
- Submit control to second role of CAC
892
-
893
- To add (POST) test PAC use the following command:
894
-
895
- ````
896
- $ bundle exec exe/emasser post pac add --systemId [value] --workflow [value] --name [value] --comments [value]
897
- ````
898
- - required parameter are:
899
-
900
- |parameter | type or values |
901
- |--------------|:--------------------------------------------------------------------------|
902
- |--systemId |Integer - Unique system identifier |
903
- |--workflow |Possible Values: Assess and Authorize, Assess Only, Security Plan Approval |
904
- |--name |String - Package name. 100 Characters |
905
- |--comments |String - Comments submitted upon initiation of the indicated workflow, 4,000 character|
906
-
907
- **Note**
908
- For information at the command line use:
909
- ```
910
- $ bundle exec exe/emasser post pac help add
911
- ```
912
- [top](#post)
913
-
914
- ### ``post static_code_scan``
915
- ----
916
- To add (POST) static code scans use the following command:
917
-
918
- ````
919
- $ bundle exec exe/emasser post scan_findings add --systemId [value] --applicationName [value] --version [value] --codeCheckName [value] --scanDate [value] --cweId [value]
920
- ````
921
- - required parameter are:
922
-
923
- |parameter | type or values |
924
- |-------------------|:-----------------------------------------------------------|
925
- |--systemId |Integer - Unique system identifier |
926
- |--applicationName |String - Name of the software application that was assessed |
927
- |--version |String - The version of the application |
928
- |--codeCheckName |Strings - Name of the software vulnerability or weakness |
929
- |--scanDate |Date - The findings scan date - Unix time format |
930
- |--cweId |String - The Common Weakness Enumerator (CWE) identifier |
931
-
932
- - optional parameters are:
933
-
934
- |parameter | type or values |
935
- |-------------------|:------------------------------------------------------|
936
- |--rawSeverity* |Possible Values: Low, Medium, Moderate, High, Critical |
937
- |--count |Integer - Number of instances observed for a specified |
938
-
939
- *rawSeverity: In eMASS, values of "Critical" will appear as "Very High", and values of "Medium" will appear as "Moderate". Any values not listed as options in the list above will map to "Unknown" and appear as blank values.
940
-
941
- To clear (POST) static code scans use the following command:
942
-
943
- ````
944
- $ bundle exec exe/emasser post scan_findings clear --systemId [value] --applicationName [value] --version [value] --clearFindings
945
- ````
946
- - required parameter are:
947
-
948
- |parameter | type or values |
949
- |-------------------|:-----------------------------------------------------------|
950
- |--systemId |Integer - Unique system identifier |
951
- |--applicationName |String - Name of the software application that was assessed |
952
- |--clearFindings* |Boolean - To clear an application's findings set it to true |
953
-
954
- *The clearFindings field is an optional field, but required with a value of "True" to clear out all application findings for a single application/version pairing.
955
-
956
- **Note**
957
- For information at the command line use:
958
- ```
959
- $ bundle exec exe/emasser post scan_findings help add
960
- ```
961
- [top](#post)
962
-
963
- ### ```post cloud_resource```
964
- ---
965
-
966
- The following Cloud Resource parameters/fields have the following character limitations:
967
- - Fields that can not exceed 50 characters:
968
- - Policy Deployment Version (`policyDeploymentVersion`)
969
- - Fields that can not exceed 100 characters:
970
- - Assessment Procedure (`assessmentProcedure`)
971
- - Security Control Acronym (`control`)
972
- - CSP Account ID (`cspAccountId`)
973
- - CSP Region (`cspRegion`)
974
- - Email of POC (`initiatedBy`)
975
- - Cloud Service Provider (`provider`)
976
- - Type of Cloud resource (`resourceType`)
977
- - Fields that can not exceed 500 characters:
978
- - CSP/Resource’s Policy ID (`cspPolicyDefinitionId`)
979
- - Policy Deployment Name (`policyDeploymentName`)
980
- - Policy Compliance ID (`resourceId`)
981
- - Cloud Resource Name (`resourceName`)
982
- - Fields that can not exceed 1000 characters:
983
- - Reason for Compliance (`complianceReason`)
984
- - Fields that can not exceed 2000 characters:
985
- - Policy Short Title (`policyDefinitionTitle`)
986
-
987
- To add a cloud resource and their scan results in the assets module for a system use the following command:
988
- ````
989
- $ bundle exec exe/emasser post cloud_resource add --systemId [value] --provider [value] --resourceId [value] --resourceName [value] --resourceType [value] --cspPolicyDefinitionId [value] --isCompliant or --is-not-Compliant --policyDefinitionTitle [value] --test [value]
990
- ````
991
- - required parameter are:
992
-
993
- |parameter | type or values |
994
- |------------------------|:--------------------------------------------------------------------------|
995
- |--systemId |Integer - Unique system identifier |
996
- |--provider |string - Cloud service provider name |
997
- |--resourceId |String - Unique identifier/resource namespace for policy compliance result |
998
- |--resourceName |String - Friendly name of Cloud resource |
999
- |--resourceType |String - Type of Cloud resource |
1000
- |--cspPolicyDefinitionId |String - Unique identifier/compliance namespace for CSP/Resource\'s policy definition/compliance check|
1001
- |--isCompliant | Boolean - Compliance status of the policy for the identified cloud resource |
1002
- |--policyDefinitionTitle | String - Friendly policy/compliance check title. Recommend short title |
1003
-
1004
- - optional parameters are:
1005
-
1006
- |parameter | type or values |
1007
- |-------------------|:------------------------------------------------------|
1008
- |--initiatedBy |String - Person initiating the process email address |
1009
- |--cspAccountId |String - System/owner\'s CSP account ID/number |
1010
- |--cspRegion |String - CSP region of system |
1011
- |--isBaseline |Boolean - Flag that indicates in results is a baseline |
1012
- |Tags Object (tags)|
1013
- |--text | String - Text that specifies the tag type |
1014
- |Compliance Results Array Objects (complianceResults)|
1015
- |--assessmentProcedure |String - Comma separated correlation to Assessment Procedure (i.e. CCI number for DoD Control Set) |
1016
- |--complianceCheckTimestamp |Date - The compliance check date - Unix time format |
1017
- |--complianceReason |String - Reason/comments for compliance result |
1018
- |--control |String - Comma separated correlation to Security Control (e.g. exact NIST Control acronym) |
1019
- |--policyDeploymentName |String - Name of policy deployment |
1020
- |--policyDeploymentVersion |String - Version of policy deployment |
1021
- |--severity |Possible Values: Low, Medium, High, Critical |
1022
-
1023
-
1024
- **Note**
1025
- For information at the command line use:
1026
- ```
1027
- $ bundle exec exe/emasser post cloud_resource help add
1028
- ```
1029
-
1030
- [top](#post)
1031
-
1032
-
1033
- ### ```post container```
1034
- ---
1035
- The following Container parameters/fields have the following character limitations:
1036
- - Fields that can not exceed 100 characters:
1037
- - STIG Benchmark ID (`benchmark`)
1038
- - Container Namespace (`namespace`)
1039
- - Kubernetes assigned IP (`podIp`)
1040
- - Kubernetes Pod Name) (`podName`)
1041
- - Fields that can not exceed 500 characters:
1042
- - Container ID (`containerId`)
1043
- - Friendly Container Name (`containerName`)
1044
- - Fields that can not exceed 1000 characters:
1045
- - Result Comments (`message`)
1046
-
1047
-
1048
-
1049
- To add containers and their scan results in the assets module for a system use the following command:
1050
- ````
1051
- $ bundle exec ruby exe/emasser post container add --systemId [value] --containerId [value] --containerName [value] --time [value] --benchmark [value] --lastSeen [value] --ruleId [value] --status [value]
1052
-
1053
- ````
1054
-
1055
- - required parameter are:
1056
-
1057
- |parameter | type or values |
1058
- |------------------------|:--------------------------------------------------------------------------|
1059
- |--systemId |Integer - Unique system identifier |
1060
- |--containerId |String - Unique identifier of the container |
1061
- |--containerName |String - Friendly name of the container |
1062
- |--time |Date - Datetime of scan/result. Unix date format |
1063
- |Bench Marks Object (benchmarks)|
1064
- |--benchmark |String - Identifier of the benchmark/grouping of compliance results |
1065
- |benchmarks.results |Object
1066
- |--ruleId |String - Identifier for the compliance result, vulnerability, etc.
1067
- |--status |String - Benchmark result status
1068
- |--lastSeen |Date - Date last seen, Unix date format
1069
-
1070
- - optional parameters are:
1071
-
1072
- |parameter | type or values |
1073
- |----------------------------|:------------------------------------------------------|
1074
- |--podName |String - Name of pod (e.g. Kubernetes pod) |
1075
- |--podIp |String - IP address of pod |
1076
- |--namespace |String - Namespace of container in container orchestration (e.g. Kubernetes namespace)|
1077
- |Tags Object (tags)|
1078
- |--text | String - Text that specifies the tag type |
1079
- |Bench Marks Object (benchmarks)
1080
- |--isBaseline |Boolean - True/false flag for providing results as baseline. If true, all existing compliance results for the provided benchmark within the container will be replaced by results in the current call|
1081
- |benchmarks.results |Object
1082
- |--message |String - Comments for the result
1083
-
1084
- **Note**
1085
- For information at the command line use:
1086
- ```
1087
- $ bundle exec exe/emasser post container help add
1088
- ```
1089
- [top](#post)
1090
-
1091
- ## Usage - PUT
1092
-
1093
- ### ``put controls``
1094
-
1095
- ----
1096
- Business Rules
1097
-
1098
- The following fields are required based on the value of the `implementationStatus` field
1099
-
1100
- |Value |Required Fields
1101
- |------------------------|--------------------------------------------------------
1102
- |Planned or Implemented |controlDesignation, estimatedCompletionDate, responsibleEntities, slcmCriticality, slcmFrequency, slcmMethod, slcmMethod, slcmTracking, slcmComments
1103
- |Not Applicable |naJustification, controlDesignation, responsibleEntities
1104
- |Manually Inherited |controlDesignation, estimatedCompletionDate, responsibleEntities, slcmCriticality, slcmFrequency, slcmMethod, slcmMethod, slcmTracking, slcmComments
1105
-
1106
- Implementation Plan cannot be updated if a Security Control is "Inherited" except for the following fields:
1107
- - Common Control Provider (commonControlProvider)
1108
- - Security Control Designation (controlDesignation)
1109
-
1110
- The following parameters/fields have the following character limitations:
1111
- - Implementation Plan information cannot be saved if the fields below exceed 2,000 character limits:
1112
- - N/A Justification (`naJustification`)
1113
- - Responsible Entities (`responsibleEntities`)
1114
- - Implementation Narrative (`implementationNarrative`)
1115
- - Criticality (`slcmCriticality`)
1116
- - Reporting (`slcmReporting`)
1117
- - Tracking (`slcmTracking`)
1118
- - Vulnerability Summary (`vulnerabilitySummary`)
1119
- - Recommendations (`recommendations`)
1120
- - Implementation Plan information cannot be saved if the fields below exceed 4,000 character limits:
1121
- - SLCM Comments (`slcmComments`)
1122
-
1123
- Implementation Plan information cannot be updated if Security Control does not exist in the system record.
1124
-
1125
- ---
1126
- Updating (PUT) a Control can be accomplished by invoking the following command:
1127
- ````
1128
- $ bundle exec exe/emasser put controls update [PARAMETERS]
1129
- ````
1130
- - required parameter are:
1131
-
1132
- |parameter | type or values |
1133
- |--------------------------|:-------------------------------------------------------------------------|
1134
- |--systemId |Integer - Unique system identifier |
1135
- |--acronym |String - The system acronym(s) e.g "AC-1, AC-2" |
1136
- |--responsibleEntities |String - Description of the responsible entities for the Security Control |
1137
- |--controlDesignation |Possible values: Common, System-Specific, or Hybrid |
1138
- |--estimatedCompletionDate |Date - Unix time format (e.g. 1499990400) |
1139
- |--comments |String - Security control comments |
1140
-
1141
- - optional parameters are:
1142
-
1143
- |parameter | type or values |
1144
- |-----------------------|:----------------------------------------------|
1145
- |--implementationStatus |Possible values: Planned, Implemented, Inherited, Not Applicable, or Manually Inherited|
1146
- |--severity |Possible values: Very Low, Low, Moderate, High, Very High |
1147
- |--vulnerabiltySummary |String - The security control vulnerability summary |
1148
- |--recommendations |String - The security control vulnerability recommendation |
1149
- |--relevanceOfThreat |Possible values: Very Low, Low, Moderate, High, Very High |
1150
- |--likelihood |Possible values: Very Low, Low, Moderate, High, Very High |
1151
- |--impact |Possible values: Very Low, Low, Moderate, High, Very High |
1152
- |--impactDescription |String, - Description of the security control impact |
1153
- |--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
1154
-
1155
- - conditional parameters are:
1156
-
1157
- |parameter | type or values |
1158
- |------------------------|:----------------------------------------------|
1159
- |--commonControlProvider |Possible values: DoD, Component, Enclave|
1160
- |--naJustification |String - Justification for Security Controls deemed Not Applicable to the system |
1161
- |--slcmCriticality |String - Criticality of Security Control regarding SLCM |
1162
- |--slcmFrequency |Possible values - Constantly, Daily, Weekly, Monthly, Quarterly, Semi-Annually, Annually, or Undetermined |
1163
- |--slcmMethod |Possible values: Automated, Semi-Automated, Manual, or Undetermined |
1164
- |--slcmReporting |String - The System-Level Continuous Monitoring reporting |
1165
- |--slcmTracking |String - The System-Level Continuous Monitoring tracking |
1166
- |--slcmComments |String, - Additional comments for Security Control regarding SLCM |
1167
-
1168
- **Note**
1169
- For information at the command line use:
1170
- ```
1171
- $ bundle exec exe/emasser put controls help update
1172
- ```
1173
- [top](#put)
1174
-
1175
- ### ``put poams``
1176
-
1177
- ----
1178
- Business Rules
1179
-
1180
- The following fields are required based on the value of the `status` field
1181
-
1182
- |Value |Required Fields
1183
- |----------------|--------------------------------------------------------
1184
- |Risk Accepted |comments, resources
1185
- |Ongoing |scheduledCompletionDate, resources, milestones (at least 1)
1186
- |Completed |scheduledCompletionDate, comments, resources,
1187
- | |completionDate, milestones (at least 1)
1188
- |Not Applicable |POAM can not be created
1189
-
1190
- If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request.
1191
- - pocOrganization, pocFirstName, pocLastName, pocEmail, pocPhoneNumber
1192
-
1193
- Business logic, the following rules apply when adding POA&Ms
1194
-
1195
- - POA&M Item cannot be saved if associated Security Control or AP is inherited.
1196
- - POA&M Item cannot be created manually if a Security Control or AP is Not Applicable.
1197
- - Completed POA&M Item cannot be saved if Completion Date is in the future.
1198
- - Completed POA&M Item cannot be saved if Completion Date (completionDate) is in the future.
1199
- - Risk Accepted POA&M Item cannot be saved with a Scheduled Completion Date (scheduledCompletionDate) or Milestones
1200
- - POA&M Item with a review status of "Not Approved" cannot be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
1201
- - POA&M Item with a review status of "Approved" can be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
1202
- - POA&M Items that have a status of "Completed" and a status of "Ongoing" cannot be saved without Milestones.
1203
- - POA&M Items that have a status of "Risk Accepted" cannot have milestones.
1204
- - POA&M Items with a review status of "Approved" that have a status of "Completed" and "Ongoing" cannot update Scheduled Completion Date.
1205
- - POA&M Items that have a review status of "Approved" are required to have a Severity Value assigned.
1206
- - POA&M Items cannot be updated if they are included in an active package.
1207
- - Archived POA&M Items cannot be updated.
1208
- - POA&M Items with a status of "Not Applicable" will be updated through test result creation.
1209
- - If the Security Control or Assessment Procedure does not exist in the system we may have to just import POA&M Item at the System Level.
1210
-
1211
-
1212
- The following parameters/fields have the following character limitations:
1213
- - POA&M Item cannot be saved if the Point of Contact fields exceed 100 characters:
1214
- - Office / Organization (pocOrganization)
1215
- - First Name (pocFirstName)
1216
- - Last Name (pocLastName)
1217
- - Email (email)
1218
- - Phone Number (pocPhoneNumber)
1219
- - POA&M Item cannot be saved if Mitigation field (mitigation) exceeds 2,000 characters.
1220
- - POA&M Item cannot be saved if Source Identifying Vulnerability field (sourceIdentVuln) exceeds 2,000 characters.
1221
- - POA&M Item cannot be saved if Comments field (comments) exceeds 2,000 characters
1222
- - POA&M Item cannot be saved if Resource field (resource) exceeds 250 characters.
1223
- - POA&M Items cannot be saved if Milestone Description (description) exceeds 2,000 characters.
1224
-
1225
-
1226
- The following POA&M parameters/fields have the following character limitations:
1227
- - Fields that can not exceed 100 characters:
1228
- - Office / Organization (`pocOrganization`)
1229
- - First Name (`pocFirstName`)
1230
- - Last Name (`pocLastName`)
1231
- - Email (`email`)
1232
- - Phone Number (`pocPhoneNumber`)
1233
- - External Unique ID (`externalUid`)
1234
- - Fields that can not exceed 250 characters:
1235
- - Resource (`resource`)
1236
- - Fields have can not exceed 2000 character:
1237
- - Vulnerability Description (`vulnerabilityDescription`)
1238
- - Source Identifying Vulnerability (`sourceIdentVuln`)
1239
- - Recommendations (`recommendations`)
1240
- - Risk Accepted Comments (`comments`)
1241
- - Milestone Description (`description`)
1242
- - Mitigation Justification (`mitigation`)
1243
-
1244
-
1245
- ---
1246
- Updating (PUT) a POA&M can be accomplished by invoking the following command:
1247
- ````
1248
- $ bundle exec exe/emasser put poams update [PARAMETERS]
1249
- ````
1250
- - required parameter are:
1251
-
1252
- |parameter | type or values |
1253
- |---------------------------|:---------------------------------------------------------------|
1254
- |--systemId |Integer - Unique system identifier |
1255
- |--displayPoamId |Integer - Globally unique identifier for individual POA&M Items |
1256
- |--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable |
1257
- |--vulnerabilityDescription |String - Vulnerability description for the POA&M Item |
1258
- |--sourceIdentVuln |String - Include Source Identifying Vulnerability text |
1259
- |--pocOrganization |String - Organization/Office represented |
1260
- |--resources |String - List of resources used. Character Limit = 250 |
1261
-
1262
- ** If any poc information is provided all POC fields are required. See additional details for POC fields below.
1263
-
1264
- - conditional parameters are:
1265
-
1266
- |parameter | type or values |
1267
- |--------------------------|:-----------------------------------------------------------------------|
1268
- |--milestones |JSON - see milestone format |
1269
- |--pocFirstName |String - First name of POC |
1270
- |--pocLastName |String - Last name of POC |
1271
- |--pocEmail |String - Email address of POC |
1272
- |--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format |
1273
- |--severity |Possible values - Very Low, Low, Moderate, High, Very High |
1274
- |--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format |
1275
- |--completionDate |Date - Field is required for completed POA&M items. Unix time format |
1276
- |--comments |String - Field is required for completed and risk accepted POA&M items |
1277
- |--isActive |Boolean - Used to delete milestones when updating a POA&M |
1278
-
1279
- ** If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request:
1280
- pocFirstName, pocLastName, pocPhoneNumber
1281
-
1282
- Milestone Format:
1283
- - --milestone milestoneId:[value] description:[value] scheduledCompletionDate:[value]
1284
- - If a milestoneId is not provide a new milestone is created
1285
-
1286
- - optional parameters are:
1287
-
1288
- |parameter | type or values |
1289
- |--------------------|:-----------------------------------------------------------------------------------------|
1290
- |--externalUid |String - External unique identifier for use with associating POA&M Items |
1291
- |--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined|
1292
- |--cci |String - CCI associated with the test result |
1293
- |--securityChecks |String - Security Checks that are associated with the POA&M |
1294
- |--rawSeverity |Possible values: I, II, III |
1295
- |--relevanceOfThreat |Possible values: Very Low, Low, Moderate, High, Very High |
1296
- |--likelihood |Possible values: Very Low, Low, Moderate, High, Very High |
1297
- |--impact |Possible values: Very Low, Low, Moderate, High, Very High |
1298
- |--impactDescription |String - Include description of Security Control’s impact |
1299
- |--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
1300
- |--recommendations |String - Include recommendations |
1301
- |--mitigation |String - Include mitigation explanation. 2000 Characters |
1302
-
1303
- **Note**
1304
- For information at the command line use:
1305
- ```
1306
- $ bundle exec exe/emasser put poams help update
1307
- ```
1308
- [top](#put)
1309
-
1310
- ### ``put milestones``
1311
-
1312
- ----
1313
-
1314
- To add (POST) milestones in a system for one or more POA&M items use the following command:
1315
-
1316
- ````
1317
- $ bundle exec exe/emasser put milestones update [PARAMETERS]
1318
- ````
1319
- - required parameter are:
1320
-
1321
- |parameter | type or values |
1322
- |---------------------------|:----------------------------------------------------|
1323
- |--systemId |Integer - Unique system identifier |
1324
- |--poamId |Integer - Unique poam identifier |
1325
- |--milestoneId |Integer - Unique milestone identifier |
1326
- |--description |String - Milestone item description. 2000 Characters |
1327
- |--scheduledCompletionDate |Date - Schedule completion date. Unix date format |
1328
-
1329
-
1330
- **Note**
1331
- For information at the command line use:
1332
- ```
1333
- $ bundle exec exe/emasser put milestones help update
1334
- ```
1335
- [top](#put)
1336
-
1337
- ### ``put artifacts``
1338
-
1339
- ----
1340
- Business Rules
1341
-
1342
- - Artifact cannot be saved if the file does not have the following file extensions:
1343
- - .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mhtml,.html,.htm,.pdf
1344
- - .mdb,.accdb,.ppt,.pptx,.xls,.xlsx,.csv,.log
1345
- - .jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif
1346
- - .zip,.rar,.msg,.vsd,.vsw,.vdx, .z{#}, .ckl,.avi,.vsdx
1347
- - Artifact cannot be saved if File Name (fileName) exceeds 1,000 characters
1348
- - Artifact cannot be saved if Description (description) exceeds 2,000 characters
1349
- - Artifact cannot be saved if Reference Page Number (refPageNumber) exceeds 50 characters
1350
- - Artifact cannot be saved if the file does not have an allowable file extension/type.
1351
- - Artifact version cannot be saved if an Artifact with the same file name already exist in the system.
1352
- - Artifact cannot be saved if the file size exceeds 30MB.
1353
- - Artifact cannot be saved if the Last Review Date is set in the future.
1354
-
1355
- To add (POST) milestones in a system for one or more POA&M items use the following command:
1356
-
1357
- ````
1358
- $ bundle exec exe/emasser put artifacts update [PARAMETERS]
1359
- ````
1360
- - required parameter are:
1361
-
1362
- |parameter | type or values |
1363
- |----------------|:----------------------------------------------------|
1364
- |--systemId |Integer - Unique system identifier |
1365
- |--filename |String - File name should match exactly one file within the provided zip file|
1366
- | |Binary - Application/zip file. Max 30MB per artifact |
1367
- |--isTemplate |Boolean - Indicates whether an artifact is a template|
1368
- |--type* |Possible Values: Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report|
1369
- |--category* |Possible Values: Implementation Guidance, Evidence |
1370
-
1371
- *May also accept custom artifact category values set by system administrators.
1372
-
1373
- - optional parameter are:
1374
-
1375
- |parameter | type or values |
1376
- |-------------------------|:------------------------------------------------------|
1377
- |--description |String - Artifact description. 2000 Characters |
1378
- |--refPageNumber |String - Artifact reference page number. 50 Characters |
1379
- |--ccis |String - CCIs associated with artifact |
1380
- |--controls |String - Control acronym associated with the artifact. NIST SP 800-53 Revision 4 defined|
1381
- |--artifactExpirationDate |Date - Date Artifact expires and requires review. In Unix Date Format|
1382
- |--lastReviewedDate |Date - Date Artifact was last reviewed. In Unix Date Format |
1383
-
1384
-
1385
- **Note**
1386
- For information at the command line use:
1387
- ```
1388
- $ bundle exec exe/emasser put artifacts help update
1389
- ```
1390
- [top](#put)
1391
-
1392
- ## Usage - DELETE
1393
-
1394
- ### ``delete poams``
1395
-
1396
- ----
1397
- Remove one or many poa&m items in a system
1398
-
1399
- To remove (DELETE) one or more POA&M items use the following command:
1400
- ```
1401
- bundle exec exe/emasser delete poams remove --systemId [value] --poamId [value]
1402
- ```
1403
- [top](#delete)
1404
-
1405
- ### ``delete milestones``
1406
-
1407
- ----
1408
- Remove milestones in a system for one or many POA&M items
1409
-
1410
- To delete a milestone the record must be inactive by having the field isActive set to false (isActive=false).
1411
-
1412
- The server returns an empty object upon successfully deleting a milestone.
1413
-
1414
- The last milestone can not be deleted, at-least on must exist.
1415
-
1416
- To remove (DELETE) one or more Milestones in a system use the following command:
1417
- ```
1418
- bundle exec exe/emasser delete milestones remove--systemId [value] --poamId [value] --milestoneId [value]
1419
- ```
1420
- [top](#delete)
1421
-
1422
- ### ``delete artifacts``
1423
-
1424
- ---
1425
- Remove one or many artifacts in a system
1426
-
1427
- Provide single file or a space/comma delimited list of file names to be removed from the system (systemId)
1428
-
1429
- To remove (DELETE) one or more Artifacts from a system use the following command:
1430
- ```
1431
- bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value]
1432
- or
1433
- bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value value...]
1434
- or
1435
- bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value, value...]
1436
- ```
1
+ # emasser CLI Features
2
+
3
+ ## Environment Variables
4
+ To facilitate setting the required environment variables the `emasser `CLI utilized the zero-dependency module to load these variables from a `.env` file.
5
+
6
+ ### Configuring the `.env` File
7
+ An `.env-example` file is provided with the required and optional fields.
8
+
9
+ Modify the `.env_example` as necessary and save it as a `.env` file.
10
+
11
+ Place the file on the path where the `emasser` command is executed.
12
+
13
+ ### Required and Optional Environment Variables
14
+ The following environment variables are required:
15
+ * EMASSER_API_KEY=`<API key>`
16
+ * EMASSER_USER_UID=`<unique identifier for the API Key (EMASSER_API_KEY)`
17
+ * EMASSER_HOST_URL=`<FQDN of the eMASS server>`
18
+ * EMASSER_KEY_FILE_PATH=`<path to your eMASS key in PEM format>`
19
+ * EMASSER_CERT_FILE_PATH=`<path to your eMASS certificate in PEM format>`
20
+ * EMASSER_KEY_FILE_PASSWORD=`<password for the key given in EMASSER_KEY_FILE_PATH>`
21
+
22
+ The following environment variables are optional*:
23
+ * EMASSER_CLIENT_SIDE_VALIDATION=`<client side validation - true or false (default true)>`
24
+ * EMASSER_VERIFY_SSL=`<verify SSL - true or false (default true)>`
25
+ * EMASSER_VERIFY_SSL_HOST=`<verify host SSL - true or false (default true)>`
26
+ * EMASSER_DEBUGGING=`<set debugging - true or false (default false)>`
27
+ * EMASSER_CLI_DISPLAY_NULL=`<display null value fields - true or false (default true)>`
28
+ * EMASSER_POCH_TO_DATETIME=`<convert epoch to data/time value - true or false (default false)>`
29
+
30
+ \* If not provided defaults are used
31
+
32
+ The proper format to set these variables in the `.env` files is as follows:
33
+ ```bash
34
+ export [VARIABLE_NAME]='value'
35
+ ```
36
+ ***NOTE***
37
+ `emasser` requires authentication to an eMASS instance as well as authorization to use the eMASS API. This authentication and authorization is **not** a function of `emasser` and needs to be accomplished with the eMASS instances owner organization. Further information about eMASS credential requirements refer to [Defense Counterintelligence and Security Agency](https://www.dcsa.mil/is/emass/) about eMASS access.
38
+
39
+ ---
40
+ ## Common emasser Endpoint Requests Information
41
+ - To invoke any boolean parameters use --parameterName for TRUE and --no-parameterName for FALSE
42
+ - The eMASS API provides the capability of updating multiple entries within several endpoints, however the `emasser` CLI, in some cases only supports updating one entry at the time.
43
+
44
+ ## Invoking emasser CLI Commands
45
+
46
+ The CLI invoke commands listed in this document shows them when executing from the source code (after a pull from GitHub). Please reference the [`emasser` README](https://mitre.github.io/emasser/) on how to invoke the CLI using other available executables (gem or docker).
47
+
48
+ ## API Endpoints Provided
49
+
50
+ ### GET
51
+ * [/api](#get-test-connection)
52
+ * [/api/system](#get-system)
53
+ * [/api/systems](#get-systems)
54
+ * [/api/systems/{systemId}](#get-system)
55
+ * [/api/system-roles](#get-roles)
56
+ * [/api/system-roles/{roleCategory}](#get-roles)
57
+ * [/api/systems/{systemId}/controls](#get-controls)
58
+ * [/api/systems/{systemId}/test-results](#get-testresults)
59
+ * [/api/systems/{systemId}/poams](#get-poams)
60
+ * [/api/systems/{systemId}/poams/{poamId}](#get-poams)
61
+ * [/api/systems/{systemId}/poams/{poamId}/milestones](#get-milestones)
62
+ * [/api/systems/{systemId}/poams/{poamId}/milestones/{milestoneId})](#get-milestones)
63
+ * [/api/systems/{systemId}/artifacts](#get-artifacts)
64
+ * [/api/systems/{systemId}/artifacts-export](#get-artifacts)
65
+ * [/api/systems/{systemId}/approval/cac](#get-cac)
66
+ * [/api/systems/{systemId}/approval/pac](#get-pac)
67
+ * [/api/cmmc-assessments](#get-cmmc)
68
+ * [/api/workflow-definitions](#get-workflow_definitions)
69
+ * [/api/systems/{systemId}/workflow-instances](#get-workflow_instances)
70
+ * [/api/dashboards/system-status-details](#get-dashboards)
71
+ * [/api/dashboards/system-control-compliance-summary](#get-dashboards)
72
+ * [/api/dashboards/system-security-controls-details](#get-dashboards)
73
+ * [/api/dashboards/system-assessment-procedures-details](#get-dashboards)
74
+ * [/api/dashboards/system-poam-summary](#get-dashboards)
75
+ * [/api/dashboards/system-poam-details](#get-dashboards)
76
+ * [/api/dashboards/system-artifacts-summary](#get-dashboards)
77
+ * [/api/dashboards/system-artifacts-details](#get-dashboards)
78
+ * [/api/dashboards/system-hardware-summary](#get-dashboards)
79
+ * [/api/dashboards/system-hardware-details](#get-dashboards)
80
+ * [/api/dashboards/system-sensor-hardware-summary](#get-dashboards)
81
+ * [/api/dashboards/system-sensor-hardware-details](#get-dashboards)
82
+ * [/api/dashboards/system-software-summary](#get-dashboards)
83
+ * [/api/dashboards/system-software-details](#get-dashboards)
84
+ * [/api/dashboards/system-ports-protocols-summary](#get-dashboards)
85
+ * [/api/dashboards/system-ports-protocols-details](#get-dashboards)
86
+ * [/api/dashboards/system-conmon-integration-status-summary](#get-dashboards)
87
+ * [/api/dashboards/system-associations-details](#get-dashboards)
88
+ * [/api/dashboards/user-system-assignments-details](#get-dashboards)
89
+ * [/api/dashboards/system-privacy-summary](#get-dashboards)
90
+ * [/api/dashboards/va-omb-fisma-saop-summary](#get-dashboards)
91
+ * [/api/dashboards/va-system-aa-summary](#get-dashboards)
92
+ * [/api/dashboards/va-system-a2-summary](#get-dashboards)
93
+ * [/api/dashboards/va-system-pl-109-reporting-summary](#get-dashboards)
94
+ * [/api/dashboards/va-system-fisma-inventory-summary](#get-dashboards)
95
+ * [/api/dashboards/va-system-fisma-inventory-crypto-summary](#get-dashboards)
96
+ * [/api/dashboards/va-system-threat-risks-summary](#get-dashboards)
97
+ * [/api/dashboards/va-system-threat-sources-details](#get-dashboards)
98
+ * [/api/dashboards/va-system-threat-architecture-details](#get-dashboards)
99
+
100
+ ### POST
101
+ * [/api/systems/{systemId}/test-results](#post-test_results)
102
+ * [/api/systems/{systemId}/poam](#post-poams)
103
+ * [/api/systems/{systemId}/poam/{poamId}/milestones](#post-milestones)
104
+ * [/api/systems/{systemId}/artifacts](#post-artifacts)
105
+ * [/api/systems/{systemId}/approval/cac](#post-cac)
106
+ * [/api/systems/{systemId}/approval/pac](#post-pac)
107
+ * [/api/systems/{systemId}/static-code-scans](#post-static_code_scan)
108
+ * [/api/systems/{systemId}/cloud-resource-results](#post-cloud_resource)
109
+ * [/api/systems/{systemId}/container-scan-results](#post-container)
110
+
111
+ ### PUT
112
+ * [/api/systems/{systemId}/controls](#put-controls)
113
+ * [/api/systems/{systemId}/poams](#put-poams)
114
+ * [/api/systems/{systemId}/poams/{poamId}/milestones](#put-milestones)
115
+ * [/api/systems/{systemId}/artifacts](#put-artifacts)
116
+
117
+ ### DELETE
118
+ * [/api/systems/{systemId}/poams](#delete-poams)
119
+ * [/api/systems/{systemId}/poams/{poamId}/milestones](#delete-milestones)
120
+ * [/api/systems/{systemId}/artifacts](#delete-artifacts)
121
+
122
+ ## Endpoints CLI help
123
+
124
+ Each CLI endpoint command has several layers of help.
125
+ - Using `help` after a `get, put, post, or delete` command lists all available endpoint calls. The following command would list all available `GET` endpoints commands.
126
+
127
+ ```bash
128
+ $ bundle exec exe/emasser get help
129
+ Commands:
130
+ emasser get artifacts # Get system Artifacts
131
+ emasser get cac # Get location of one or many controls in...
132
+ emasser get cmmc # Get CMMC assessment information
133
+ emasser get controls # Get system Controls
134
+ emasser get dashboards # Get dashboard information
135
+ emasser get help [COMMAND] # Describe subcommands or one specific su...
136
+ emasser get milestones # Get system Milestones
137
+ emasser get pac # Get status of active workflows in a system
138
+ emasser get poams # Get system Poams
139
+ emasser get roles # Get all system roles or by category Id
140
+ emasser get system # Get a system ID given name/owner, or ge...
141
+ emasser get systems # Get all systems
142
+ emasser get test # Test connection to the configured eMASS...
143
+ emasser get test_results # Get system Test Results
144
+ emasser get workflow_definitions # Get workflow definitions in a site
145
+ emasser get workflow_instances # Get workflow instance by system and/or ...
146
+ ```
147
+ - Preceding any command with `help` provides help for the command. The following command would list all available sub-commands and options for the `get artifacts` endpoint command.
148
+ ```bash
149
+ $ bundle exec exe/emasser get help artifacts
150
+ commands:
151
+ emasser get artifacts export --filename=FILENAME --systemId=N # Get artifa...
152
+ emasser get artifacts forSystem --systemId=N # Get all sy...
153
+ emasser get artifacts help [COMMAND] # Describe s...
154
+ ```
155
+ - Using `help` after any command lists all available options. The following command would list all available options for the `get artifacts export` endpoint command.
156
+ ```bash
157
+ $ bundle exec exe/emasser get artifacts help export
158
+ Usage:
159
+ emasser get artifacts export --filename=FILENAME --systemId=N
160
+
161
+ Options:
162
+ --systemId=N # A numeric value representing the system identification
163
+ --filename=FILENAME # The artifact file name
164
+ [--compress], [--no-compress] # BOOLEAN - true or false.
165
+ ```
166
+ **The same format is applicable for POST, PUT and DELETE requests as well, however there may be additional help content**
167
+
168
+
169
+ ## Usage - GET
170
+
171
+ ### ```get test connection```
172
+ ---
173
+ The Test Connection endpoint provides the ability to verify connection to the web service.
174
+
175
+ $ bundle exec exe/emasser get test connection
176
+
177
+ A return of success from the call indicates that the CLI can reach the configure server URL.
178
+ References [Required Environment Variables](#required-environment-variables) for the necessary environment variables.
179
+
180
+ [top](#api-endpoints-provided)
181
+
182
+ ### ```get system```
183
+
184
+ ---
185
+ The `get system` command is not a sanctioned eMASS endpoint, it makes use of the `get systems` endpoint with added business logic.
186
+
187
+ There are two commands provided by the get system:
188
+
189
+ - The `get system id` - returns system ID's based on the system `name` or `owner`
190
+ - The `get system byId` - returns the system content for parameter system ID
191
+
192
+ ### get system id
193
+ Retrieves a system identification based on the SYSTEM_NAME (name) or SYSTEM_OWNER (systemOwner) fields.
194
+
195
+ To invoke the `get system id` use the following command:
196
+
197
+ $ bundle exec exe/emasser get system id --system_name "system name" --system_owner "system owner"
198
+
199
+ If using a platform that has `awk` installed the following command can be used to return only the system Id:
200
+
201
+ $ bundle exec exe/emasser get system --system_name "system name" --system_owner "system owner" | awk "{ print $1 }"
202
+
203
+
204
+ ### get system byId
205
+ Retrieves the system content for provided identification (ID) number. To invoke the endpoint use the following command:
206
+
207
+ $ bundle exec exe/emasser get system byId
208
+
209
+ - required parameter is:
210
+
211
+ |parameter | type or values |
212
+ |-------------|:----------------------------------|
213
+ |--systemId |Integer - Unique system identifier |
214
+
215
+ - Optional parameters are:
216
+
217
+ |parameter | type or values |
218
+ |------------------------|:----------------------------------------|
219
+ |--includePackage |BOOLEAN - true or false |
220
+ |--policy |Possible values: diacap, rmf, reporting |
221
+
222
+ [top](#api-endpoints-provided)
223
+
224
+ ### ```get systems```
225
+
226
+ ----
227
+ To retrieve controls use the following command:
228
+ - all - Retrieves all available systems
229
+ ```
230
+ $ bundle exec exe/emasser get systems all
231
+ ```
232
+
233
+ - Optional parameters are:
234
+
235
+ |parameter | type or values |
236
+ |------------------------|:----------------------------------------------------------------------------|
237
+ |--coamsId |Cyber Operational Attributes Management System (COAMS) string Id |
238
+ |--ditprId |DoD Information Technology (IT) Portfolio Repository (DITPR) string id |
239
+ |--includeDecommissioned |BOOLEAN - true or false |
240
+ |--includeDitprMetrics |BOOLEAN - true or false |
241
+ |--includePackage |BOOLEAN - true or false |
242
+ |--policy |Possible values: diacap, rmf, reporting |
243
+ |--registrationType |Possible values: assessAndAuthorize, assessOnly, guest, regular, functional, |
244
+ | | cloudServiceProvider, commonControlProvider |
245
+ |--reportsForScorecard |BOOLEAN - true or false |
246
+
247
+ [top](#api-endpoints-provided)
248
+ ### ```get roles```
249
+
250
+ ----
251
+ There are two get endpoints for system roles:
252
+ - all - Retrieves all available roles
253
+ ```
254
+ $ bundle exec exe/emasser get roles all
255
+ ```
256
+ - byCategory - Retrieves roles based on the following required parameter:
257
+ ````
258
+ $ bundle exec exe/emasser get roles byCategory --roleCategory=ROLECATEGORY --role=ROLE
259
+ ````
260
+ - required parameters are:
261
+
262
+ |parameter | type or values |
263
+ |:---------------|:------------------------------------------|
264
+ |--roleCategory |Possible values: PAC, CAC, Other |
265
+ |--role |Possible values: AO, Auditor, Artifact Manager, C&A Team, IAO, ISSO, PM/IAM, SCA, User Rep (View Only), Validator (IV&V)|
266
+
267
+ - optional parameter are:
268
+
269
+ |parameter | type or values |
270
+ |------------------------|:----------------------------------------|
271
+ |--policy |Possible values: diacap, rmf, reporting |
272
+ |--includeDecommissioned |BOOLEAN - true or false |
273
+
274
+ [top](#api-endpoints-provided)
275
+ ### ```get controls```
276
+
277
+ ----
278
+ To retrieve controls use the following command:
279
+
280
+ $ bundle exec exe/emasser get controls forSystem --systemId=SYSTEMID
281
+
282
+ - required parameter is:
283
+
284
+ |parameter | type or values |
285
+ |-------------|:----------------------------------|
286
+ |--systemId |Integer - Unique system identifier |
287
+
288
+ - optional parameter is:
289
+
290
+ |parameter | type or values |
291
+ |-------------|:------------------------------------------|
292
+ |--acronyms |The system acronym(s) e.g "AC-1, AC-2" - if not provided all controls for systemId are returned |
293
+
294
+ [top](#api-endpoints-provided)
295
+ ### ```get test_results```
296
+
297
+ ----
298
+ To retrieve test results use the following command:
299
+
300
+ $ bundle exec exe/emasser get test_results forSystem --systemId=SYSTEMID
301
+
302
+ - required parameter is:
303
+
304
+ |parameter | type or values |
305
+ |-------------|:----------------------------------|
306
+ |--systemId |Integer - Unique system identifier |
307
+
308
+ - optional parameters are:
309
+
310
+ |parameter | type or values |
311
+ |-------------------|:------------------------------------------|
312
+ |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2" |
313
+ |--ccis |String - The system CCIS string numerical value |
314
+ |--latestOnly |BOOLEAN - true or false|
315
+
316
+ [top](#api-endpoints-provided)
317
+ ### ```get poams```
318
+
319
+ ----
320
+ There are two get endpoints for system poams:
321
+ - forSystem - Retrieves all poams for specified system ID
322
+ ````
323
+ $ bundle exec exe/emasser get poams forSystem --systemId=SYSTEMID
324
+ ````
325
+ - required parameter is:
326
+
327
+ |parameter | type or values |
328
+ |-------------|:----------------------------------|
329
+ |--systemId |Integer - Unique system identifier |
330
+
331
+ - optional parameters are:
332
+
333
+ |parameter | type or values |
334
+ |-------------------------------|:----------------------------------------------|
335
+ |--scheduledCompletionDateStart |Date - Unix time format (e.g. 1499644800) |
336
+ |--scheduledCompletionDateEnd |Date - Unix time format (e.g. 1499990400) |
337
+ |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2"|
338
+ |--ccis |String - The system CCIS string numerical value|
339
+ |--systemOnly |BOOLEAN - true or false|
340
+
341
+
342
+ - byPoamId - Retrieves all poams for specified system and poam ID
343
+ ````
344
+ $ bundle exec exe/emasser get poams byPoamId --systemId=SYSTEMID --poamId=POAMID
345
+ ````
346
+ - required parameters are:
347
+
348
+ |parameter | type or values |
349
+ |-------------|:----------------------------------|
350
+ |--systemId |Integer - Unique system identifier |
351
+ |--poamId |Integer - Unique poam identifier |
352
+
353
+ [top](#api-endpoints-provided)
354
+ ### ```get milestones```
355
+
356
+ ----
357
+ There are two get endpoints for system milestones:
358
+ - byPoamId - Retrieves milestone(s) for specified system and poam ID
359
+ ````
360
+ $ bundle exec exe/emasser get milestones byPoamId --systemId=SYSTEMID --poamId=POAMID
361
+ ````
362
+ - required parameters are:
363
+
364
+ |parameter | type or values |
365
+ |-------------|:----------------------------------|
366
+ |--systemId |Integer - Unique system identifier |
367
+ |--poamId |Integer - Unique poam identifier |
368
+
369
+ - optional parameters are:
370
+
371
+ |parameter | type or values |
372
+ |-------------------------------|:----------------------------------------------|
373
+ |--scheduledCompletionDateStart |Date - Unix time format (e.g. 1499644800) |
374
+ |--scheduledCompletionDateEnd |Date - Unix time format (e.g. 1499990400) |
375
+
376
+
377
+ - byMilestoneId, Retrieve milestone(s) for specified system, poam, and milestone ID"
378
+ ````
379
+ $ bundle exec exe/emasser get poams byMilestoneId --systemId=SYSTEMID --poamId=POAMID --milestoneId=MILESTONEID
380
+ ````
381
+ - required parameters are:
382
+
383
+ |parameter | type or values |
384
+ |--------------|:-------------------------------------|
385
+ |--systemId |Integer - Unique system identifier |
386
+ |--poamId |Integer - Unique poam identifier |
387
+ |--milestoneId |Integer - Unique milestone identifier |
388
+
389
+ [top](#api-endpoints-provided)
390
+ ### ```get artifacts```
391
+
392
+ ----
393
+ There are two get endpoints that provides the ability to view existing `Artifacts` in a system:
394
+
395
+ - forSystem - Retrieves one or many artifacts in a system specified system ID
396
+ ````
397
+ $ bundle exec exe/emasser get artifacts forSystem --systemId=SYSTEMID
398
+ ````
399
+ - required parameter is:
400
+
401
+ |parameter | type or values |
402
+ |-------------|:----------------------------------|
403
+ |--systemId |Integer - Unique system identifier |
404
+
405
+ - optional parameters are:
406
+
407
+ |parameter | type or values |
408
+ |-------------------------------|:----------------------------------------------|
409
+ |--filename |The artifact file name |
410
+ |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2"|
411
+ |--ccis |String - The system CCIS string numerical value|
412
+ |--systemOnly |BOOLEAN - true or false|
413
+
414
+
415
+ - export - Retrieves the file artifacts (if compress is true the file binary contents are returned, otherwise the file textual contents are returned.)
416
+ ````
417
+ $ bundle exec exe/emasser get artifacts export --systemId=SYSTEMID
418
+ ````
419
+ - required parameters are:
420
+
421
+ |parameter | type or values |
422
+ |-------------|:----------------------------------|
423
+ |--systemId |Integer - Unique system identifier |
424
+ |--filename |The artifact file name |
425
+
426
+ - optional parameter is:
427
+
428
+ |parameter | type or values |
429
+ |-------------|:----------------------------------|
430
+ |--compress |BOOLEAN - true or false. |
431
+
432
+ [top](#api-endpoints-provided)
433
+ ### ```get cac```
434
+
435
+ ----
436
+ To view one or many Control Approval Chain (CAC) in a system specified system ID use the following command:
437
+ ```
438
+ $ bundle exec exe/emasser get cac controls --systemId=SYSTEMID
439
+ ```
440
+ - required parameter is:
441
+
442
+ |parameter | type or values |
443
+ |-------------|:----------------------------------|
444
+ |--systemId |Integer - Unique system identifier |
445
+
446
+ - optional parameter is:
447
+
448
+ |parameter | type or values |
449
+ |-------------------------------|:----------------------------------------------|
450
+ |--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2"|
451
+
452
+ [top](#api-endpoints-provided)
453
+ ### ```get pac```
454
+
455
+ ----
456
+ To view one or many Package Approval Chain (PAC) in a system specified system ID use the following command:
457
+
458
+ ````
459
+ $ bundle exec exe/emasser get pac package --systemId=SYSTEMID
460
+ ````
461
+ - required parameter is:
462
+
463
+ |parameter | type or values |
464
+ |-------------|:----------------------------------|
465
+ |--systemId |Integer - Unique system identifier |
466
+
467
+ [top](#api-endpoints-provided)
468
+ ### ```get cmmc```
469
+
470
+ ----
471
+ To view Cybersecurity Maturity Model Certification (CMMC) Assessments use the following command:
472
+
473
+ $ bundle exec exe/emasser get workflow_definitions forSite --sinceDate=SINCEDATE
474
+
475
+ - Required parameter is:
476
+
477
+ |parameter | type or values |
478
+ |----------------|:--------------------------------------|
479
+ |--sinceDate |Date - The CMMC date. Unix date format |
480
+
481
+ [top](#api-endpoints-provided)
482
+ ### ```get workflow_definitions```
483
+
484
+ ----
485
+ To view Workflow Definitions use the following command:
486
+
487
+ $ bundle exec exe/emasser get workflow_definitions forSite
488
+
489
+ - Optional parameters are:
490
+
491
+ |parameter | type or values |
492
+ |---------------------|:----------------------------------------------------------------------------|
493
+ |--includeInactive |BOOLEAN - true or false |
494
+ |--registrationType |Possible values: assessAndAuthorize, assessOnly, guest, regular, functional, |
495
+ | | cloudServiceProvider, commonControlProvider |
496
+
497
+ [top](#api-endpoints-provided)
498
+ ### ```get workflow_instances```
499
+
500
+ ----
501
+ There are two get endpoints to view workflow instances:
502
+ - all
503
+ ```
504
+ $ bundle exec exe/emasser get workflow_instances all
505
+ ```
506
+ - Optional parameters are:
507
+
508
+ |parameter | type or values |
509
+ |-------------------|:---------------------------------------------------|
510
+ |--includeComments |BOOLEAN - true or false |
511
+ |--pageIndex |Integer - The page number to query |
512
+ |--sinceDate |Date - The Workflow Instance date. Unix date format |
513
+ |--status |Possible values: active, inactive, all |
514
+
515
+ - byWorkflowInstanceId
516
+ ```
517
+ $ bundle exec exe/emasser get workflow_instances byWorkflowInstanceId --workflowInstanceId=WORKFLOWID
518
+ ```
519
+ - required parameter is:
520
+
521
+ |parameter | type or values |
522
+ |---------------------|:---------------------------------------------|
523
+ |--workflowInstanceId |Integer - Unique workflow instance identifier |
524
+
525
+ [top](#api-endpoints-provided)
526
+ ### ```get dashboards```
527
+
528
+ ----
529
+ The Dashboards endpoints provide the ability to view data contained in dashboard exports. In the eMASS front end, these dashboard exports are generated as Excel exports.
530
+
531
+ All endpoint calls utilize the same parameter values, they are:
532
+ - Required parameter is:
533
+
534
+ |parameter | type or values |
535
+ |--------------|:------------------------------------------------|
536
+ |--orgId |Integer - The organization identification number |
537
+
538
+ - Optional flags (parameters) are:
539
+
540
+ |parameter | type or values |
541
+ |-------------------|:--------------------------------------------------------------|
542
+ |--excludeInherited |BOOLEAN - If no value is specified, includes inherited data |
543
+ |--pageIndex |Integer - The index of the starting page (default first page 0)|
544
+ |--pageSize |Integer - The number of entries per page (default 20000) |
545
+
546
+ Available commands are:
547
+ - Get systems status detail dashboard information
548
+ ```
549
+ $ bundle exec exe/emasser get dashboards status_details [-o, --orgId] <value> [options]
550
+ ```
551
+ - Get systems control compliance summary dashboard information
552
+ ```
553
+ $ bundle exec exe/emasser get dashboards control_compliance_summary [-o, --orgId] <value> [options]
554
+ ```
555
+ - Get systems security control details dashboard information
556
+ ```
557
+ $ bundle exec exe/emasser get dashboards security_control_details [-o, --orgId] <value> [options]
558
+ ```
559
+ - Get systems assessment procedures details dashboard information
560
+ ```
561
+ $ bundle exec exe/emasser get dashboards assessment_procedures_details [-o, --orgId] <value> [options]
562
+ ```
563
+ - Get systems POA&Ms summary dashboard information
564
+ ```
565
+ $ bundle exec exe/emasser get dashboards poam_summary [-o, --orgId] <value> [options]
566
+ ```
567
+ - Get system POA&Ms details dashboard information
568
+ ```
569
+ $ bundle exec exe/emasser get dashboards poam_details [-o, --orgId] <value> [options]
570
+ ```
571
+ - Get artifacts summary dashboard information
572
+ ```
573
+ $ bundle exec exe/emasser get dashboards artifacts_summary [-o, --orgId] <value> [options]
574
+ ```
575
+ - Get artifacts details dashboard information
576
+ ```
577
+ $ bundle exec exe/emasser get dashboards artifacts_details [-o, --orgId] <value> [options]
578
+ ```
579
+ - Get system hardware summary dashboard information
580
+ ```
581
+ $ bundle exec exe/emasser get dashboards hardware_summary [-o, --orgId] <value> [options]
582
+ ```
583
+ - Get system hardware details dashboard information
584
+ ```
585
+ $ bundle exec exe/emasser get dashboards hardware_details [-o, --orgId] <value> [options]
586
+ ```
587
+ - Get sensor hardware summary dashboard information
588
+ ```
589
+ $ bundle exec exe/emasser get dashboards sensor_hardware_summary [-o, --orgId] <value> [options]
590
+ ```
591
+ - Get sensor hardware details dashboard information
592
+ ```
593
+ $ bundle exec exe/emasser get dashboards sensor_hardware_details [-o, --orgId] <value> [options]
594
+ ```
595
+ - Get software baseline summary dashboard information
596
+ ```
597
+ $ bundle exec exe/emasser get dashboards software_summary [-o, --orgId] <value> [options]
598
+ ```
599
+ - Get software baseline details dashboard information
600
+ ```
601
+ $ bundle exec exe/emasser get dashboards software_details [-o, --orgId] <value> [options]
602
+ ```
603
+ - Get ports and protocols summary dashboard information
604
+ ```
605
+ $ bundle exec exe/emasser get dashboards ports_protocols_summary [-o, --orgId] <value> [options]
606
+ ```
607
+ - Get ports and protocols details dashboard information
608
+ ```
609
+ $ bundle exec exe/emasser get dashboards ports_protocols_details [-o, --orgId] <value> [options]
610
+ ```
611
+ - Get CONMON integration status summary dashboard information
612
+ ```
613
+ $ bundle exec exe/emasser get dashboards integration_status_summary [-o, --orgId] <value> [options]
614
+ ```
615
+ - Get system associations details dashboard information
616
+ ```
617
+ $ bundle exec exe/emasser get dashboards associations_details [-o, --orgId] <value> [options]
618
+ ```
619
+ - Get user system assignments details dashboard information
620
+ ```
621
+ $ bundle exec exe/emasser get dashboards assignments_details [-o, --orgId] <value> [options]
622
+ ```
623
+ - Get user system privacy summary dashboard information
624
+ ```
625
+ $ bundle exec exe/emasser get dashboards privacy_summary [-o, --orgId] <value> [options]
626
+ ```
627
+ - Get VA OMB-FISMA SAOP summary dashboard information
628
+ ```
629
+ $ bundle exec exe/emasser get dashboards fisma_saop_summary [-o, --orgId] <value> [options]
630
+ ```
631
+ - Get VA system A&A summary dashboard information
632
+ ```
633
+ $ bundle exec exe/emasser get dashboards va_aa_summary [-o, --orgId] <value> [options]
634
+ ```
635
+ - Get VA system A2.0 summary dashboard information
636
+ ```
637
+ $ bundle exec exe/emasser get dashboards va_a2_summary [-o, --orgId] <value> [options]
638
+ ```
639
+ - Get VA System P.L. 109 reporting summary dashboard information
640
+ ```
641
+ $ bundle exec exe/emasser get dashboards va_pl_109_summary [-o, --orgId] <value> [options]
642
+ ```
643
+ - Get VA system FISMA inventory summary dashboard information
644
+ ```
645
+ $ bundle exec exe/emasser get dashboards fisma_inventory_summary [-o, --orgId] <value> [options]
646
+ ```
647
+ - Get VA system FISMA inventory summary dashboard information
648
+ ```
649
+ $ bundle exec exe/emasser get dashboards fisma_inventory_crypto_summary [-o, --orgId] <value> [options]
650
+ ```
651
+ - Get VA threat risk summary dashboard information
652
+ ```
653
+ $ bundle exec exe/emasser get dashboards va_threat_risk_summary [-o, --orgId] <value> [options]
654
+ ```
655
+ - Get VA threat source details dashboard information
656
+ ```
657
+ $ bundle exec exe/emasser get dashboards va_threat_source_details [-o, --orgId] <value> [options]
658
+ ```
659
+ - Get VA threat architecture details dashboard information
660
+ ```
661
+ $ bundle exec exe/emasser get dashboards va_threat_architecture_details [-o, --orgId] <value> [options]
662
+ ```
663
+ [top](#api-endpoints-provided)
664
+
665
+ ## Usage - POST
666
+
667
+ ### ``post test_results``
668
+ ---
669
+ Test Result add (POST) endpoint API business rules.
670
+
671
+ |Business Rule | Parameter/Field |
672
+ |---------------------------------------------------------------------|:-----------------|
673
+ | Tests Results cannot be saved if the "Test Date" is in the future. | `testDate` |
674
+ | Test Results cannot be saved if a Security Control is "Inherited" in the system record. | `description` |
675
+ | Test Results cannot be saved if an Assessment Procedure is "Inherited" in the system record. | `description` |
676
+ | Test Results cannot be saved if the AP does not exist in the system. | `description` |
677
+ | Test Results cannot be saved if the control is marked "Not Applicable" by an Overlay. | `description` |
678
+ | Test Results cannot be saved if the control is required to be assessed as "Applicable" by an Overlay.| `description` |
679
+ | Test Results cannot be saved if the Tests Results entered is greater than 4000 characters.|`description`|
680
+ | Test Results cannot be saved if the following fields are missing data: | `complianceStatus`, `testDate`, `testedBy`, `description`|
681
+ | Test results cannot be saved if there is more than one test result per CCI |`cci`|
682
+
683
+ ---
684
+ To add (POST) test results use the following command:
685
+
686
+ ````
687
+ $ bundle exec exe/emasser post test_results add --systemId [value] --cci [value] --testedBy [value] --testDate [value] --description [value] --complianceStatus [value]
688
+ ````
689
+ Note: If no POA&Ms or AP exist for the control (system), you will get this response:
690
+ "You have entered a Non-Compliant Test Result. You must create a POA&M Item for this Control and/or AP if one does not already exist."
691
+
692
+ - required parameter are:
693
+
694
+ |parameter | type or values |
695
+ |-------------------|:------------------------------------------------------------|
696
+ |--systemId |Integer - Unique system identifier |
697
+ |--cci |String - CCI associated with the test result. e.g "00221" |
698
+ |--testedBy |String - Last Name, First Name. 100 Characters. |
699
+ |--testDate |Date - Unix time format (e.g. 1499990400) |
700
+ |--description |String - Include description of test result. 4000 Characters |
701
+ |--complianceStatus |Possible values: Compliant, Non-Compliant, Not Applicable |
702
+
703
+ **Note**
704
+ For information at the command line use:
705
+ ```
706
+ $ bundle exec exe/emasser post test_results help add
707
+ ```
708
+ [top](#post)
709
+
710
+ ### ``post poams``
711
+ ---
712
+ Plan of Action and Milestones (POA&M) add (POST) endpoint API business rules.
713
+
714
+ The following fields are required based on the contents of the status field
715
+
716
+ |status |Required Fields
717
+ |----------------|--------------------------------------------------------
718
+ |Risk Accepted |comments
719
+ |Ongoing |scheduledCompletionDate, milestones (at least 1)
720
+ |Completed |scheduledCompletionDate, comments, completionDate, milestones (at least 1)
721
+ |Not Applicable |POAM can not be created
722
+
723
+ If a POC email is supplied, the application will attempt to locate a user
724
+ already registered within the application and pre-populate any information
725
+ not explicitly supplied in the request. If no such user is found, these
726
+ fields are required within the request.
727
+ - pocOrganization, pocFirstName, pocLastName, pocEmail, pocPhoneNumber
728
+
729
+ Business logic, the following rules apply when adding POA&Ms
730
+
731
+ - POA&M Items cannot be saved if associated Security Control or AP is inherited.
732
+ - POA&M Items cannot be created manually if a Security Control or AP is Not Applicable.
733
+ - Completed POA&M Item cannot be saved if Completion Date is in the future.
734
+ - Completed POA&M Item cannot be saved if Completion Date (completionDate) is in the future.
735
+ - Risk Accepted POA&M Item cannot be saved with a Scheduled Completion Date or Milestones
736
+ - POA&M Items with a review status of "Not Approved" cannot be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
737
+ - POA&M Items with a review status of "Approved" can be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
738
+ - POA&M Items that have a status of "Completed" and a status of "Ongoing" cannot be saved without Milestones.
739
+ - POA&M Items that have a status of "Risk Accepted" cannot have milestones.
740
+ - POA&M Items with a review status of "Approved" that have a status of "Completed" and "Ongoing" cannot update Scheduled Completion Date.
741
+ - POA&M Items that have a review status of "Approved" are required to have a Severity Value assigned.
742
+ - POA&M Items cannot be updated if they are included in an active package.
743
+ - Archived POA&M Items cannot be updated.
744
+ - POA&M Items with a status of "Not Applicable" will be updated through test result creation.
745
+ - If the Security Control or Assessment Procedure does not exist in the system we may have to just import POA&M Item at the System Level.
746
+
747
+
748
+ The following POA&M parameters/fields have the following character limitations:
749
+ - Fields that can not exceed 100 characters:
750
+ - Office / Organization (`pocOrganization`)
751
+ - First Name (`pocFirstName`)
752
+ - Last Name (`pocLastName`)
753
+ - Email (`email`)
754
+ - Phone Number (`pocPhoneNumber`)
755
+ - External Unique ID (`externalUid`)
756
+ - Fields that can not exceed 250 characters:
757
+ - Resource (`resource`)
758
+ - Fields have can not exceed 2000 character:
759
+ - Vulnerability Description (`vulnerabilityDescription`)
760
+ - Source Identifying Vulnerability (`sourceIdentVuln`)
761
+ - Recommendations (`recommendations`)
762
+ - Risk Accepted Comments (`comments`)
763
+ - Milestone Description (`description`)
764
+ - Mitigation Justification (`mitigation`)
765
+
766
+ To add (POST) POA&Ms use the following command:
767
+ ```
768
+ $ bundle exec exe/emasser post poams add --systemId [value] --status [value] --vulnerabilityDescription [value] --sourceIdentVuln [value] --pocOrganization [value] --resources [value]
769
+ ```
770
+ **Notes:**
771
+ - The above listed parameters/fields are the minimal required.
772
+ - Based on the value for the status (--status) parameter additional fields are required
773
+ - Refer to instructions listed above for conditional and optional fields requirements.
774
+ - When a milestone is required the format is:
775
+ - --milestone description:[value] scheduledCompletionDate:[value]
776
+
777
+ **If a milestone Id is provided (--milestone milestoneId:[value]) the POA&M with the provided milestone Id is updated and the new POA&M milestones is set to null.**
778
+
779
+ ---
780
+ Client API parameters/fields (required, conditional, and optional).
781
+ - required parameter are:
782
+
783
+ |parameter | type or values |
784
+ |---------------------------|:---------------------------------------------------------------|
785
+ |--systemId |Integer - Unique system identifier |
786
+ |--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable |
787
+ |--vulnerabilityDescription |String - Vulnerability description for the POA&M Item |
788
+ |--sourceIdentVuln |String - Include Source Identifying Vulnerability text |
789
+ |--pocOrganization |String - Organization/Office represented |
790
+ |--resources |String - List of resources used. Character Limit = 250 |
791
+
792
+ ** If any poc information is provided all POC fields are required. See additional details for POC fields below.
793
+
794
+ - conditional parameters are:
795
+
796
+ |parameter | type or values |
797
+ |--------------------------|:------------------------------------------------------------------------|
798
+ |--milestones |JSON - see milestone format |
799
+ |--pocFirstName |String - First name of POC |
800
+ |--pocLastName |String - Last name of POC |
801
+ |--pocEmail |String - Email address of POC |
802
+ |--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format |
803
+ |--severity |Possible values - Very Low, Low, Moderate, High, Very High |
804
+ |--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format |
805
+ |--completionDate |Date - Field is required for completed POA&M items. Unix time format |
806
+ |--comments |String - Field is required for completed and risk accepted POA&M items. |
807
+
808
+ ** If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request:
809
+ pocFirstName, pocLastName, pocPhoneNumber
810
+
811
+ Milestone Format:
812
+ - --milestone description:[value] scheduledCompletionDate:[value]
813
+
814
+ - optional parameters are:
815
+
816
+ |parameter | type or values |
817
+ |--------------------|:-----------------------------------------------------------------------------------------|
818
+ |--externalUid |String - External unique identifier for use with associating POA&M Items |
819
+ |--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined|
820
+ |--cci |String - CCI associated with the test result |
821
+ |--securityChecks |String - Security Checks that are associated with the POA&M |
822
+ |--rawSeverity |Possible values: I, II, III |
823
+ |--relevanceOfThreat |Possible values: Very Low, Low, Moderate, High, Very High |
824
+ |--likelihood |Possible values: Very Low, Low, Moderate, High, Very High |
825
+ |--impact |Possible values: Very Low, Low, Moderate, High, Very High |
826
+ |--impactDescription |String - Include description of Security Control’s impact |
827
+ |--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
828
+ |--recommendations |String - Include recommendations |
829
+ |--mitigation |String - Include mitigation explanation |
830
+
831
+
832
+ **Note**
833
+ For information at the command line use:
834
+ ```
835
+ $ bundle exec exe/emasser post poams help add
836
+ ```
837
+ [top](#post)
838
+
839
+ ### ``post milestones``
840
+ ---
841
+ To add (POST) milestones in a system for one or more POA&M items use the following command:
842
+
843
+ ````
844
+ $ bundle exec exe/emasser post milestones add --systemId [value] --poamId [value] --description [value] --scheduledCompletionDate [value]
845
+ ````
846
+ - required parameter are:
847
+
848
+ |parameter | type or values |
849
+ |---------------------------|:----------------------------------------------------|
850
+ |--systemId |Integer - Unique system identifier |
851
+ |--poamId |Integer - Unique item identifier |
852
+ |--description |String - Milestone item description. 2000 Characters |
853
+ |--scheduledCompletionDate |Date - Schedule completion date. Unix date format |
854
+
855
+
856
+ **Note**
857
+ For information at the command line use:
858
+ ```
859
+ $ bundle exec exe/emasser post milestones help add
860
+ ```
861
+ [top](#post)
862
+
863
+ ### ``post artifacts``
864
+ ---
865
+ The add (POST) artifacts endpoint accepts a single binary file with file extension.zip only. The command line (CI) reads the files provided and zips them before sending to eMASS.
866
+
867
+ ```
868
+ If no artifact is matched via filename to the application, a new artifact will be created with the following default values. Any values not specified below will be blank.
869
+ - isTemplate: false
870
+ - type: other
871
+ - category: evidence
872
+ ```
873
+
874
+ Business Rules:
875
+ - Artifact cannot be saved if the file does not have the following file extensions:
876
+ - .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mhtml,.html,.htm,.pdf
877
+ - .mdb,.accdb,.ppt,.pptx,.xls,.xlsx,.csv,.log
878
+ - .jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif
879
+ - .zip,.rar,.msg,.vsd,.vsw,.vdx, .z{#}, .ckl,.avi,.vsdx
880
+ - Artifact cannot be saved if File Name (fileName) exceeds 1,000 characters
881
+ - Artifact cannot be saved if Description (description) exceeds 2,000 characters
882
+ - Artifact cannot be saved if Reference Page Number (refPageNumber) exceeds 50 characters
883
+ - Artifact version cannot be saved if an Artifact with the same file name already exist in the system.
884
+ - Artifact cannot be saved if the file size exceeds 30MB.
885
+ - Artifact cannot be saved if the Last Review Date is set in the future.
886
+ ---
887
+ To add (POST) artifacts use the following command:
888
+
889
+ ```
890
+ $ bundle exec exe/emasser post artifacts upload --systemId [value] [--isTemplate or --no-isTemplate] --type [value] --category [value] --files [value...value]
891
+ ```
892
+
893
+ - required parameter are:
894
+
895
+ |parameter | type or values |
896
+ |----------------|:----------------------------------------------------|
897
+ |--systemId |Integer - Unique system identifier |
898
+ |--isTemplate |Boolean - Indicates whether an artifact is a template|
899
+ |--type |Possible Values: Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report|
900
+ |--category |Possible Values: Implementation Guidance, Evidence |
901
+ |--files |String - File names (to include path) to be uploaded into eMASS as artifacts |
902
+
903
+ - optional parameter are:
904
+
905
+ |parameter | type or values |
906
+ |-------------------------|:------------------------------------------------------|
907
+ |--description |String - Artifact description. 2000 Characters |
908
+ |--refPageNumber |String - Artifact reference page number. 50 Characters |
909
+ |--ccis |String - CCIs associated with artifact |
910
+ |--controls |String - Control acronym associated with the artifact. NIST SP 800-53 Revision 4 defined|
911
+ |--artifactExpirationDate |Date - Date Artifact expires and requires review. In Unix Date Format|
912
+ |--lastReviewedDate |Date - Date Artifact was last reviewed. In Unix Date Format |
913
+
914
+
915
+ **Note**
916
+ For information at the command line use:
917
+ ```
918
+ $ bundle exec exe/emasser post artifacts help upload
919
+ ```
920
+ [top](#post)
921
+
922
+ ### ``post cac``
923
+ ----
924
+ Submit control to second role of CAC
925
+
926
+ Business Rule
927
+ - Comments are not required at the first role of the CAC but are required at the second role of the CAC. Comments cannot exceed 10,000 characters.
928
+
929
+ To add (POST) test CAC use the following command:
930
+
931
+ ````
932
+ $ bundle exec exe/emasser post pac add --systemId [value] --controlAcronym [value] --comments [value]
933
+ ````
934
+ - required parameter are:
935
+
936
+ |parameter | type or values |
937
+ |-------------------|:------------------------------------------------------------|
938
+ |--systemId |Integer - Unique system identifier |
939
+ |--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined |
940
+
941
+ - conditional parameter is:
942
+
943
+ |parameter | type or values |
944
+ |-------------------|:-------------------------------------------|
945
+ |--comments |String -The control approval chain comments |
946
+
947
+ **Note**
948
+ For information at the command line use:
949
+ ```
950
+ $ bundle exec exe/emasser post cac help add
951
+ ```
952
+ [top](#post)
953
+
954
+ ### ``post pac``
955
+ ----
956
+ Submit control to second role of CAC
957
+
958
+ To add (POST) test PAC use the following command:
959
+
960
+ ````
961
+ $ bundle exec exe/emasser post pac add --systemId [value] --workflow [value] --name [value] --comments [value]
962
+ ````
963
+ - required parameter are:
964
+
965
+ |parameter | type or values |
966
+ |--------------|:--------------------------------------------------------------------------|
967
+ |--systemId |Integer - Unique system identifier |
968
+ |--workflow |Possible Values: Assess and Authorize, Assess Only, Security Plan Approval |
969
+ |--name |String - Package name. 100 Characters |
970
+ |--comments |String - Comments submitted upon initiation of the indicated workflow, 4,000 character|
971
+
972
+ **Note**
973
+ For information at the command line use:
974
+ ```
975
+ $ bundle exec exe/emasser post pac help add
976
+ ```
977
+ [top](#post)
978
+
979
+ ### ``post static_code_scan``
980
+ ----
981
+ To add (POST) static code scans use the following command:
982
+
983
+ ````
984
+ $ bundle exec exe/emasser post scan_findings add --systemId [value] --applicationName [value] --version [value] --codeCheckName [value] --scanDate [value] --cweId [value]
985
+ ````
986
+ - required parameter are:
987
+
988
+ |parameter | type or values |
989
+ |-------------------|:-----------------------------------------------------------|
990
+ |--systemId |Integer - Unique system identifier |
991
+ |--applicationName |String - Name of the software application that was assessed |
992
+ |--version |String - The version of the application |
993
+ |--codeCheckName |Strings - Name of the software vulnerability or weakness |
994
+ |--scanDate |Date - The findings scan date - Unix time format |
995
+ |--cweId |String - The Common Weakness Enumerator (CWE) identifier |
996
+
997
+ - optional parameters are:
998
+
999
+ |parameter | type or values |
1000
+ |-------------------|:------------------------------------------------------|
1001
+ |--rawSeverity* |Possible Values: Low, Medium, Moderate, High, Critical |
1002
+ |--count |Integer - Number of instances observed for a specified |
1003
+
1004
+ *rawSeverity: In eMASS, values of "Critical" will appear as "Very High", and values of "Medium" will appear as "Moderate". Any values not listed as options in the list above will map to "Unknown" and appear as blank values.
1005
+
1006
+ To clear (POST) static code scans use the following command:
1007
+
1008
+ ````
1009
+ $ bundle exec exe/emasser post scan_findings clear --systemId [value] --applicationName [value] --version [value] --clearFindings
1010
+ ````
1011
+ - required parameter are:
1012
+
1013
+ |parameter | type or values |
1014
+ |-------------------|:-----------------------------------------------------------|
1015
+ |--systemId |Integer - Unique system identifier |
1016
+ |--applicationName |String - Name of the software application that was assessed |
1017
+ |--clearFindings* |Boolean - To clear an application's findings set it to true |
1018
+
1019
+ *The clearFindings field is an optional field, but required with a value of "True" to clear out all application findings for a single application/version pairing.
1020
+
1021
+ **Note**
1022
+ For information at the command line use:
1023
+ ```
1024
+ $ bundle exec exe/emasser post scan_findings help add
1025
+ ```
1026
+ [top](#post)
1027
+
1028
+ ### ```post cloud_resource```
1029
+ ---
1030
+
1031
+ The following Cloud Resource parameters/fields have the following character limitations:
1032
+ - Fields that can not exceed 50 characters:
1033
+ - Policy Deployment Version (`policyDeploymentVersion`)
1034
+ - Fields that can not exceed 100 characters:
1035
+ - Assessment Procedure (`assessmentProcedure`)
1036
+ - Security Control Acronym (`control`)
1037
+ - CSP Account ID (`cspAccountId`)
1038
+ - CSP Region (`cspRegion`)
1039
+ - Email of POC (`initiatedBy`)
1040
+ - Cloud Service Provider (`provider`)
1041
+ - Type of Cloud resource (`resourceType`)
1042
+ - Fields that can not exceed 500 characters:
1043
+ - CSP/Resource’s Policy ID (`cspPolicyDefinitionId`)
1044
+ - Policy Deployment Name (`policyDeploymentName`)
1045
+ - Policy Compliance ID (`resourceId`)
1046
+ - Cloud Resource Name (`resourceName`)
1047
+ - Fields that can not exceed 1000 characters:
1048
+ - Reason for Compliance (`complianceReason`)
1049
+ - Fields that can not exceed 2000 characters:
1050
+ - Policy Short Title (`policyDefinitionTitle`)
1051
+
1052
+ To add a cloud resource and their scan results in the assets module for a system use the following command:
1053
+ ````
1054
+ $ bundle exec exe/emasser post cloud_resource add --systemId [value] --provider [value] --resourceId [value] --resourceName [value] --resourceType [value] --cspPolicyDefinitionId [value] --isCompliant or --is-not-Compliant --policyDefinitionTitle [value] --test [value]
1055
+ ````
1056
+ - required parameter are:
1057
+
1058
+ |parameter | type or values |
1059
+ |------------------------|:--------------------------------------------------------------------------|
1060
+ |--systemId |Integer - Unique system identifier |
1061
+ |--provider |string - Cloud service provider name |
1062
+ |--resourceId |String - Unique identifier/resource namespace for policy compliance result |
1063
+ |--resourceName |String - Friendly name of Cloud resource |
1064
+ |--resourceType |String - Type of Cloud resource |
1065
+ |--cspPolicyDefinitionId |String - Unique identifier/compliance namespace for CSP/Resource\'s policy definition/compliance check|
1066
+ |--isCompliant | Boolean - Compliance status of the policy for the identified cloud resource |
1067
+ |--policyDefinitionTitle | String - Friendly policy/compliance check title. Recommend short title |
1068
+
1069
+ - optional parameters are:
1070
+
1071
+ |parameter | type or values |
1072
+ |-------------------|:------------------------------------------------------|
1073
+ |--initiatedBy |String - Person initiating the process email address |
1074
+ |--cspAccountId |String - System/owner\'s CSP account ID/number |
1075
+ |--cspRegion |String - CSP region of system |
1076
+ |--isBaseline |Boolean - Flag that indicates in results is a baseline |
1077
+ |Tags Object (tags)|
1078
+ |--text | String - Text that specifies the tag type |
1079
+ |Compliance Results Array Objects (complianceResults)|
1080
+ |--assessmentProcedure |String - Comma separated correlation to Assessment Procedure (i.e. CCI number for DoD Control Set) |
1081
+ |--complianceCheckTimestamp |Date - The compliance check date - Unix time format |
1082
+ |--complianceReason |String - Reason/comments for compliance result |
1083
+ |--control |String - Comma separated correlation to Security Control (e.g. exact NIST Control acronym) |
1084
+ |--policyDeploymentName |String - Name of policy deployment |
1085
+ |--policyDeploymentVersion |String - Version of policy deployment |
1086
+ |--severity |Possible Values: Low, Medium, High, Critical |
1087
+
1088
+
1089
+ **Note**
1090
+ For information at the command line use:
1091
+ ```
1092
+ $ bundle exec exe/emasser post cloud_resource help add
1093
+ ```
1094
+
1095
+ [top](#post)
1096
+
1097
+
1098
+ ### ```post container```
1099
+ ---
1100
+ The following Container parameters/fields have the following character limitations:
1101
+ - Fields that can not exceed 100 characters:
1102
+ - STIG Benchmark ID (`benchmark`)
1103
+ - Container Namespace (`namespace`)
1104
+ - Kubernetes assigned IP (`podIp`)
1105
+ - Kubernetes Pod Name) (`podName`)
1106
+ - Fields that can not exceed 500 characters:
1107
+ - Container ID (`containerId`)
1108
+ - Friendly Container Name (`containerName`)
1109
+ - Fields that can not exceed 1000 characters:
1110
+ - Result Comments (`message`)
1111
+
1112
+
1113
+
1114
+ To add containers and their scan results in the assets module for a system use the following command:
1115
+ ````
1116
+ $ bundle exec ruby exe/emasser post container add --systemId [value] --containerId [value] --containerName [value] --time [value] --benchmark [value] --lastSeen [value] --ruleId [value] --status [value]
1117
+
1118
+ ````
1119
+
1120
+ - required parameter are:
1121
+
1122
+ |parameter | type or values |
1123
+ |------------------------|:--------------------------------------------------------------------------|
1124
+ |--systemId |Integer - Unique system identifier |
1125
+ |--containerId |String - Unique identifier of the container |
1126
+ |--containerName |String - Friendly name of the container |
1127
+ |--time |Date - Datetime of scan/result. Unix date format |
1128
+ |Bench Marks Object (benchmarks)|
1129
+ |--benchmark |String - Identifier of the benchmark/grouping of compliance results |
1130
+ |benchmarks.results |Object
1131
+ |--ruleId |String - Identifier for the compliance result, vulnerability, etc.
1132
+ |--status |String - Benchmark result status
1133
+ |--lastSeen |Date - Date last seen, Unix date format
1134
+
1135
+ - optional parameters are:
1136
+
1137
+ |parameter | type or values |
1138
+ |----------------------------|:------------------------------------------------------|
1139
+ |--podName |String - Name of pod (e.g. Kubernetes pod) |
1140
+ |--podIp |String - IP address of pod |
1141
+ |--namespace |String - Namespace of container in container orchestration (e.g. Kubernetes namespace)|
1142
+ |Tags Object (tags)|
1143
+ |--text | String - Text that specifies the tag type |
1144
+ |Bench Marks Object (benchmarks)
1145
+ |--isBaseline |Boolean - True/false flag for providing results as baseline. If true, all existing compliance results for the provided benchmark within the container will be replaced by results in the current call|
1146
+ |benchmarks.results |Object
1147
+ |--message |String - Comments for the result
1148
+
1149
+ **Note**
1150
+ For information at the command line use:
1151
+ ```
1152
+ $ bundle exec exe/emasser post container help add
1153
+ ```
1154
+ [top](#post)
1155
+
1156
+ ## Usage - PUT
1157
+
1158
+ ### ``put controls``
1159
+
1160
+ ----
1161
+ Business Rules
1162
+
1163
+ The following fields are required based on the value of the `implementationStatus` field
1164
+
1165
+ |Value |Required Fields
1166
+ |------------------------|--------------------------------------------------------
1167
+ |Planned or Implemented |controlDesignation, estimatedCompletionDate, responsibleEntities, slcmCriticality, slcmFrequency, slcmMethod, slcmMethod, slcmTracking, slcmComments
1168
+ |Not Applicable |naJustification, controlDesignation, responsibleEntities
1169
+ |Manually Inherited |controlDesignation, estimatedCompletionDate, responsibleEntities, slcmCriticality, slcmFrequency, slcmMethod, slcmMethod, slcmTracking, slcmComments
1170
+
1171
+ Implementation Plan cannot be updated if a Security Control is "Inherited" except for the following fields:
1172
+ - Common Control Provider (commonControlProvider)
1173
+ - Security Control Designation (controlDesignation)
1174
+
1175
+ The following parameters/fields have the following character limitations:
1176
+ - Implementation Plan information cannot be saved if the fields below exceed 2,000 character limits:
1177
+ - N/A Justification (`naJustification`)
1178
+ - Responsible Entities (`responsibleEntities`)
1179
+ - Implementation Narrative (`implementationNarrative`)
1180
+ - Criticality (`slcmCriticality`)
1181
+ - Reporting (`slcmReporting`)
1182
+ - Tracking (`slcmTracking`)
1183
+ - Vulnerability Summary (`vulnerabilitySummary`)
1184
+ - Recommendations (`recommendations`)
1185
+ - Implementation Plan information cannot be saved if the fields below exceed 4,000 character limits:
1186
+ - SLCM Comments (`slcmComments`)
1187
+
1188
+ Implementation Plan information cannot be updated if Security Control does not exist in the system record.
1189
+
1190
+ ---
1191
+ Updating (PUT) a Control can be accomplished by invoking the following command:
1192
+ ````
1193
+ $ bundle exec exe/emasser put controls update [PARAMETERS]
1194
+ ````
1195
+ - required parameter are:
1196
+
1197
+ |parameter | type or values |
1198
+ |--------------------------|:-------------------------------------------------------------------------|
1199
+ |--systemId |Integer - Unique system identifier |
1200
+ |--acronym |String - The system acronym(s) e.g "AC-1, AC-2" |
1201
+ |--responsibleEntities |String - Description of the responsible entities for the Security Control |
1202
+ |--controlDesignation |Possible values: Common, System-Specific, or Hybrid |
1203
+ |--estimatedCompletionDate |Date - Unix time format (e.g. 1499990400) |
1204
+ |--comments |String - Security control comments |
1205
+
1206
+ - optional parameters are:
1207
+
1208
+ |parameter | type or values |
1209
+ |-----------------------|:----------------------------------------------|
1210
+ |--implementationStatus |Possible values: Planned, Implemented, Inherited, Not Applicable, or Manually Inherited|
1211
+ |--severity |Possible values: Very Low, Low, Moderate, High, Very High |
1212
+ |--vulnerabiltySummary |String - The security control vulnerability summary |
1213
+ |--recommendations |String - The security control vulnerability recommendation |
1214
+ |--relevanceOfThreat |Possible values: Very Low, Low, Moderate, High, Very High |
1215
+ |--likelihood |Possible values: Very Low, Low, Moderate, High, Very High |
1216
+ |--impact |Possible values: Very Low, Low, Moderate, High, Very High |
1217
+ |--impactDescription |String, - Description of the security control impact |
1218
+ |--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
1219
+
1220
+ - conditional parameters are:
1221
+
1222
+ |parameter | type or values |
1223
+ |------------------------|:----------------------------------------------|
1224
+ |--commonControlProvider |Possible values: DoD, Component, Enclave|
1225
+ |--naJustification |String - Justification for Security Controls deemed Not Applicable to the system |
1226
+ |--slcmCriticality |String - Criticality of Security Control regarding SLCM |
1227
+ |--slcmFrequency |Possible values - Constantly, Daily, Weekly, Monthly, Quarterly, Semi-Annually, Annually, or Undetermined |
1228
+ |--slcmMethod |Possible values: Automated, Semi-Automated, Manual, or Undetermined |
1229
+ |--slcmReporting |String - The System-Level Continuous Monitoring reporting |
1230
+ |--slcmTracking |String - The System-Level Continuous Monitoring tracking |
1231
+ |--slcmComments |String, - Additional comments for Security Control regarding SLCM |
1232
+
1233
+ **Note**
1234
+ For information at the command line use:
1235
+ ```
1236
+ $ bundle exec exe/emasser put controls help update
1237
+ ```
1238
+ [top](#put)
1239
+
1240
+ ### ``put poams``
1241
+
1242
+ ----
1243
+ Business Rules
1244
+
1245
+ The following fields are required based on the value of the `status` field
1246
+
1247
+ |Value |Required Fields
1248
+ |----------------|--------------------------------------------------------
1249
+ |Risk Accepted |comments, resources
1250
+ |Ongoing |scheduledCompletionDate, resources, milestones (at least 1)
1251
+ |Completed |scheduledCompletionDate, comments, resources,
1252
+ | |completionDate, milestones (at least 1)
1253
+ |Not Applicable |POAM can not be created
1254
+
1255
+ If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request.
1256
+ - pocOrganization, pocFirstName, pocLastName, pocEmail, pocPhoneNumber
1257
+
1258
+ Business logic, the following rules apply when adding POA&Ms
1259
+
1260
+ - POA&M Item cannot be saved if associated Security Control or AP is inherited.
1261
+ - POA&M Item cannot be created manually if a Security Control or AP is Not Applicable.
1262
+ - Completed POA&M Item cannot be saved if Completion Date is in the future.
1263
+ - Completed POA&M Item cannot be saved if Completion Date (completionDate) is in the future.
1264
+ - Risk Accepted POA&M Item cannot be saved with a Scheduled Completion Date (scheduledCompletionDate) or Milestones
1265
+ - POA&M Item with a review status of "Not Approved" cannot be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
1266
+ - POA&M Item with a review status of "Approved" can be saved if Milestone Scheduled Completion Date exceeds POA&M Item Scheduled Completion Date.
1267
+ - POA&M Items that have a status of "Completed" and a status of "Ongoing" cannot be saved without Milestones.
1268
+ - POA&M Items that have a status of "Risk Accepted" cannot have milestones.
1269
+ - POA&M Items with a review status of "Approved" that have a status of "Completed" and "Ongoing" cannot update Scheduled Completion Date.
1270
+ - POA&M Items that have a review status of "Approved" are required to have a Severity Value assigned.
1271
+ - POA&M Items cannot be updated if they are included in an active package.
1272
+ - Archived POA&M Items cannot be updated.
1273
+ - POA&M Items with a status of "Not Applicable" will be updated through test result creation.
1274
+ - If the Security Control or Assessment Procedure does not exist in the system we may have to just import POA&M Item at the System Level.
1275
+
1276
+
1277
+ The following parameters/fields have the following character limitations:
1278
+ - POA&M Item cannot be saved if the Point of Contact fields exceed 100 characters:
1279
+ - Office / Organization (pocOrganization)
1280
+ - First Name (pocFirstName)
1281
+ - Last Name (pocLastName)
1282
+ - Email (email)
1283
+ - Phone Number (pocPhoneNumber)
1284
+ - POA&M Item cannot be saved if Mitigation field (mitigation) exceeds 2,000 characters.
1285
+ - POA&M Item cannot be saved if Source Identifying Vulnerability field (sourceIdentVuln) exceeds 2,000 characters.
1286
+ - POA&M Item cannot be saved if Comments field (comments) exceeds 2,000 characters
1287
+ - POA&M Item cannot be saved if Resource field (resource) exceeds 250 characters.
1288
+ - POA&M Items cannot be saved if Milestone Description (description) exceeds 2,000 characters.
1289
+
1290
+
1291
+ The following POA&M parameters/fields have the following character limitations:
1292
+ - Fields that can not exceed 100 characters:
1293
+ - Office / Organization (`pocOrganization`)
1294
+ - First Name (`pocFirstName`)
1295
+ - Last Name (`pocLastName`)
1296
+ - Email (`email`)
1297
+ - Phone Number (`pocPhoneNumber`)
1298
+ - External Unique ID (`externalUid`)
1299
+ - Fields that can not exceed 250 characters:
1300
+ - Resource (`resource`)
1301
+ - Fields have can not exceed 2000 character:
1302
+ - Vulnerability Description (`vulnerabilityDescription`)
1303
+ - Source Identifying Vulnerability (`sourceIdentVuln`)
1304
+ - Recommendations (`recommendations`)
1305
+ - Risk Accepted Comments (`comments`)
1306
+ - Milestone Description (`description`)
1307
+ - Mitigation Justification (`mitigation`)
1308
+
1309
+
1310
+ ---
1311
+ Updating (PUT) a POA&M can be accomplished by invoking the following command:
1312
+ ````
1313
+ $ bundle exec exe/emasser put poams update [PARAMETERS]
1314
+ ````
1315
+ - required parameter are:
1316
+
1317
+ |parameter | type or values |
1318
+ |---------------------------|:---------------------------------------------------------------|
1319
+ |--systemId |Integer - Unique system identifier |
1320
+ |--displayPoamId |Integer - Globally unique identifier for individual POA&M Items |
1321
+ |--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable |
1322
+ |--vulnerabilityDescription |String - Vulnerability description for the POA&M Item |
1323
+ |--sourceIdentVuln |String - Include Source Identifying Vulnerability text |
1324
+ |--pocOrganization |String - Organization/Office represented |
1325
+ |--resources |String - List of resources used. Character Limit = 250 |
1326
+
1327
+ ** If any poc information is provided all POC fields are required. See additional details for POC fields below.
1328
+
1329
+ - conditional parameters are:
1330
+
1331
+ |parameter | type or values |
1332
+ |--------------------------|:-----------------------------------------------------------------------|
1333
+ |--milestones |JSON - see milestone format |
1334
+ |--pocFirstName |String - First name of POC |
1335
+ |--pocLastName |String - Last name of POC |
1336
+ |--pocEmail |String - Email address of POC |
1337
+ |--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format |
1338
+ |--severity |Possible values - Very Low, Low, Moderate, High, Very High |
1339
+ |--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format |
1340
+ |--completionDate |Date - Field is required for completed POA&M items. Unix time format |
1341
+ |--comments |String - Field is required for completed and risk accepted POA&M items |
1342
+ |--isActive |Boolean - Used to delete milestones when updating a POA&M |
1343
+
1344
+ ** If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request:
1345
+ pocFirstName, pocLastName, pocPhoneNumber
1346
+
1347
+ Milestone Format:
1348
+ - --milestone milestoneId:[value] description:[value] scheduledCompletionDate:[value]
1349
+ - If a milestoneId is not provide a new milestone is created
1350
+
1351
+ - optional parameters are:
1352
+
1353
+ |parameter | type or values |
1354
+ |--------------------|:-----------------------------------------------------------------------------------------|
1355
+ |--externalUid |String - External unique identifier for use with associating POA&M Items |
1356
+ |--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined|
1357
+ |--cci |String - CCI associated with the test result |
1358
+ |--securityChecks |String - Security Checks that are associated with the POA&M |
1359
+ |--rawSeverity |Possible values: I, II, III |
1360
+ |--relevanceOfThreat |Possible values: Very Low, Low, Moderate, High, Very High |
1361
+ |--likelihood |Possible values: Very Low, Low, Moderate, High, Very High |
1362
+ |--impact |Possible values: Very Low, Low, Moderate, High, Very High |
1363
+ |--impactDescription |String - Include description of Security Control’s impact |
1364
+ |--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
1365
+ |--recommendations |String - Include recommendations |
1366
+ |--mitigation |String - Include mitigation explanation. 2000 Characters |
1367
+
1368
+ **Note**
1369
+ For information at the command line use:
1370
+ ```
1371
+ $ bundle exec exe/emasser put poams help update
1372
+ ```
1373
+ [top](#put)
1374
+
1375
+ ### ``put milestones``
1376
+
1377
+ ----
1378
+
1379
+ To add (POST) milestones in a system for one or more POA&M items use the following command:
1380
+
1381
+ ````
1382
+ $ bundle exec exe/emasser put milestones update [PARAMETERS]
1383
+ ````
1384
+ - required parameter are:
1385
+
1386
+ |parameter | type or values |
1387
+ |---------------------------|:----------------------------------------------------|
1388
+ |--systemId |Integer - Unique system identifier |
1389
+ |--poamId |Integer - Unique poam identifier |
1390
+ |--milestoneId |Integer - Unique milestone identifier |
1391
+ |--description |String - Milestone item description. 2000 Characters |
1392
+ |--scheduledCompletionDate |Date - Schedule completion date. Unix date format |
1393
+
1394
+
1395
+ **Note**
1396
+ For information at the command line use:
1397
+ ```
1398
+ $ bundle exec exe/emasser put milestones help update
1399
+ ```
1400
+ [top](#put)
1401
+
1402
+ ### ``put artifacts``
1403
+
1404
+ ----
1405
+ Business Rules
1406
+
1407
+ - Artifact cannot be saved if the file does not have the following file extensions:
1408
+ - .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mhtml,.html,.htm,.pdf
1409
+ - .mdb,.accdb,.ppt,.pptx,.xls,.xlsx,.csv,.log
1410
+ - .jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif
1411
+ - .zip,.rar,.msg,.vsd,.vsw,.vdx, .z{#}, .ckl,.avi,.vsdx
1412
+ - Artifact cannot be saved if File Name (fileName) exceeds 1,000 characters
1413
+ - Artifact cannot be saved if Description (description) exceeds 2,000 characters
1414
+ - Artifact cannot be saved if Reference Page Number (refPageNumber) exceeds 50 characters
1415
+ - Artifact cannot be saved if the file does not have an allowable file extension/type.
1416
+ - Artifact version cannot be saved if an Artifact with the same file name already exist in the system.
1417
+ - Artifact cannot be saved if the file size exceeds 30MB.
1418
+ - Artifact cannot be saved if the Last Review Date is set in the future.
1419
+
1420
+ To add (POST) milestones in a system for one or more POA&M items use the following command:
1421
+
1422
+ ````
1423
+ $ bundle exec exe/emasser put artifacts update [PARAMETERS]
1424
+ ````
1425
+ - required parameter are:
1426
+
1427
+ |parameter | type or values |
1428
+ |----------------|:----------------------------------------------------|
1429
+ |--systemId |Integer - Unique system identifier |
1430
+ |--filename |String - File name should match exactly one file within the provided zip file|
1431
+ | |Binary - Application/zip file. Max 30MB per artifact |
1432
+ |--isTemplate |Boolean - Indicates whether an artifact is a template|
1433
+ |--type* |Possible Values: Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report|
1434
+ |--category* |Possible Values: Implementation Guidance, Evidence |
1435
+
1436
+ *May also accept custom artifact category values set by system administrators.
1437
+
1438
+ - optional parameter are:
1439
+
1440
+ |parameter | type or values |
1441
+ |-------------------------|:------------------------------------------------------|
1442
+ |--description |String - Artifact description. 2000 Characters |
1443
+ |--refPageNumber |String - Artifact reference page number. 50 Characters |
1444
+ |--ccis |String - CCIs associated with artifact |
1445
+ |--controls |String - Control acronym associated with the artifact. NIST SP 800-53 Revision 4 defined|
1446
+ |--artifactExpirationDate |Date - Date Artifact expires and requires review. In Unix Date Format|
1447
+ |--lastReviewedDate |Date - Date Artifact was last reviewed. In Unix Date Format |
1448
+
1449
+
1450
+ **Note**
1451
+ For information at the command line use:
1452
+ ```
1453
+ $ bundle exec exe/emasser put artifacts help update
1454
+ ```
1455
+ [top](#put)
1456
+
1457
+ ## Usage - DELETE
1458
+
1459
+ ### ``delete poams``
1460
+
1461
+ ----
1462
+ Remove one or many poa&m items in a system
1463
+
1464
+ To remove (DELETE) one or more POA&M items use the following command:
1465
+ ```
1466
+ bundle exec exe/emasser delete poams remove --systemId [value] --poamId [value]
1467
+ ```
1468
+ [top](#delete)
1469
+
1470
+ ### ``delete milestones``
1471
+
1472
+ ----
1473
+ Remove milestones in a system for one or many POA&M items
1474
+
1475
+ To delete a milestone the record must be inactive by having the field isActive set to false (isActive=false).
1476
+
1477
+ The server returns an empty object upon successfully deleting a milestone.
1478
+
1479
+ The last milestone can not be deleted, at-least on must exist.
1480
+
1481
+ To remove (DELETE) one or more Milestones in a system use the following command:
1482
+ ```
1483
+ bundle exec exe/emasser delete milestones remove--systemId [value] --poamId [value] --milestoneId [value]
1484
+ ```
1485
+ [top](#delete)
1486
+
1487
+ ### ``delete artifacts``
1488
+
1489
+ ---
1490
+ Remove one or many artifacts in a system
1491
+
1492
+ Provide single file or a space/comma delimited list of file names to be removed from the system (systemId)
1493
+
1494
+ To remove (DELETE) one or more Artifacts from a system use the following command:
1495
+ ```
1496
+ bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value]
1497
+ or
1498
+ bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value value...]
1499
+ or
1500
+ bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value, value...]
1501
+ ```
1437
1502
  [top](#delete)