Services, Ports and Protocols
Entries in the services, ports, and protocols table are represented as component assemblies, with the component-type flag set to "service". Use a protocol assembly for each protocol associated with the service. For a single port, set the port-range start flag and end flag to the same value.
OSCAL Representation
<system-implementation>
<!-- user -->
<component uuid="uuid-of-service" type="service">
<title>[SAMPLE]Service Name</title>
<description><p>Describe the service</p></description>
<purpose>Describe the purpose for which the service is needed.</purpose>
<link href="uuid-of-component-used-by" rel="used-by" />
<link href="uuid-of-component-provided-by" rel="provided-by" />
<status state="operational" />
<protocol name="http">
<port-range start="80" end="80" transport="TCP"/>
</protocol>
<protocol name="https">
<port-range start="443" end="443" transport="TCP"/>
</protocol>
</component>
<!-- Repeat the component assembly for each row in Table 9.1 -->
<!-- system-inventory -->
</system-implementation>
XPath Queries
Service (1st service):
/*/system-implementation/component[@type='service'][1]/title
Ports: Start (1st service, 1st protocol, 1st port range):
/*/system-implementation/component[@type='service'][1]/protocol[1]/port-range[1]/@start
Ports: End (1st service, 1st protocol, 1st port range):
/*/system-implementation/component[@type='service'][1]/protocol[1]/port-range[1]/@end
Ports: Transport (1st service, 1st protocol, 1st port range):
/*/system-implementation/component[@type='service'][1]/protocol[1]/port-range[1]/@transport
Protocol (1st service, 1st protocol):
/*/system-implementation/component[@type='service'][1]/protocol[1]/@name
Purpose (1st service):
/*/system-implementation/component[@type='service'][1]/purpose
Used By (1st service):
/*/system-implementation/component[@uuid='uuid-of-component-used-by']/title
Replace XPath predicate "[1]" with "[2]", "[3]", etc.
