From 1e461ffe5491fc09d8cf6ea93aa6e19b442b334a Mon Sep 17 00:00:00 2001 From: "A.J. Stein" Date: Tue, 3 Dec 2024 11:17:44 -0500 Subject: [PATCH 1/3] Fix missing-response, warn on misplaced- for #939 --- features/fedramp_extensions.feature | 3 ++ ...sp-control-implementation-status-VALID.xml | 38 ++++++++++--------- ...-misplaced-response-components-INVALID.xml | 31 +++++++++++++++ ...sp-missing-response-components-INVALID.xml | 2 + .../fedramp-external-constraints.xml | 16 ++++++-- .../misplaced-response-components-FAIL.yaml | 9 +++++ .../misplaced-response-components-PASS.yaml | 9 +++++ 7 files changed, 87 insertions(+), 21 deletions(-) create mode 100644 src/validations/constraints/content/ssp-misplaced-response-components-INVALID.xml create mode 100644 src/validations/constraints/unit-tests/misplaced-response-components-FAIL.yaml create mode 100644 src/validations/constraints/unit-tests/misplaced-response-components-PASS.yaml diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index 423497d98..18daa7abd 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -113,6 +113,7 @@ Examples: | leveraged-authorization-has-valid-impact-level | | leveraged-authorization-nature-of-agreement | | marking | + | misplaced-response-components | | missing-response-components | | network-component-has-connection-security-prop | | network-component-has-implementation-point | @@ -337,6 +338,8 @@ Examples: | leveraged-authorization-nature-of-agreement-PASS.yaml | | marking-FAIL.yaml | | marking-PASS.yaml | + | misplaced-response-components-FAIL.yaml | + | misplaced-response-components-PASS.yaml | | missing-response-components-FAIL.yaml | | missing-response-components-PASS.yaml | | network-component-has-connection-security-prop-FAIL.yaml | diff --git a/src/validations/constraints/content/ssp-control-implementation-status-VALID.xml b/src/validations/constraints/content/ssp-control-implementation-status-VALID.xml index 715a29c66..0c774b0d5 100644 --- a/src/validations/constraints/content/ssp-control-implementation-status-VALID.xml +++ b/src/validations/constraints/content/ssp-control-implementation-status-VALID.xml @@ -358,6 +358,8 @@ + +

Some description of the authentication method.

@@ -445,31 +447,31 @@ + + +

Access Control Policy and Procedures (AC-1) is fully implemented in our system.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
- - -

Access Control Policy and Procedures (AC-1) is fully implemented in our system.

-
- - - 11111111-0000-4000-9000-000000000001 - -
+ + +

Information System Component Inventory (CM-8) is partially implemented.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
- - -

Information System Component Inventory (CM-8) is partially implemented.

-
- - - 11111111-0000-4000-9000-000000000001 - -
diff --git a/src/validations/constraints/content/ssp-misplaced-response-components-INVALID.xml b/src/validations/constraints/content/ssp-misplaced-response-components-INVALID.xml new file mode 100644 index 000000000..16ed10bf7 --- /dev/null +++ b/src/validations/constraints/content/ssp-misplaced-response-components-INVALID.xml @@ -0,0 +1,31 @@ + + + + + System To Be Authorized + +

This component reflects the system to be authorized.

+

A proper SSP should reference this correctly within a given statement to document implemented requirements per FedRAMP requirements.

+

This example SSP does not do that, it's invalid and has some problems.

+
+
+
+ + +

Implementation of controls for the System to be Authorized

+
+ + + + + +

This component reference would be valid if it was within the statement above, but it is not.

+

This constraint violation for the invalid file should warn users and developers repurposing valid syntax for NIST's upstream OSCAL generic use cases is not valid specifically for FedRAMP.

+
+
+
+
+
diff --git a/src/validations/constraints/content/ssp-missing-response-components-INVALID.xml b/src/validations/constraints/content/ssp-missing-response-components-INVALID.xml index 9af07aea0..64e940884 100644 --- a/src/validations/constraints/content/ssp-missing-response-components-INVALID.xml +++ b/src/validations/constraints/content/ssp-missing-response-components-INVALID.xml @@ -11,12 +11,14 @@ + + diff --git a/src/validations/constraints/fedramp-external-constraints.xml b/src/validations/constraints/fedramp-external-constraints.xml index af7ae5b20..99998838e 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -166,10 +166,20 @@ - - Missing Response Components + + By-Component Reference for Implemented Requirements Misplaced - Each implemented requirement MUST have at least one by-component reference to the source component implementing it. + A FedRAMP SSP MUST identify how the system implements each control requirement implemented at the per-statement level, not in other locations allowed for non-FedRAMP use cases. + +

NIST maintains OSCAL models that allow implemented requirements for controls to have references to the implementing components in multiple locations to support multiple use cases.

+

Despite the flexibility of NIST's upstream OSCAL models, FedRAMP only accepts OSCAL-based SSP with the reference in one of those locations, see missing-response-components for more details about this requirement.

+

A constraint violation with this warning indicates a given SSP uses one of the valid locations for all NIST use cases, not the only one FedRA

+
+
+ + By-Component Reference for Implemented Requirements Missing + + A FedRAMP SSP MUST identify how the system implements each control requirement implemented at the per-statement level and reference any component used to implement it.
diff --git a/src/validations/constraints/unit-tests/misplaced-response-components-FAIL.yaml b/src/validations/constraints/unit-tests/misplaced-response-components-FAIL.yaml new file mode 100644 index 000000000..ec7ca1a48 --- /dev/null +++ b/src/validations/constraints/unit-tests/misplaced-response-components-FAIL.yaml @@ -0,0 +1,9 @@ +test-case: + name: Negative Test for misplaced-response-components + description: >- + This test case validates the behavior of constraint + misplaced-response-components + content: ../content/ssp-misplaced-response-components-INVALID.xml + expectations: + - constraint-id: misplaced-response-components + result: fail diff --git a/src/validations/constraints/unit-tests/misplaced-response-components-PASS.yaml b/src/validations/constraints/unit-tests/misplaced-response-components-PASS.yaml new file mode 100644 index 000000000..42fc2c834 --- /dev/null +++ b/src/validations/constraints/unit-tests/misplaced-response-components-PASS.yaml @@ -0,0 +1,9 @@ +test-case: + name: Positive Test for misplaced-response-components + description: >- + This test case validates the behavior of constraint + misplaced-response-components + content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml + expectations: + - constraint-id: misplaced-response-components + result: pass From ed91f596967ddcbde3eaf68fac43af8e580fd646 Mon Sep 17 00:00:00 2001 From: "A.J. Stein" Date: Fri, 6 Dec 2024 11:38:06 -0500 Subject: [PATCH 2/3] Improve wording, add missing words from @kyhu65867 review for #939 Co-authored-by: Kylie Hunter --- src/validations/constraints/fedramp-external-constraints.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validations/constraints/fedramp-external-constraints.xml b/src/validations/constraints/fedramp-external-constraints.xml index 99998838e..3c756f19d 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -172,8 +172,8 @@ A FedRAMP SSP MUST identify how the system implements each control requirement implemented at the per-statement level, not in other locations allowed for non-FedRAMP use cases.

NIST maintains OSCAL models that allow implemented requirements for controls to have references to the implementing components in multiple locations to support multiple use cases.

-

Despite the flexibility of NIST's upstream OSCAL models, FedRAMP only accepts OSCAL-based SSP with the reference in one of those locations, see missing-response-components for more details about this requirement.

-

A constraint violation with this warning indicates a given SSP uses one of the valid locations for all NIST use cases, not the only one FedRA

+

Despite the flexibility of NIST's upstream OSCAL models, FedRAMP only accepts OSCAL-based SSPs with the reference in one of those locations, see missing-response-components for more details about this requirement.

+

A constraint violation with this warning indicates a given SSP uses one of the valid locations for all NIST use cases, but not the only FedRAMP required location.

From e8c20d56a8d2a1fc9c2409e870392269787659fb Mon Sep 17 00:00:00 2001 From: "A.J. Stein" Date: Fri, 13 Dec 2024 01:10:03 -0500 Subject: [PATCH 3/3] Address code review feedback for #969 --- .../ssp-control-implementation-status-INVALID.xml | 10 ++++++---- .../constraints/fedramp-external-allowed-values.xml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/validations/constraints/content/ssp-control-implementation-status-INVALID.xml b/src/validations/constraints/content/ssp-control-implementation-status-INVALID.xml index 01aea8746..1596cc8a5 100644 --- a/src/validations/constraints/content/ssp-control-implementation-status-INVALID.xml +++ b/src/validations/constraints/content/ssp-control-implementation-status-INVALID.xml @@ -5,9 +5,11 @@ uuid="12345678-1234-4321-8765-123456789012"> - - - + + + + + - + \ No newline at end of file diff --git a/src/validations/constraints/fedramp-external-allowed-values.xml b/src/validations/constraints/fedramp-external-allowed-values.xml index c92f705ec..9acf13713 100644 --- a/src/validations/constraints/fedramp-external-allowed-values.xml +++ b/src/validations/constraints/fedramp-external-allowed-values.xml @@ -107,7 +107,7 @@ A physical or virtual network. - + Control Implementation Status The implementation status of the control. Implemented